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 <erik@ebourget.net>
|
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 <erik@ebourget.net>
|
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 <erik@ebourget.net>
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 <erik@ebourget.net>
|
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.
|
Review at I read the full diff. The idle-cache worker takes its state under Local checks on a merge with
Still needed before merge: hardware rows at exact head |
Bring in main ccb3d8b, which now carries #3410. Keep both the external idle power-off fields and the firmware 27 idle-cache fields in struct apple_dcp. Take main's dcp_push_try() and pass unwind_on_err = false there, so only the idle-cache submit unwinds a failed send, and keep the KUnit iomfb_test_push_context() wrapper. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
J773g (T8132 / M4 mini) 0b097c6 ( |
|
Forward-merged |
|
No forward merge is needed at Checks on merge tree
The hardware rows still need head |
|
Host-tests at |
|
J773g a74ae40 PASS (7.3.0-j773g-comp4-2856-3227 on main 1262f9e, boot_id=a2fdb8dc-5904-45ba-aca5-cd6391aa061a; boot clean with 0 WARN/Oops; dmesg "idle cache|replay" count=0; 4x DPMS off/on + 10x DRM off->detect replugs on external DP-3 3840x2160 OK; chvt 3 console update verified in /dev/vcs3 and chvt back to VT1 OK; 3x s2idle OK; 0 DART faults, 0 failed units) |
Main 110d84f. The only textual conflict was the case list in drivers/gpu/drm/apple/iomfb_v27_test.c: main added v27_hdmi_pq_from_sdr_test (#3952) where this branch added its five v27_idle_* cases. Keep all six. dcp.c, dcp-internal.h, iomfb.c and lifecycle.py merged without conflicts. dcp_crtc_atomic_modeset() drops the idle-cache template before either mode set of the SDR-then-PQ sequence runs. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merged What the merge resolved. The only text conflict was the KUnit case list in
The PR's own diff is line-for-line the same as before the merge, apart from that shared include. Local checks on the merged tree (x86_64 build box):
Review: I read the full diff against Not run yet:
|
There was a problem hiding this comment.
Verdict: MERGE at 19c91f5
Checked: Since the previous approval, the production delta moves the wait-queue initializer to the shared IOMFB initializer and routes caching-capable scanout through the dirty callback. Probe initializes the queue before publishing the DCP. The KMS path takes the dirty callback for a caching CRTC, excludes the separate T8132 external CRTCs and keeps the distinct framebuffer ops on the non-caching clients. Replay admission still requires a capable internal panel, and the new KUnit case exercises the dirty callback through an atomic commit.
|
J713 row at exact head A = saved Method: ftrace
So nothing regresses (display, DPMS, s2idle and deep all as base), but the static desktop does not enter replay on this J713. The per-frame hooks run, yet |
Keep main's external idle-off and DART save/restore flags alongside the firmware-27 panel replay capability. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Forward-merged |
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 (historical earlier-head J713 coulomb-counter A/B measured ~88–89 mW idle battery savings; not yet refreshed at head), 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, unshadowedfbdevexclusion on non-caching interfaces, andDIRTYFBdirty-commit routing.Tested: Hosted CI green at
0388c9334b8d(Apple build and KUnit,Host tests,pr-text,pr-readiness), composite hardware checks at0388c9334b8donJ313(M1 Air,T8103) and partial checks onJ716c(M5 Max,T6050) (J713currently off-network;25e08d2ee142composite built cleanly forJ713), plus prior4a6030e3598bhost/KUnit suites anddf01a6cd9b2e/31e21a4ae8f4/c85087653bd4/f7e6fb162951/c05e2a268684live hardware rows in Evidence:0388c9334b8d, merged overmain351190d9b140):Apple build and KUnit(apple-build,KUnit plan,KUnit dcp-fabric dcp-topology dcp-display)SUCCESS,Host testsSUCCESS,pr-textSUCCESS,pr-readinessSUCCESS;checkpatch.pl --strict(351190d9b140..0388c9334b8d)0errors,0warnings (1false-positive CamelCase check onDRM_MODE_CONNECTOR_eDP);git diff --check 351190d9b140..0388c9334b8dclean.0388c9334b8d, M1 Air,T8103, fw27.2): PASS in composite807c3bbf2263(origin/maind3de772ac0c1+#3507,#3332,#3850,#3359,#3334+#3410,#3300,#3289): clean boot (0Oops/BUG/WARN/SError/Call trace;err+lines subset of default kernel;speakerguardd-v2-switchtest.servicefailed identically on a separate build without#3359, not attributed to#3289),0idle-cache/replaylines indmesgbefore and after DPMS (default-off confirmed),>= 7internaleDP-1DPMS off/on cycles (backlight 0 -> 130), and3/3docked deep S2R PASS (rtcwake -d /dev/rtc1 -m mem -s 20,suspend_statsfail 0, 16 MB RAM integrity PASS, pre/post-sleep GPU compute/render PASS; software-undockeds2idlehung and is tracked under#3334).0388c9334b8d, M5 Max,T6050, fw27.2): partial PASS in composite8d250d354c97(origin/maind3de772ac0c1+#3717,#3398+#3410,#3409,#3273,#3289,#3359): clean desktop boot (0Oops/WARN/BUG/Call trace),0idle cache/replaylines indmesg(default-off confirmed), and3xeDP-1DPMS off/on (3456x2234restored,0Oops/WARN); pass stopped ons2idle(rtcwake -m freezenon-wake matching knownmainRTC-wake behaviour), leaving deep suspend and post-sleep checks unrun.0388c9334b8d, M4 Air,T8132, fw27.2): composite25e08d2ee142(origin/maind3de772ac0c1+#3717,#3273,#3289,#3300,#3359,#3409) built cleanly (kb run -p linux-j713,352 s, exit0); hardware pass unrun whileJ713is off-network (moved to Not yet; priordf01a6cd9b2erow in Evidence).4a6030e3598b, after mergingmain19ee1b5bc9d5, before351190d9b140mainmerge):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),LLVM=1 ARCH=arm64 W=1build ofdrivers/gpu/drm/apple/0warnings.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:
0388c9334b8don J713 (M4 Air,T8132, firmware27.2, currently off-network; composite25e08d2ee142built cleanly): cache entry/exit (v27 idle cache active, DPMS off/on,s2idle),fbconchvt 3check leavingtty3visible through idle and writing new text to verify screen redraw, separate DRM-masterDRM_IOCTL_MODE_DIRTYFBcheck from state4, liveapple-dcpunbind from state4, boot smoke, and refreshed unplugged coulomb-counter A/B.M5 Max,T6050, firmware27.2) deep suspend/resume and post-sleep checks at0388c9334b8d(pass stopped ons2idlertcwake -m freezenon-wake).fbconlive-console redraw on J713 (T8132, firmware27.2) (unless verified during the pass).T6041,T8122,T8142/J813/J815), which stay disabled by default (hw.v27_idle_cache = false) until verified.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.0388c9334b8dmergesmain(351190d9b140) cleanly:dcp_comp_unbind()callsiomfb_v27_idle_cache_release_obj(dcp)before the PIODMA shutdown guard,dcp_platform_probe_pipe()keepsinit_waitqueue_head(&dcp->typec_fw_wq)whilechannels_idle_wqstays iniomfb_queue_init(), andiomfb_v27_test.cpreserves all 13v27_cases[]entries (v27_rt_bw_doorbell_reply_testalongside the 5v27_idle_*tests).Evidence
Hosted CI & style checks at
0388c9334b8dApple build and KUnit:apple-build(SUCCESS,https://github.com/aurora-silicon/linux/actions/runs/46799214179/job/143181038663),KUnit plan(SUCCESS,https://github.com/aurora-silicon/linux/actions/runs/46799214179/job/143181038922),KUnit dcp-fabric dcp-topology dcp-display(SUCCESS,https://github.com/aurora-silicon/linux/actions/runs/46799214179/job/143190332365).Host tests:host-tests(SUCCESS,https://github.com/aurora-silicon/linux/actions/runs/46799213605/job/143181033005).pr-text:pr-text / pr-text(SUCCESS,https://github.com/aurora-silicon/linux/actions/runs/46799213971/job/143181030751).pr-readiness:readiness / readiness(SUCCESS,https://github.com/aurora-silicon/linux/actions/runs/46799212551/job/143181025879).git diff --check 351190d9b140..0388c9334b8d --: clean.git diff 351190d9b140..0388c9334b8d -- | scripts/checkpatch.pl --strict -:0errors,0warnings,1CamelCase check on upstreamDRM_MODE_CONNECTOR_eDP(2488lines checked).Live hardware at
0388c9334b8dM1 Air,T8103, G13G, firmware27.2, default cmdline, one-shot Stage 2 + GRUB): composite807c3bbf2263(origin/maind3de772ac0c1+#3507,#3332,#3850,#3359,#3334+#3410,#3300,#32890388c9334b8d):0Oops/BUG/WARNING/SError/Call trace;err+lines subset of default kernel;speakerguardd-v2-switchtest.servicefailed identically on a separate#3321build without#3359, not attributed to#3289;DCPDP2XService admission failed: -19seen on the default kernel was absent).0idle-cache/replaylines indmesg, checked before and after DPMS cycles.eDP-1DPMS off/on PASS (>= 7cycles over 3 boots, backlight0 -> 130each time; plusDP-2DPMS when docked).3/3docked deep S2R (rtcwake -d /dev/rtc1 -m mem -s 20,suspend_statssuccess0->1,fail 0, 16 MB RAM integrity PASS,0Oops/WARN/SError; pre/post-sleepcompute-checkandrender-checkPASS). Software-undockeds2idlehung and is tracked separately under#3334.M5 Max,T6050, firmware27.2, default cmdline +watchdog.open_timeout=120, chained trial Stage 2): partial PASS in composite8d250d354c97(origin/maind3de772ac0c1+#3717,#3398+#3410,#3409,#3273,#32890388c9334b8d,#3359;dcp-internal.handiomfb.creconciled with#3398keeping both field sets,dcp_push_try()passingunwind_on_err = false, and preservingiomfb_test_push_context()):0Oops/WARN/BUG/Call trace;err+lines:avdprobe-2,M5 bare-metal bootstrap EPROBE_DEFER,systemd-gpt-auto-generatorpair, boot-timeapple-dcp ... AFK ... unable to match service; failed units:aurora-peripherals.servicealso on default, plusspeakerguardd-v2-switchtest.service).0idle cache/replaylines indmesg.3xeDP-1DPMS off/on through Hyprland (hl.dsp.dpms):dpmsOff/On follows,3456x2234restored,enabled,0Oops/WARN (open_ioav_gated(): IOAVVideoInterface open failedfirmware syslog line on each DPMS-on, not compared against stock).s2idle(rtcwake -d /dev/rtc1 -m freeze -s 10, did not wake — matches knownmainRTC-wake behaviour); deep suspend/resume and post-sleep smoke were not run.M4 Air,T8132, firmware27.2): composite25e08d2ee142(origin/maind3de772ac0c1+#3717,#3273,#32890388c9334b8d,#3300,#3359,#3409) built cleanly (kb run -p linux-j713,352 s, exit0); hardware pass not run whileJ713is off-network.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(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: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:117passed,0failed (117total).make O=_build_w1 LLVM=1 ARCH=arm64 W=1 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.Prior-head live hardware at
df01a6cd9b2e(before4a6030e3598band0388c9334b8dmainmerges)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 (eDP-1restored cleanly each cycle with0kernel DCP warnings/errors and 3 transient DPMS-on firmware syslog notices), 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-on firmware syslog notices).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).Historical 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; historical measurement on earlier test buildc05e2a268684, which differed fromba76eb6e18f7in mailbox error handling and DMA-retention timing, and predates the subsequentmainmerges — not yet refreshed at0388c9334b8d):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)