Repository navigation
Conversation
Wire up static-frame idle caching for firmware 27 internal panels. After a normal KMS swap completes as displayed and remains static for 1 second, allocate a reusable DMA cache surface sized for the active scanout layout, negotiate replay via applyProperty(138, 2) on A352 (latching unavailable if firmware refuses), and submit a replay swap (swap_intent = 8) so the display controller services scanout from local cache while idle. Handle firmware idle-cache callbacks (D116 state transitions, D579/D580 fence lifecycle, D581 surface release), validate surface layout and buffer size on every registration (reallocating only after release), guard against stale templates with a monotonic generation checked under IOMFB serialization, close replay admission before draining work while keeping outstanding replay swap IDs filtered until consumed or reset, and preserve the cache DMA allocation across retained-DMA shutdown/unbind paths. Signed-off-by: Erik Bourget <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
dcp_push_context() now calls dcp_send_message_checked() so idle-cache callers can unwind unsent mailbox commands on send error. Provide the matching stub in the dcpext26-startup-tests transport fixture. Signed-off-by: Erik Bourget <[email protected]>
|
Hardware check on J716c (16" M5 Max, T6050) at
|
# Conflicts: # drivers/gpu/drm/apple/dcp.h
There was a problem hiding this comment.
Verdict: Changes requested at 021728a98ebd.
The M5 Max row reaches setup state 2 but never reaches active replay, and records zero replays. That demonstrates setup and DPMS recovery on the earlier integration, but leaves the behavior advertised for M5 unverified. Please attach a current-head M5 row with a real replay and teardown, or gate admission on a demonstrated replay capability. Also include an injected failed submit after IOVA preparation to show the new channel unwind and session release preserve callback and DMA ownership. Hosted CI is green.
Add KUnit test coverage in apple-dcp-v27 for an injected mailbox send failure on swap_submit after the idle-cache DMA surface (IOVA) and live-session retention references have been prepared. Verify that dcp_push_context() unwinds the failed command slot, leaves outer channel callbacks and cookies intact, preserves subsequent command callback delivery, clears pending idle-cache swap state without filtering a normal swap ID, aborts the uncommitted session retention references, and preserves a prior DMA pin while allowing unpinned DMA surface release on unbind. Signed-off-by: Erik Bourget <[email protected]>
Avoid scheduling an asynchronous ack work item for the manual-ack sentinel command in v27_idle_failed_submit_unwind_test() so the pending depth check and explicit iomfb_recv_msg() ack do not race. Release iomfb.lock and clear iomfb.owner before evaluating the fatal KUNIT_ASSERT_EQ() checks in v27_idle_unwind_preserves_outer_callback_and_pin_test() so a failing assertion cannot abort while holding the lock taken by cleanup. Signed-off-by: Erik Bourget <[email protected]>
|
Tested on J313 (M1 MacBook Air, T8103, firmware 27.2.1) via Issue:
|
|
Added KUnit coverage for the injected failed-submit unwind and session-release paths in
Regarding the M5 Max row: the earlier J716c test at |
There was a problem hiding this comment.
The new KUnit cases address the failed-submit unwind and retained-owner checks. J713 demonstrates replay at this head. J716c still stops at setup with zero replays, even with the internal panel alone. Please demonstrate active replay there or restrict admission using a verified replay capability. Also record the live-session unbind result once that path is tested.
Resolve the conflict in drivers/gpu/drm/apple/apple_drv.c with main's scanout-caching fb_create: devices whose backend caches scanout keep the dirty-hook framebuffers from main, and on the other devices headless in-kernel client framebuffers still get apple_drm_client_fb_funcs, so the firmware 27 idle cache keeps excluding unshadowed fbdev. Signed-off-by: Erik Bourget <[email protected]>
|
Merge-train note: this conflicts with main after today's DCP merges. Please merge main in (normal push). It's otherwise queued (App approved, J713 row, T8132-only enable justified in the PR). |
There was a problem hiding this comment.
Verdict: MERGE at e50de02
Checked: The merge keeps main's dirty-hook framebuffer handling for backends that cache scanout, and preserves the distinct in-kernel framebuffer funcs for the remaining clients. Unverified idle-cache profiles remain disabled.
Remaining validation: Keep exact-head hosted CI and confirm the J713 replay evidence covers the merged framebuffer routing.
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
Conflicts: drivers/gpu/drm/apple/iomfb.c iomfb_reset_transport() keeps both tails: the branch's iomfb_v27_idle_cache_reset() and main's iomfb_channels_idle_wake(), in that order. Signed-off-by: Erik Bourget <[email protected]>
There was a problem hiding this comment.
Verdict: HOLD at a4d28a5a
Blockers:
- CI workflows are still queued at
a4d28a5a.Apple DRM KUnit,Host tests, andApple build and KUnitare queued after thea4d28a5amerge withmain(pr-textandpr-readinesspassed).
Checked:
- Forward merge
a4d28a5a(MERGEABLEagainstmain, 12 files,+1650/-31), cleanly rebasing previously approvede50de028(J713 power savings + T8132-only enable + KUnit coverage).
Evidence
- Ready for re-approval once queued
Apple DRM KUnit,Host tests, andApple build and KUnitcomplete green ata4d28a5a.
…idle-off Take #3289 so the two merge cleanly in order. Both extend struct apple_dcp: keep the internal panel's idle cache state and the external idle-off state. #3289 gives dcp_push_context() an unwind_on_err argument and a KUnit wrapper: keep the wrapper, and have dcp_push_try() pass false, as dcp_push() did. Signed-off-by: Erik Bourget <[email protected]>
There was a problem hiding this comment.
Verdict: MERGE at a4d28a5a72b7
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: - Forward merge a4d28a5a (MERGEABLE against main, 12 files, +1650/-31), cleanly rebasing previously approved e50de028 (J713 power savings + T8132-only enable + KUnit coverage).
Follow-ups (not blocking): Previously approved code; follow-ups: queued KUnit/host/build CI
Commit f085a8d ("drm: apple: Wait for the firmware channels to go idle on an event") added iomfb_channels_idle_wake() calls to iomfb_recv_msg(), dcp_ack(), and iomfb_reset_transport(), but initialized dcp->channels_idle_wq only in dcp_platform_probe_pipe(). KUnit suites that initialize an apple_dcp via iomfb_queue_init() without running platform probe (including apple-dcp-v27 after the main merge) left channels_idle_wq zero-initialized, causing wq_has_sleeper() and wake_up_all() to dereference a NULL list head on the first iomfb_recv_msg(). Move init_waitqueue_head(&dcp->channels_idle_wq) into iomfb_queue_init(), which already runs earlier in dcp_platform_probe_pipe() and is shared by every IOMFB queue KUnit fixture. Signed-off-by: Erik Bourget <[email protected]>
dcp_caches_scanout() previously reported only iomfb_is_m4(), so devices running firmware 27 static-frame idle caching (dcp_v27_idle_cache_supported()) still received plain drm_gem_fb_create() framebuffers whose DIRTYFB ioctls return -ENOSYS. Once firmware 27 replay started, front-buffer drawing stayed frozen until another flip. Include dcp_v27_idle_cache_supported(dcp) in dcp_caches_scanout() so apple_fb_create() attaches drm_gem_fb_create_with_dirty() on replay-capable firmware 27 panels, routing DIRTYFB and shadowed fbdev damage through the atomic commit path to refresh scanout and exit replay, while keeping non-caching profiles on plain GEM and headless apple_drm_client_fb_funcs framebuffers. Add KUnit coverage in apple-dcp-v27 verifying that userspace framebuffers on replay-capable scanout receive the dirty hook and commit through the atomic pipeline instead of failing with -ENOSYS, while non-caching profiles keep plain and client ops. Signed-off-by: Erik Bourget <[email protected]>
Signed-off-by: Erik Bourget <[email protected]>
|
Updated
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed replay admission, swap completion filtering, and firmware ownership of the cache GEM object through release and teardown. The J713 hardware run covers the production code carried by the current head. The exact-head Apple build and DCP KUnit are pending.
What: Enable static-frame idle caching ("replay") on verified firmware 27 internal-panel hardware profiles (
apple_dcp_hw_t8132_v27viahw.v27_idle_cache = true) so DCP serves static desktop frames from a reusable cache surface after 1 second of idle output (cutting idle battery power by ~88–89 mW on J713), keeping unverified profiles (andapple_dcp_hw_t6050, where firmware stops at setup with zero replays) off by default, includingdcp_v27_idle_cache_supported()indcp_caches_scanout()so replay-capable firmware 27 scanout getsdrm_gem_fb_create_with_dirty()(DIRTYFBand shadowedfbdevupdates trigger atomic commits to refresh scanout and exit replay instead of returning-ENOSYS) while non-caching interfaces keep headless client framebuffers onapple_drm_client_fb_funcs, initializingchannels_idle_wqinsideiomfb_queue_init()so IOMFB KUnit fixtures never dereference an uninitialized wait queue after themainmerge, and adding KUnit coverage for failedswap_submitunwind, session-retention rollback, default-off unverified profiles,fbdevexclusion, andDIRTYFBdirty-commit routing.Tested: Host and KUnit checks at
4a6030e3598b(forward merge oforigin/main19ee1b5bc9d5overdf01a6cd9b2e, only mergingiomfb_v27_test.cto keep bothv27_rt_bw_*andv27_idle_*cases, so driver code is identical todf01a6cd9b2e), plus J713 standalone and J716c composite trial kernels atdf01a6cd9b2e(prior live hardware rows at31e21a4ae8f4and earlierc85087653bd4/f7e6fb162951runs and the historicalc05e2a268684J713-89.3/-87.6 mWcoulomb-counter A/B are in Evidence):4a6030e3598b):apple-dcp-v27KUnit12/12,topology.kunitconfig221/222(1skipped,0failed),display.kunitconfig188/189(1skipped,0failed),tests/.kunitconfig117/117,dcpext26-{queue,startup}-tests.pypass,run-host-tests.py --only apple-dcp87/101(14pre-existing host-compiler failures unrelated to#3289;ok 72 - stale-crtc-poweroffandok 73 - dropped-swap-teardownpass),checkpatch.pl --strict(a4d28a5a72b7..df01a6cd9b2e)0/0/0,LLVM=1 ARCH=arm64 W=1build ofdrivers/gpu/drm/apple/0warnings.df01a6cd9b2e, M4 Air,T8132, firmware 27.2, standalonemain+df01a6cd9b2ebuild;4a6030e3598bonly mergediomfb_v27_test.cwithmain):v27 idle cache active (mem=49151616 host=1)8.3 s after boot;4xDPMS off/on (4 -> 0/0 -> 1 -> 2 -> 4,replays1 -> 5);s2idle(rtcwake -m freeze -s 20:4 -> 0then0 -> 1 -> 2 -> 4,replays9 -> 10,fail0);fbconchvt 3dropped4 -> 0and stayed at0for 12 s including 3 writes to/dev/tty3, then re-armed onchvt 1(0 -> 1 -> 2 -> 4,replays8 -> 9; visual redraw not observed remotely);DIRTYFBfrom state4not exercised (DRM_IOCTL_MODE_DIRTYFBfrom a second root client returnedEACCES(13) while the compositor held DRM master, andfbconnever arms the cache); liveapple-dcpunbind from state4returned0(4 -> 0,G16: fail-stop (ENODEV),retaining live DCP DMA resources after unbind; reboot required,0Oops/WARN/BUG/refcount/hung-task/call-trace, clean reboot); smoke clean (eDP-1enabled,0failed units,0AppArmor denials,0oops/WARN;err= baseline 3 + 2 unprobed external DCP-ENODEVlines).df01a6cd9b2e, M5 Max,T6050, firmware 27.2, composite trial kernel overmain429e7e15f122): default-off confirmed (0idle-cache/replay lines indmesg,0DCP swap/commit/poweroff error lines),4xeDP-1DPMS off/on (3456x2234@120restored,0new err/warn lines), smoke clean (MTP keyboard/trackpad/lid,wlan00% loss,AppleJ716PCMs, BorealisApple M5 Max (G17C B1)vkcube,0LSM denials,1baseline failed unitaurora-peripherals.service,0GPU/MMU faults or Oops/WARN).Risk: two-way door · T8132 firmware-27 internal panels (
apple_dcp_hw_t8132_v27);iomfb_queue_init()wait-queue initialization across DCP interfaces; unverified profiles and T6050 remain off by defaultRevert:
git revertrestores default-off behavior across all profiles,dcp_caches_scanout()M4-only scope, andchannels_idle_wqinitialization indcp_platform_probe_pipe()with no persistent on-disk, DT, or firmware state (apple-dcplive unbind after replay registration retains DMA until reboot, as with any adopted live DCP session).Not yet:
T8132, firmware 27.2): a state-4DIRTYFBfront-buffer update issued by the DRM master / compositor (a non-master root client returnedEACCES(13) andfbconnever arms the cache), on-site visual observation offbconlive-console redraw, and a refreshed unplugged battery coulomb-counter A/B (earlier A/B on historical test buildc05e2a268684measured-89.3 mWatbl=5and-87.6 mWatbl=150), plus post-merge confirmation at4a6030e3598b(4a6030e3598bonly mergediomfb_v27_test.cwithmain, so driver code is unchanged fromdf01a6cd9b2e).M1 Air,T8103: boot smoke, DPMS off/on, deep S2R) at4a6030e3598b(prior row ran at31e21a4ae8f4) and post-merge J716c confirmation at4a6030e3598b(identical driver code verified on J716c atdf01a6cd9b2e).T6041,T8122,T8142/J813/J815), which stay disabled by default (hw.v27_idle_cache = false) until verified.Apple build and KUnitCI completion at4a6030e3598b.Details
dcp_v27_idle_cache_supported()checksfw_compat == DCP_FIRMWARE_V_27_0 && dcp->hw.v27_idle_cache && dcp->main_display && dcp_has_panel(dcp). Unverified firmware-27 internal-panel profiles keephw.v27_idle_cache = falseby default, and.v27_idle_cache = trueis enabled on the sharedapple_dcp_hw_t8132_v27profile where active state-4 replay and display power savings are verified.hw.v27_idle_cacheis gated on verified profiles (including keepingapple_dcp_hw_t6050off): J716c runs ated0e9648f90candf7e6fb162951showed T6050 firmware acceptsapplyProperty(138, 2)(status=0) andswap_intent = 8(ret=0), enters setup state2with periodic2 -> 6 -> 2refreshes, and never transitions to active state4(replays=0). No static DT/ADT property or pre-submit firmware query distinguishes setup-only firmware from J713's state-4 firmware beforehand, and submittingswap_intent = 8once already allocates the DMA cache surface and commitsdcp_retain_live_session_commit()(retain_dma = true); conversely, a runtime setup-count latch cannot distinguish setup attempts interrupted by normal display activity on a capable panel from setup-only firmware. Defaulting unverified profiles to off prevents pinning DMA and live-session retention without obtaining replay.dcp.candapple_drv.c,dcp_caches_scanout()returnstrueforiomfb_is_m4(dcp) || dcp_v27_idle_cache_supported(dcp). On replay-capable firmware 27 panels (apple_dcp_hw_t8132_v27),apple_fb_create()returnsdrm_gem_fb_create_with_dirty(), giving userspaceDIRTYFBcallers and shadowedfbdevclientsdrm_atomic_helper_dirtyfb()so front-buffer drawing triggers an atomic commit and refreshes/exits replay instead of returning-ENOSYS. On non-caching interfaces (includingapple_dcp_hw_t6050and unverified firmware 27 profiles), headless in-kernel DRM client opens (!file || !file->filp, such asfbdev/fbcon) without adirtycallback are tagged with immutableapple_drm_client_fb_funcs, while userspace KMS opens (file->filp != NULL) keepdrm_gem_fb_create(). Iniomfb_flush(),iomfb_v27_idle_cache_fb_eligible()checksfb->funcs(fb->funcs->dirtyeligible;fb->funcs == &apple_drm_client_fb_funcsineligible) without ever reading or dereferencingfb->dev->fb_helper, avoiding any teardown race withdrm_fb_helper_fini()during DRM unplug.shown == trueandretire == true) and remains static past a 1-second deadline tracked underv27_idle_lock, a delayed worker runs two-phase setup:applyProperty(138, 2)onA352): runs as a negotiate-only transaction before any GEM allocation or live-session retention. If firmware refuses, the driver latchesv27_idle_unavailableand leaves the panel fully rebindable.swap_intent = 8at offset0x17c,surf_ids[0] = 2): validates full surface/plane/compression span (iomfb_v27_idle_surface_span()), allocates/reuses a DMA GEM cache surface (reallocating only once firmware releases the prior buffer viaD581), pre-acquires live-session retention references in process context (dcp_retain_live_session_prepare()), and commits permanent retention underv27_idle_lockonly afterswap_submitpublishes cleanly over the mailbox (dcp_send_message_checked()).D116state transitions,D579/D580fence lifecycle,D581surface release), filters replay swap completions and aborts (D594/D597) without disturbing KMS retirement, invalidates queued replay and restarts the 1 s idle interval on non-plane-0 flushes and standalone brightness/EDR presents, closes admission with aniomfb.lockbarrier on DPMS off / suspend / unbind, unwinds unsent idle-cache command entries on transient mailbox errors without affecting existingdcp_push()callers, and resets replay state indcp_v27_warm_restart()before mailbox RX re-enables.125129d93ae9,f7e6fb162951,c85087653bd4,31e21a4ae8f4, anddf01a6cd9b2eaddCONFIG_DRM_APPLE_KUNIT_TEST-scoped hooks and five idle-cache KUnit tests indrivers/gpu/drm/apple/iomfb_v27_test.ccovering injected-EAGAINswap_submitunwind, outer callback and prior DMA pin preservation, default-off unverified profiles, headlessfbdevexclusion, andDIRTYFBatomic-commit routing on replay-capable framebuffers.962249cdc60fmovesinit_waitqueue_head(&dcp->channels_idle_wq)fromdcp_platform_probe_pipe()intoiomfb_queue_init(), which runs earlier in probe and is shared by KUnit fixtures that calliomfb_recv_msg(), preventingiomfb_channels_idle_wake()from dereferencing a zeroedwait_queue_head_taftera4d28a5amergedf085a8dda674frommain.df01a6cd9b2eincludesdcp_v27_idle_cache_supported(dcp)indcp_caches_scanout()so replay-capable firmware 27 panels usedrm_gem_fb_create_with_dirty()and routeDIRTYFBfront-buffer updates through the atomic commit path instead of returning-ENOSYS.Evidence
Build, style, KUnit, and host tests at
4a6030e3598borigin/main(19ee1b5bc9d5) at4a6030e3598b(resolving thev27_cases[]conflict indrivers/gpu/drm/apple/iomfb_v27_test.cto keep bothv27_rt_bw_*andv27_idle_*tests)../scripts/checkpatch.pl --strict --git a4d28a5a72b7..df01a6cd9b2e:0errors,0warnings,0checks (14lines checked in962249cdc60f;451lines checked indf01a6cd9b2e);git diff --check origin/main...4a6030e3598bclean../tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --build_dir=_kunit_topo --kunitconfig=drivers/gpu/drm/apple/tests/topology.kunitconfig --jobs="$BUILD_SLOT_JOBS"(apple-dcp-v27subset12/12passed):221passed,1skipped (apple_g17_rx_util_min_test, needsCONFIG_UCLAMP_TASK),0failed (222total)../tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --build_dir=_kunit_disp --kunitconfig=drivers/gpu/drm/apple/tests/display.kunitconfig --jobs="$BUILD_SLOT_JOBS":188passed,1skipped (apple_g17_rx_util_min_test),0failed (189total)../tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --build_dir=_kunit_tests --kunitconfig=drivers/gpu/drm/apple/tests/.kunitconfig --jobs="$BUILD_SLOT_JOBS":117passed,0failed (117total).make O=_build_w1 LLVM=1 ARCH=arm64 W=1 -j"$BUILD_SLOT_JOBS" drivers/gpu/drm/apple/(defconfig+asahi.config,CONFIG_RUST=n,CONFIG_DRM_FBDEV_EMULATION=y):0errors,0warnings.python3 -I tools/asahi/dcpext26-queue-tests.pyandpython3 -I tools/asahi/dcpext26-startup-tests.py: both pass.HOSTCC="clang -Wno-unused-but-set-global" python3 -I tools/asahi/run-host-tests.py --only apple-dcp:87/101passed (14pre-existing Clang 23-Wunused-but-set-globalfailures unrelated to#3289;ok 72 - stale-crtc-poweroff,ok 73 - dropped-swap-teardownpass).kb run -p linux-j713atdf01a6cd9b2e(before the4a6030e3598bmainmerge): full J713 kernel build passed.Live hardware at
df01a6cd9b2e(same driver code as4a6030e3598b, which only mergediomfb_v27_test.cwithorigin/main19ee1b5bc9d5)T8132, firmware 27.2, on battery, default cmdline, one-shot Stage 2 witht8132-j713.dtb): standalonemain+df01a6cd9b2ebuild (external display processors unprobed onmain, +2err):apple-dcp 30ae00000.dcp: v27 idle cache active (mem=49151616 host=1)8.3 s after boot.hl.dsp.dpms, dynamic debug oniomfb_v27.c): every off4 -> 0, every on0 -> 1 -> 2 -> 4,replays1 -> 5.s2idle(rtcwake -m freeze -s 20):4 -> 0at suspend entry,0 -> 1 -> 2 -> 4after resume (replays9 -> 10),suspend_statsfail0.fbcon(/proc/fbappledrmfb):chvt 3took the cache4 -> 0; it stayed at0for the 12 s ontty3(also with three writes to/dev/tty3: no0 -> 1);chvt 1re-armed it (0 -> 1 -> 2 -> 4,replays8 -> 9). A re-arm while on the text console was not seen; visual redraw of the console was not observed remotely.DIRTYFBfrom state4: not exercised (DRM_IOCTL_MODE_DIRTYFBreturnedEACCES(13) from a second client even as root, because the compositor holds DRM master, and the console never arms the cache, so there is no state-4 front buffer to dirty from the text console).apple-dcpunbind from state4(echo 30ae00000.dcp > .../apple-dcp/unbind): returned0,4 -> 0,G16: fail-stop (ENODEV)for the GPU,retaining live DCP DMA resources after unbind; reboot required,0Oops/WARN/BUG/refcount/hung-task/call-trace lines; the reboot afterwards was clean.0failed units,0AppArmor denials,0oops/WARN,eDP-1enabled;errlines = baseline 3 (AFK[ep:20],unsupported DFB layout 2560x1664,apple_sep) + 2 external display processor lines (286e00000.dcp/48ae00000.dcp:-ENODEV, "no IOMMU domain").T6050, firmware 27.2, AC 100%, default cmdline, default Stage 2b0a2f222b5a9): one-shot composite trial kernel (Linux 7.3.0,main429e7e15f122+#3409,#3560,#3651,#3717,#3359, and#3289df01a6cd9b2emerged cleanly with zero conflicts):0idle cache/replay/ v27 idle-cache lines indmesg(apple_dcp_hw_t6050has nohw.v27_idle_cache),0DCPswap/commit/powerofferror lines.4xeDP-1DPMS off/on (hl.dsp.dpms,hyprctl monitorsdpmsStatusFalsethenTrue): each restored3456x2234@120, connectorconnected/enabled,0newdmesgerr/warn lines.wlan00% loss over 3 pings,AppleJ716PCMs present, BorealisApple M5 Max (G17C B1)vkcube --c 240 --wsi waylandclean,0LSM denials (capability, landlock, yama),1baseline failed system unit (aurora-peripherals.service, also on default),0failed user units,0GPU/MMU faults / Oops / BUG / WARN / SError lines (4kernelerr+lines from base:systemd-gpt-auto-generatorpair,aurora ... gpu: M5 bare-metal bootstrap failed at session: EPROBE_DEFER,avdmissing-firmware probe-2).fbconchvt/DIRTYFBreplay paths not run (no replay onT6050).Prior-head live hardware at
31e21a4ae8f4(2026-11-28, beforee50de028/a4d28a5amerges and962249cdc60f)76649338a1bc(J713 default kernel source8dbfa2895b93+ PRs; default cmdline +panic=10), kernel image SHA-256e8e9fd2813dd6347176d0e4a55a70d1c694bdab75817c3ab83c441c203140491, one-shot Stage 2 SHA-256f7d4e2f7ebbfb423bd71f233f1aef7af0a39091b288a749d25f9250eb80adbfa, DTBceacf1d413c651396f4c1dfd9fa27b15c710dd849e46c2753fcff0a23a6681c6. Parity:31e21a4ae8f4is an ancestor;3/12files blob-identical (2/10runtime),8drivers/gpu/drm/apple/*files +dcp-internal.hcarry all added lines with no removed line remaining (iomfb.creconciled with dailydcp_push_try(), keeping both blocks).apple-dcp 30ae00000.dcp: v27 idle cache active (mem=51117696 host=1)22 s after boot (dynamic debug oniomfb_v27.c).state 4 -> 0, every on re-armed0 -> 1 -> 2 -> 4(replays9 -> 16).s2idle:4 -> 0, then0 -> 1 -> 2 -> 4after resume.fbconexclusion (addresses the J313 console-onlyfbconfreeze report):chvt 3for 12 s dropped the cache4 -> 0at199.99 swith no re-arm untilchvt 1at ~213 s(0 -> 1 -> 2 -> 4, replays14 -> 15);vtcon1bound,/proc/fbappledrmfb. Visual redraw not observed remotely.apple-dcpunbind (echo 30ae00000.dcp > .../apple-dcp/unbind, last step of boot) returned0from state4(4 -> 0,retaining live DCP DMA resources after unbind; reboot requiredfor30ae00000/48ae00000/286e00000; GPU fail-stopG16: fail-stop (ENODEV)as expected) with0Oops/WARN/BUG/refcount/hung-task/call-trace lines; rebooted afterwards.eDP-12560x1664@60enabled, MTP input enumerated,wlan00% loss,speakerguardd-v2protected tone rc0, Borealisglmark25,099,0failed units,0AppArmor denials;4err+lines: 3 baseline (AFK[ep:20],unsupported DFB layout 2560x1664,apple_sepnotice) plus 1brcmfmacring line also observed on the default kernel boot.3545ebecb76f(origin/mainb897ccb4e71c+ 18 PRs,CONFIG_ARM_APPLE_SOC_CPUFREQ=m, AC power, default cmdline),Image.gzSHA-256d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312,t6050-j716c.dtbd2f0db7a5026ae9cc4e1cff61dca38b4d1b363d47e5bad696ef65c7d715517e0, modules9d5782bcf02ea60a225278c9319431f902b495f6beb485d79d127c0fb2fccc92, one-shot Stage 2b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d. Parity:31e21a4ae8f4is an ancestor;4/12files blob-identical,8/12hunks-present (dcp-internal.hreconciled with#3410keeping both field blocks;iomfb.creconciled with#3410keepingiomfb_test_push_contextand adaptingdcp_push_try()todcp_push_context(..., unwind_on_err = false), and with#3399keepingdcp_crtc_prepare_hdr()/vrr_onlyalongsideiomfb_v27_idle_cache_invalidate()beforedcp_mode_begin()).0v27 idle-cachelines indmesgfor the whole boot;eDP-13456x2234@120enabled, 3× DPMS off/on (0new err/warn lines, 3 DCP firmwareIOAVVideoInterface open failedsyslog lines on DPMS-on vs0kernel DCP warnings/errors), 2× freeze + 2× mempm_test=devicesand 2×pm_test=platformclean,0DCP warnings/errors; 6-item smoke pass (0failed user units,0LSM denials,aurora-peripherals.servicewarm-reboot baseline failure also on default/control;40err+lines all pre-existing vs55-line default boot exceptPM: suspend debugand the 3 DPMS syslog lines).main+ 9 PRs, undocked on battery, all PR changed files parity-identical againstmain), kernel SHA-256888c041944da96032a9252504c4d5543b906fd98717234eca5e091150af85798, one-shot Stage 2 SHA-256949dc089ed390b7535dd5ef2a6e99975c3026658e58dbd9d17e9b20d2bbb7d71:eDP-1enabled, keyboard/trackpad,wlan0, audio enumerated, BorealisApple M1 (G13G B1)compute/render OK),0AVC denials,1baseline failed unit (speakerguardd-v2-switchtest.servicealso on baselinemainee36fbdcd1c8SHA-256f750b04aebd30c439edbd3b995c17b3fd9ad805a4561dadc7ecbf78040c89289), 3× DPMS off/on pass, 2× deep S2R (rtcwake -d rtc1 -m mem -s 30) pass (0Oops/BUG/WARN; post-S2R ISP capture failed after the 1st deep resume in Group A withapple-ispfirmware boot-19/ DART translation fault vs passed after the 1st deep resume on baselinemain, unisolated, tracked under#3329).Earlier-head live hardware at
c85087653bd4(default command line)v27 idle cache active (mem=51117696 host=1).4 -> 0, every on transitioned0 -> 1 -> 2 -> 4, replays advanced2 -> 3 -> 4 -> 5.s2idlecycles: every suspend transitioned4 -> 0, every resume transitioned0 -> 1 -> 2 -> 4, replays advanced6 -> 9,0DCP errors.fbcon(appledrmfb) exclusion: after stopping the compositor and switching totty3, cache dropped4 -> 0with00 -> 1re-arms over ~10 s (replays held at12); re-armed after compositor restart (replays13). Visual redraw was not observed remotely.apple-dcpunbind in state 4 returned0(4 -> 0, DCP firmware powered off,retaining live DCP DMA resources after unbind; reboot required) with0Oops/WARN/BUG/refcount/hung-task/call-trace lines (as logged, live unbind tears down/dev/driand requires a hard reset on reboot).0v27 idle-cacheadmission/negotiation messages.eDP-13456x2234@120connected; 2×appledrmfbDPMS blank/unblank cycles (Off -> On,3456x2234restored) and 2×pm_test=devicescycles clean;0DCP/DRM warnings or errors.eDP-12560x1600@60connected (appledrmfbfb1), 4× DPMS off/on cycles clean, survived 5×s2idle+ 5×deepsleeps withdpms=On,0kernel WARN/Oops/DRM errors.Earlier-head live hardware at
f7e6fb162951(batched candidates, default command line)b3dbf237542bovermain9e38a276dcb4, Linux 7.3.0, default Stage 2: clean boot,0failed systemd units,0panics/Oops/BUG/SErrors/DART faults/LSM denials;eDP-12560x1664@60; BorealisApple M4 (G16G B0).30ae00000.dcp: v27 idle cache active (mem=51117696 host=1). WitheDP-1active the cache transitioned0 -> 1 -> 2 -> 4across 3x real DPMS off/on cycles (dpmsStatus0 -> 1x3;4 -> 0on DPMS off, re-entering0 -> 1 -> 2 -> 4on DPMS on,replays=12..18), reachingreplays=21..24through 3xs2idle(rtcwake -d /dev/rtc1 -m freeze -s 5, 3/3 PASS,dpmsStatus=1on every wake).0DCP/IOMFB errors.c3da8eed6f72overmain9af21b007425, Linux 7.3.0, default Stage 2, AC 100%: single boot ID,0panics/Oops/BUG/SErrors/DART faults/GPU faults/LSM denials,eDP-13456x2234@120.48ae00000negotiated and went0 -> 1 -> 2(observed with dynamic debugdev_dbg), returned to0on DPMS off and re-entered1 -> 2on DPMS on with0v27 idle-cache ... failed/refusedwarnings,replays=0, and state4never reached (now disabled via default-offhw.v27_idle_cache).Earlier-head unplugged hardware coulomb-counter A/B on J713 (
macsmc-battery/charge_counter,BAAC, 1 mC/count)Measured back-to-back on J713 M4 MacBook Air (
macsmc-ac/online=0, discharging, 60 s settled after 20 s post-boot settle + 10 s per-step settle,kbd=0,wifi_ps=off,P_coulomb = |dCC| * V_avg / dt; voltage sampled every 10 s; measured on historical test buildc05e2a268684, which differed fromba76eb6e18f7in mailbox error handling and DMA-retention timing, with state-4 replay runtime re-verified on71d4331a4fb5andba76eb6e18f7):859e8a29796c)v27state 4 active)bl=5-8,757 mC,13.1089 V)-8,323 mC,13.1483 V; repeat1,827.0 mW)bl=150-16,808 mC,13.0791 V)-16,358 mC,13.1177 V; repeat3,578.7 mW)-3,420 mC,13.1279 V)-3,424 mC,13.1876 V)Earlier-head kernel log excerpt (J713 firmware 27.2, default cmdline,
ba76eb6e18f7)