Repository navigation
iommu/apple-dart, drm/apple: fix T8020 display DART save/wake - #3334
Conversation
dcp_ext_idle_off_work() calls apple_dart_power_dark(dart, true) before dcp_s2r_stop_streams(). Previously apple_dart_t8020_display_streams() gated apple_dart_save_state() on !READ_ONCE(dart->display_dark), so a T8020 display DART already marked dark skipped saving its TTBR, TCR, and ENABLE_STREAMS before its power domain dropped, leaving translations unrestored on wake. Enter display-dark mode first, then save DART state whenever !dart->display_saved. Signed-off-by: Erik Bourget <erik@ebourget.net>
Two fixes for external DCPs whose display DART shares the DCP power domain and is managed through dcp_s2r_domains_off() (such as T8103): 1. Set dcp->ext_idle_domains_off in dcp_s2r_domains_off() whenever dcp->hw.s2r_ext is set rather than only for T8142, so idle suspend and teardown paths track domain power state accurately. 2. In dcp_s2r_ext_start() and dcp_s2r_warm_restart(), skip the standalone apple_dart_power_dark(s2r_disp_dart, false) call when dcp->hw.s2r_disp_dart_with_dcp is true: apple_dart_display_streams() restores TTBR/TCR before calling apple_dart_display_dark_exit() and running the post-restore TLB invalidation. Clearing display_dark early raced with concurrent shared-framebuffer map/unmap flushes and caused dark-exit TLB invalidation to be skipped. 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. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict at 41171cb7a931: changes requested, 1 blocker. The DART change and the warm-restart reorder are correct. The external-DCP half doesn't run on T8103 in this stack.
Blocker: the T8103 external-DCP fixes depend on #3178, which isn't in this stack.
- At this head, the T8103
dcpextnode ("apple,t8103-dcpext", "apple,dcpext") binds the genericapple_dcp_hw_dcpext, which has onlynum_dptx_ports = 2. - It has no
s2r_ext, sodcp_s2r_ext_capable()anddcp_ext_idle_capable()are false, anddcp_s2r_ext_start()never runs there. - The hosts that do set
s2r_ext(apple_dcp_hw_t8140_external,apple_dcp_hw_t8142_dcpext) don't sets2r_disp_dart_with_dcp. So, on current hardware data:- the new
apple_dart_display_streams(..., true, false)block indcp_s2r_ext_start()is unreachable; - the
dcp_s2r_domains_off()change fromdcp_s2r_is_t8142_ext()todcp->hw.s2r_extchanges nothing.dcp_s2r_domains_off()is reached through the DPMS and refused-stop paths, which needhw.s2r, and throughdcp_s2r_ext_domains_off()only for T8142.
- the new
apple_dcp_hw_t8103_dcpext(with.s2r_ext = true) is added by #3178, which is open and isn't infeat/dcp-v27-ext-idle-offormain.- So the J313
ps_dispext_fe/ps_dispext_cpu0result in the batched7.3.0-j313ener1build can't come from this PR's DCP hunks alone. - #3178 also touches the same
dcp_s2r_ext_start()and display-DART code, so the two PRs will conflict. - Fix (either is fine):
Checked
apple_dart_t8020_display_streams()(23091b1):- Entering dark first and then saving once, on
!display_saved, fixes the skipped save whendcp_ext_idle_off_work()has already calledapple_dart_power_dark(dart, true). apple_dart_display_dark_enter()is idempotent (it is a flag, not a count), and the domain is still powered at that point.host_offstill short-circuits a later call made with the domain off.- The
onpath restores and clearsdisplay_saved. - Only
DART_T8020display DARTs (T8103) take this function. Other types use the T8110 branch ofapple_dart_display_streams(), which is unchanged.
- Entering dark first and then saving once, on
dcp_s2r_warm_restart()(41171cb):- For
s2r_disp_dart_with_dcphosts, which is onlyapple_dcp_hw_t8103, it now skips the earlyapple_dart_power_dark(false). - The later
apple_dart_display_streams(s2r_disp_dart, ..., true, false)restores TTBR/TCR first, then exits dark inside the T8020onpath. So held invalidations no longer run before the translations are back. - Other hosts keep the existing order.
- For
- Commits and CI:
checkpatch --strictgives 0/0/0 on both commits, which are signed off with no attribution. CI at this head has onlypr-textgreen and readiness, with no build or KUnit jobs on this stacked base.
Rows before merge: after the fix, a J313 row at the exact head with both the internal panel and an external USB-C display:
- DPMS off/on;
s2idleanddeep;- the external hotplug wake after idle power-off, which is already under Not yet.
T8103's apple_dcp_hw_t8103_dcpext (.s2r_ext = true) lives in #3178 rather than feat/dcp-v27-ext-idle-off, leaving the dcp_s2r_domains_off() and dcp_s2r_ext_start() hunks unreachable on this stack. Narrow this PR to the T8020 display DART dark-save fix and dcp_s2r_warm_restart() wake-order fix, which apply directly to T8103 disp0 on this branch. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Thanks for the review — narrowed this PR in |
|
Verified |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict at defba2698f51: no code blockers, and the earlier blocker is resolved. It isn't ready to merge yet: a build, KUnit and a PR-body update are still owed (see below).
Earlier blocker (at 41171cb7a931): resolved.
defba2698f51drops the twos2r_exthunks, indcp_s2r_domains_off()anddcp_s2r_ext_start(). Againstfeat/dcp-v27-ext-idle-off, the PR is now two hunks: the T8020 save fix and thedcp_s2r_warm_restart()change.- Both only run on T8103's internal DCP:
apple_dart_t8020_display_streams()is taken only byapple,t8103-dartdisplay DARTs. T600x usesapple,t6000-dart, and M2 and later use T8110 DARTs.- The warm-restart change is gated on
s2r_disp_dart_with_dcp, which on this base onlyapple_dcp_hw_t8103sets.
- So the J313 row at this head is the right row: internal panel, DPMS off/on, 3×
s2idleanddeep, with 0 DART/DCP errors. No second-generation row is needed.
Checked (fresh review)
apple_dart_t8020_display_streams():apple_dart_display_dark_enter()now runs first. It is idempotent: it sets a flag and takes the TCR snapshot only on the first entry. So the display DART being dark already no longer skips the save.- Where that happens on this base:
dcp_s2r_refused_domains_off()darkens the DART throughdcp_s2r_domains_off()without a save. A later stream stop then took the old skip, and the wake neither restored the translations nor re-enabled the streams. The body's Details only citedcp_ext_idle_off_work(), which doesn't run on T8103 here. - The save is plain TCR/TTBR reads, done after the writers have drained. The old code already read
enableat this point, so it adds no MMIO in a state that didn't have any. display_savedis set once per power-down and cleared only by theonpath, after a successful dark exit.- If
dark_enter()times out, the call returns before saving. If the flush fails after the save,host_offstays false and the nextonstill restores and clears it.
dcp_s2r_warm_restart():- On T8103,
display_darkis still set when the laterapple_dart_display_streams(disp, ..., true, false)runs. So theonpath restores TTBR/TCR if they were lost, andapple_dart_display_dark_exit()then seesdisplay_tlb_staleand invalidates before the streams are enabled again. - Before, the early
apple_dart_power_dark(false)had already cleareddisplay_dark. That laterdark_exit()then returned at once and the post-restore invalidation never ran. - If the DCP DART's
onfails first, the display DART stays dark, and the existing crash path handles it. - Other hosts keep the early dark exit.
- On T8103,
- Commits: all three are signed off by the author, with no attribution.
checkpatch --strictgives 0/0/0 on each.
Not blocking
- History:
41171cb7a931adds thes2r_exthunks anddefba2698f51takes them out again, so its subject ("... idle state on s2r_ext hosts") no longer matches what lands. Squashing the two and retitling it as the warm-restart fix would keep the history clean. - When
feat/dcp-v27-ext-idle-offgoes tomain:mainnow has #3178'sapple_dcp_hw_t8103_dcpext, with boths2r_extands2r_disp_dart_with_dcp.main'sdcp_s2r_ext_start()anddcp_s2r_warm_restart()both still callapple_dart_power_dark(disp, false)before the restore.- So the follow-up you describe is needed at that merge. Otherwise the T8103 external DCP keeps the same early dark exit.
Before merge
- CI: only
pr-textran (pass), andreadinesswas cancelled. No build or KUnit job runs on this stacked base, so a build of this head needs to be green. - PR body:
Riskstill names T8142 and thes2r_extexternal DCPs.- Details item 2 still describes the dropped hunks.
- The Evidence section is from the old
7.3.0-j313ener1build, with the external-DCP PMGR values. - The
Not yethotplug line no longer applies to this PR. - All of these should be narrowed to T8103's internal DCP and the new row.
- Row provenance: the J313 row names candidate
8963018bbcb1, which isn't on GitHub, so I couldn't check that it contains this head. Pushing that tree, or naming the kernel commit the row was built from, lets the merge lane confirm it.
Superseded by the review at defba26
…fix/t8103-dcpext-idle-dart Signed-off-by: Erik Bourget <erik@ebourget.net>
… wake On T8103 external DCP (apple_dcp_hw_t8103_dcpext), the display DART shares the DCP power domain and sets s2r_disp_dart_with_dcp. Merging feat/dcp-v27-ext-idle-off made dcp_s2r_ext_start() reachable on T8103 DCPExt, where it unconditionally called apple_dart_power_dark(disp_dart, false) before restoring the T8020 display DART translations. Clearing display_dark early caused the subsequent apple_dart_display_streams(..., true, false) call's dark-exit step to return early without running the post-restore TLB invalidation. Share dcp_s2r_wake_darts() between dcp_s2r_ext_start() and dcp_s2r_warm_restart() so s2r_disp_dart_with_dcp pipelines skip the early power-dark exit and let apple_dart_display_streams() restore TTBR/TCR before draining dark writers and invalidating the TLB. Add KUnit tests for the wake call ordering. Signed-off-by: Erik Bourget <erik@ebourget.net>
Verify in APPLE_DART_KUNIT_TEST that a T8020 display DART marked dark before stream stop still saves its TTBR, TCR, and enable mask, restores them on wake before dark-exit TLB invalidation runs, and would miss the post-restore invalidation if display_dark were cleared early. Signed-off-by: Erik Bourget <erik@ebourget.net>
Match the GPL-2.0-only license of dcp.c for the included KUnit test helper drivers/gpu/drm/apple/dcp_s2r_test.c. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
@erikwb thanks, that answers my boot-chain questions. Next run on my J313, one boot of your kernel
I'll keep the debug Stage 2 ( I'll post the result here. |
|
@erikwb one question before I run it. In #3850 you say a real S2R wake on J313 currently cold-resets on Aura Stage 2 |
|
@malik-na Good catch — sorry for the contradiction. When I wrote the earlier comment,
|
|
@malik-na Correction on Aura Stage 2 The regression came from the bundled |
|
@erikwb J313 (M1 Air) deep S2R now resumes for me. The ~86 s reset I reported was the SEP driver not being bound, not Stage 2 or this PR. Setup
What was wrong on my side
With
User wake still resets (not this PR's code, as far as I can tell)
So for this PR: J313 internal-panel deep S2R at |
…t-idle-dart Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Hardware smoke row (second-family unaffected T8132) — J773g (
|
|
Local CI for exact head
The PR still targets |
|
@malik-na Good to confirm the 86 s reset was unbound On your wake-source question: no — our J313 deep-sleep runs used Forward-merged updated Verified offline at
Verified on
|
|
PASS J714s (M5 Pro, T6050/G17S B1) linux#3334 head 7be3a9c in composite b6002784 (main c2f1583 + #3410 465d7cf + #3334 7be3a9c + #3717 99fc90d + #3970 9b4f688, 7.3.0-m5-comp-3410-3970): 0 DART/DCP/GPU/Oops/WARN/BUG faults across boot + 2x rtcwake -m mem -s 20 + post-resume headless Vulkan (gpubench-rt-vk rt.scene medium 67.2 fps, crc32 765e2abd) & headless GL (egl-surfaceless-gles2 zink gl_error=0 rgba=[64,128,191,255]); aurora-g17 online=1 crashed=0 leaked=0, WDT armed, clean stock handback (b2c723cd). |
|
J773g (T8132 / M4 mini) exact-head
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Re-reviewed 7be3a9c after the retarget to main. T8020 power-down drains display DART writers before saving TTBR/TCR and disabling streams. The wake paths restore those registers before dark-exit invalidation and stream enable. The clean merge tree on ccb3d8b matches all 878 recorded DCP/DART compiler inputs from the passing J773g composite. The previously requested J313 physical-wake and physically unplugged s2idle comparison remains open; the exact-head software-undocked s2idle run in the PR body cold-reset.
|
M1 T8103/J293 peer row (w82) at head
Analysis: this head is stacked on #3410 and does not contain #3970's PCIe ASPM L1 suppression (verified Build note (shared with #3410): head does not compile under aurora_defconfig ( |
What: Fix T8020 display DART dark-save,
s2r_disp_dart_with_dcpwake ordering, andext_idle_domains_offtracking onfeat/dcp-v27-ext-idle-off(#3410), and enable runtime idle-off ons2r_disp_dart_with_dcppipelines once those fixes are present. Forward-merged updated#3410(9f33c3f95939, carrying per-openmanaged_buffer_allocDP audio buffer ownership +c7e82c6303b3+origin/mainfdad0c5804d8including#3870) at7be3a9cd7395.Tested: Offline checks pass at current head
7be3a9cd7395:ARCH=arm64 LLVM=1 W=1 KCFLAGS="-Werror"(drivers/iommu/apple-dart.o,drivers/gpu/drm/apple/{dcp.o,audio.o,av.o}):0errors,0warnings.git diff --check 9f33c3f95939..HEADclean;checkpatch.pl --strict --git 9f33c3f95939..HEAD:0errors (dca005c5ea46has only the pre-existingFILE_PATH_CHANGESwarning ondrivers/gpu/drm/apple/dcp_s2r_test.c, covered byF: drivers/gpu/drm/apple/inMAINTAINERS).APPLE_DART_KUNIT_TESTwithCONFIG_ARM64_16K_PAGES=y(71/71passed:io-pgtable-dart31/31,apple-dart-firmware-leaf1/1,apple-dart39/39, includingapple_dart_test_t8020_display_streams_dark_order,apple_dart_test_four_level_*,apple_dart_test_dapf_*,apple_dart_test_display_keep),drivers/iommu/io-pgtable-dart.kunitconfig(31/31passed),drivers/gpu/drm/apple/tests/display.kunitconfigwithCONFIG_SOUND=y+CONFIG_SND=y(297run:295passed,2skippedapple_g17_rx_util_min_testanddcpaud_no_sio_test, includingapple-dcp-s2r3/3,apple-dcp-firmware7/7:dcp_ext_idle_s2r_disp_dart_gateanddcp_ext_idle_audio_dma_pin, andapple-dcpaud-legacy11/11),display.kunitconfigwithCONFIG_SOUND=y+CONFIG_SND=y+CONFIG_DMADEVICES=y(297run:296passed,1skipped), anddrivers/gpu/drm/apple/tests/.kunitconfig(117/117passed).dcpaud(22/22),dart(24/24),dcp-tunnel-prepare-tests.py(PASS),dcpext26-startup-tests.py --mutants(PASS),backlight-coldboot-tests.py(PASS),display-sleep-merge-tests.py(17/17), andselftests/drivers/gpu/apple-dcp/run.py --group audio(2/2passed).J313 (
T8103, firmware27.2, docked) composite hardware pass at exact head7be3a9cd7395(carrying#34109f33c3f95939, merged ontoorigin/maind3de772ac0c1alongside#3507,#3332,#3850,#3359,#3300,#3289; composite807c3bbf2263):271c00000.dcpidle-off, wake, and PMGR domain state: after the dock's DP tunnel dropped (software NHI unbind then rebind),271c00000.dcploggeddcpext idle: powered off in 1 ms~5 safter tunnel teardown with PMGR registersdispext_fe 0x2300,dispext_cpu0 0x0f040300(target0, actual0); on attach,dcpext idle: woke in 1-2 ms(0x23ff/0x1404034fwithin0.3 s), then idle-off again~17 slater (repeated twice). An unattachedUSBCDP-audio PCM open returnedrc 0(no-ENODEV) and did not wake the external DCP domains.deepS2R:>= 7internaleDP-1DPMS off/on cycles across 3 boots passed;3/3dockeddeepS2R resumes (rtcwake -d /dev/rtc1 -m mem) passed, including one started from the idle-powered-off state (dispextrestored to0x3ff/0x1404034f,DP-2reconnected,0newerrlines,0Oops/WARN/SError; deep S2R with NHI unbound is refused-19bythunderbolt-apple-acio).s2idlestatus: dockeds2idleis cleanly refused atsuspend_noirqby501f00000.nhi(-EBUSY, no hang); software-undockeds2idle(NHI unbound with cable still attached,rtcwake -m freeze -s 15) did not wake and cold-reset after~60 s(no pre-reset logs survived), so physical-unplug undockeds2idleremains unvalidated.J716c(T6050, firmware27.2) in a composite trial kernel (origin/maind3de772ac0c1+ stacked#3398e270795bdddecarrying#34109f33c3f95939, composite8d250d354c97) also passed desktop boot (0Oops/WARN/BUG) and3xeDP-1DPMS off/on (3456x2234restored).Earlier J313 hardware runs (
884342eced0ctest merge of1ed13bfc645c+main3d7cc83dffb1by@malik-nawithapple_seploaded: 6/6 RTC-woken internal-paneldeepS2R resumes,0DART faults, plus one earlier non-reproduced-s 30reset ~56 s after entry withapple_seploaded and separate physical user-wake resets on hand/power-button wakes, with no external display or idle-off test; plus93c1460e0500and02f2f980442f) predate7be3a9cd7395(and93c1460e0500/02f2f980442fpredate134955d43f90and do not independently verify PMGR domain toggling during unattached idle-off).Risk: two-way door · Macs with T8020 display DARTs or
s2r_disp_dart_with_dcpDCPs (apple_dcp_hw_t8103internal DCP andapple_dcp_hw_t8103_dcpextexternal DCP on T8103), plusdcp->hw.s2r_extpipelines wheredcp_s2r_ext_domains_off()callsdcp_s2r_domains_off().Revert:
git revert -m 1 <merge_commit>after merge. Kernel driver and KUnit test changes only; no persistent on-disk, ESP, Stage 2, or DT state is modified.Not yet:
7be3a9cd7395) verification onJ313(T8103): physical-unplug undockeds2idle(dockeds2idleis cleanly refused-EBUSYby501f00000.nhi, while software-undockeds2idlewith NHI unbound cold-reset~60 safter entry), physical-wake (power button / lid)deepS2R comparison against the sameJ313mainbaseline, and plugged-in DP-audio playback across hotplug/idle-off.J713T8132, currently off-network/unreachable;J716cT6050booted#34109f33c3f95939via#3398e270795bdddecleanly through3xeDP-1DPMS off/on).#3334tomainbefore#3410merges (per branch policy, deleting a merged base branch closes PRs still stacked on it) and running hosted CI on7be3a9cd7395.Details
Targets open PR
#3410(feat/dcp-v27-ext-idle-off,9f33c3f95939, forward-merged withSigned-off-byat7be3a9cd7395; earlier1ed13bfc645cmergedf39fdeec3e43, resolvingdcp_s2r_ext_domains_on()indrivers/gpu/drm/apple/dcp.canddrivers/iommu/apple-dart-test.cto retain bothorigin/main's four-level/DAPF tests and#3334'sapple_dart_test_t8020_display_streams_dark_orderwhile keepingdcp_ext_idle_s2r_disp_dart_gatealongsidedcp_ext_idle_audio_dma_pinindcp-firmware-test.c).drivers/iommu/apple-dart.c: callers indrivers/gpu/drm/apple/dcp.c(dcp_ext_idle_off_work()anddcp_s2r_domains_off()) callapple_dart_power_dark(dart, true)beforedcp_s2r_stop_streams()/dcp_s2r_ext_domains_off(). Previouslyapple_dart_t8020_display_streams()indrivers/iommu/apple-dart.cgatedapple_dart_save_state()on!READ_ONCE(dart->display_dark), skipping TTBR, TCR, anddisplay_enablesave so wake neither restored lost translations nor re-enabled streams. Enter dark mode first viaapple_dart_display_dark_enter()and gate the save on!dart->display_saved.drivers/gpu/drm/apple/dcp.c:dcp_s2r_wake_darts()betweendcp_s2r_warm_restart()anddcp_s2r_ext_start()sos2r_disp_dart_with_dcppipelines (apple_dcp_hw_t8103andapple_dcp_hw_t8103_dcpext) skip the earlyapple_dart_power_dark(dcp->s2r_disp_dart, false)call. The laterapple_dart_display_streams(dcp->s2r_disp_dart, dcp_s2r_layout(dcp)->disp_streams, true, false)restores TTBR/TCR before callingapple_dart_display_dark_exit(), so held TLB invalidations run after TTBR/TCR restore and before streams are re-enabled.dcp_s2r_domains_off(), gatedcp->ext_idle_domains_off = trueondcp->hw.s2r_extrather thandcp_s2r_is_t8142_ext(dcp)soapple_dcp_hw_t8103_dcpexttracks powered-off domain state.#3410's!dcp->hw.s2r_disp_dart_with_dcpguard indcp_ext_idle_capable()(134955d43f90).drivers/gpu/drm/apple/dcp_s2r_test.c,drivers/gpu/drm/apple/dcp-firmware-test.c, anddrivers/iommu/apple-dart-test.c: add KUnit coverage fordcp_s2r_ext_start()/dcp_s2r_warm_restart()wake call ordering (apple-dcp-s2r),dcp_ext_idle_s2r_disp_dart_gatearming, and T8020 dark-save plus post-restore TLB invalidation ordering (apple_dart_test_t8020_display_streams_dark_order).Evidence
7be3a9cd7395(forward merge of#34109f33c3f95939into1ed13bfc645cwithSigned-off-by):make O=_build ARCH=arm64 LLVM=1 W=1 KCFLAGS="-Werror" drivers/iommu/apple-dart.o drivers/gpu/drm/apple/dcp.o drivers/gpu/drm/apple/audio.o drivers/gpu/drm/apple/av.o(aurora_defconfig+asahi.config,CONFIG_RUST=n):0errors,0warnings../scripts/checkpatch.pl --strict --git 9f33c3f95939..HEAD:0errors (dca005c5ea46has only the pre-existingFILE_PATH_CHANGESwarning ondrivers/gpu/drm/apple/dcp_s2r_test.c, covered byF: drivers/gpu/drm/apple/inMAINTAINERS);git diff --check 9f33c3f95939..HEADclean.APPLE_DART_KUNIT_TESTwithCONFIG_ARM64_16K_PAGES=y:71/71passed (io-pgtable-dart31/31,apple-dart-firmware-leaf1/1,apple-dart39/39, includingapple_dart_test_t8020_display_streams_dark_order,apple_dart_test_four_level_*,apple_dart_test_dapf_*,apple_dart_test_display_keep).drivers/iommu/io-pgtable-dart.kunitconfig:31/31passed.drivers/gpu/drm/apple/tests/display.kunitconfigwithCONFIG_SOUND=y+CONFIG_SND=y:297run:295passed,2skipped (apple_g17_rx_util_min_test,dcpaud_no_sio_test), includingapple-dcp-s2r3/3,apple-dcp-firmware7/7(dcp_ext_idle_s2r_disp_dart_gate,dcp_ext_idle_audio_dma_pin), andapple-dcpaud-legacy11/11(dcpaud_legacy_unplugged_void_buffer,dcpaud_legacy_unplugged_hotplug_managed_buffer,dcpaud_legacy_plugged_close_unplug_reopen_vmalloc).drivers/gpu/drm/apple/tests/display.kunitconfigwithCONFIG_SOUND=y+CONFIG_SND=y+CONFIG_DMADEVICES=y:297run:296passed,1skipped (apple_g17_rx_util_min_test), includingapple-dcpaud-legacy11/11.drivers/gpu/drm/apple/tests/.kunitconfig:117/117passed (apple-dcp-fabric).python3 -I tools/asahi/run-host-tests.py --only dcpaud:22/22passed (dcpaud-open-fallback-tests+12/12mutants killed +dcpaud-sleep-hold-tests).python3 -I tools/asahi/run-host-tests.py --only dart:24/24passed.python3 -I tools/asahi/dcp-tunnel-prepare-tests.py: PASS.python3 -I tools/asahi/dcpext26-startup-tests.py --mutants: PASS.python3 -I tools/asahi/backlight-coldboot-tests.py: PASS.python3 -I tools/asahi/display-sleep-merge-tests.py: PASS (17/17).python3 tools/testing/selftests/drivers/gpu/apple-dcp/run.py --group audio:2/2passed (compact-audio-reply-bounds,cec-only-av-endpoint).J313(T8103, firmware27.2, docked) composite hardware pass (origin/maind3de772ac0c1+7be3a9cd7395carrying#34109f33c3f95939, composite807c3bbf2263):271c00000.dcpidle-off and wake: after DP tunnel drop via software NHI unbind+rebind,dcpext idle: powered off in 1 mslogged~5 safter teardown with PMGR registersdispext_fe 0x2300,dispext_cpu0 0x0f040300(target0, actual0); on attach,dcpext idle: woke in 1-2 ms(0x23ff/0x1404034fwithin0.3 s) and idle-off again~17 slater (repeated twice). Notes: the genpd summary still reportsdispext_*asonbecause the driver writes PMGR directly; the first software undock without NHI rebind did not idle off in80 s; and with the dock cable still attached the DP tunnel did not return after NHI rebind (no Type-C connector for the DP tunnel) until the next sleep cycle/reboot.USBCDP-audio PCM open returnedrc 0(no-ENODEV) and did not wake the external DCP domains.eDP-1DPMS off/on:>= 7cycles passed across 3 boots.deepS2R:3/3passes including one entered from the idle-powered-off state (dispextback to0x3ff/0x1404034f,DP-2reconnected,0newerrlines,0Oops/WARN/SError). Deep S2R with NHI unbound is refused by design (thunderbolt-apple-acio: refusing system sleep: the port cannot be powered off (-19)).s2idle: dockeds2idlerefused cleanly atsuspend_noirqby501f00000.nhi(-EBUSY, no hang); software-undockeds2idle(rtcwake -m freeze -s 15, NHI unbound with cable attached) did not wake and cold-reset after~60 sback to the stock daily kernel (no pre-reset logs survived), leaving physical-unplug undockeds2idleinNot yet.7be3a9cd7395):884342eced0c(1ed13bfc645c+main3d7cc83dffb1including#3870and#3871, tested by@malik-na, Stage 1/21.0.0b17-gf5ddfff2,modprobe apple-sep, internal panel, on AC): 6/6 RTC-wokendeepS2R resumes across three boots (rtcwake -m mem -s 90,2x -s 30,systemctl suspendwithrtcwake -m no -s 60,rtcwake -m mem -s 10;boot object resumes 0 -> 1 -> 2 -> 3,0DART faults,0warm restart failed, no Oops/WARN; no external display or idle-off test). Also reported one earlier-s 30reset (~56 s after sleep entry) withapple_seploaded that did not reproduce later (alongside earlier~86 swatchdog resets before loadingapple_sep), and separate physical-wake resets on hand/power-button wakes (twosystemctl suspendruns woken by hand resetting at 47 s / 51 s, andrtcwake -m mem -s 120with power button pressed ~15 s in resetting at 48 s). Exact-head (7be3a9cd7395) RTC + physical wake comparison against the same J313mainbaseline is tracked inNot yet.93c1460e0500(M1 MacBook Air, T8103, fw27.2.1, default cmdline,s2r_untested=N, EIZO USB-C2560x1440@60):271c00000.dcppowered off idle after unplug (t=65.15 s) and woke in1 mson physical replug (t=304.106 s,2560x1440@60restored,0DART faults).deepS2R at93c1460e0500(batchedac44bee46ee4,main9e38a276dcb4): 3/3 DPMS off/on cycles (eDP-1+DP-2) anddeepS2R (0DART faults,0warm restart failed: -62, both displays recovered).02f2f980442f(superseded by93c1460e0500).