Skip to content

iommu/apple-dart, drm/apple: fix T8020 display DART save/wake - #3334

Merged
DjDeveloperr merged 13 commits into
mainfrom
fix/t8103-dcpext-idle-dart
Dec 2, 2026
Merged

DjDeveloperr merged 13 commits into
mainfrom
fix/t8103-dcpext-idle-dart

Conversation

@erikwb

@erikwb erikwb commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What: Fix T8020 display DART dark-save, s2r_disp_dart_with_dcp wake ordering, and ext_idle_domains_off tracking on feat/dcp-v27-ext-idle-off (#3410), and enable runtime idle-off on s2r_disp_dart_with_dcp pipelines once those fixes are present. Forward-merged updated #3410 (9f33c3f95939, carrying per-open managed_buffer_alloc DP audio buffer ownership + c7e82c6303b3 + origin/main fdad0c5804d8 including #3870) at 7be3a9cd7395.

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}): 0 errors, 0 warnings.
  • git diff --check 9f33c3f95939..HEAD clean; checkpatch.pl --strict --git 9f33c3f95939..HEAD: 0 errors (dca005c5ea46 has only the pre-existing FILE_PATH_CHANGES warning on drivers/gpu/drm/apple/dcp_s2r_test.c, covered by F: drivers/gpu/drm/apple/ in MAINTAINERS).
  • arm64 QEMU KUnit: APPLE_DART_KUNIT_TEST with CONFIG_ARM64_16K_PAGES=y (71/71 passed: io-pgtable-dart 31/31, apple-dart-firmware-leaf 1/1, apple-dart 39/39, including apple_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/31 passed), drivers/gpu/drm/apple/tests/display.kunitconfig with CONFIG_SOUND=y + CONFIG_SND=y (297 run: 295 passed, 2 skipped apple_g17_rx_util_min_test and dcpaud_no_sio_test, including apple-dcp-s2r 3/3, apple-dcp-firmware 7/7: dcp_ext_idle_s2r_disp_dart_gate and dcp_ext_idle_audio_dma_pin, and apple-dcpaud-legacy 11/11), display.kunitconfig with CONFIG_SOUND=y + CONFIG_SND=y + CONFIG_DMADEVICES=y (297 run: 296 passed, 1 skipped), and drivers/gpu/drm/apple/tests/.kunitconfig (117/117 passed).
  • Host & selftests: 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), and selftests/drivers/gpu/apple-dcp/run.py --group audio (2/2 passed).

J313 (T8103, firmware 27.2, docked) composite hardware pass at exact head 7be3a9cd7395 (carrying #3410 9f33c3f95939, merged onto origin/main d3de772ac0c1 alongside #3507, #3332, #3850, #3359, #3300, #3289; composite 807c3bbf2263):

  • Unattached 271c00000.dcp idle-off, wake, and PMGR domain state: after the dock's DP tunnel dropped (software NHI unbind then rebind), 271c00000.dcp logged dcpext idle: powered off in 1 ms ~5 s after tunnel teardown with PMGR registers dispext_fe 0x2300, dispext_cpu0 0x0f040300 (target 0, actual 0); on attach, dcpext idle: woke in 1-2 ms (0x23ff / 0x1404034f within 0.3 s), then idle-off again ~17 s later (repeated twice). An unattached USBC DP-audio PCM open returned rc 0 (no -ENODEV) and did not wake the external DCP domains.
  • Display DPMS and deep S2R: >= 7 internal eDP-1 DPMS off/on cycles across 3 boots passed; 3/3 docked deep S2R resumes (rtcwake -d /dev/rtc1 -m mem) passed, including one started from the idle-powered-off state (dispext restored to 0x3ff / 0x1404034f, DP-2 reconnected, 0 new err lines, 0 Oops/WARN/SError; deep S2R with NHI unbound is refused -19 by thunderbolt-apple-acio).
  • s2idle status: docked s2idle is cleanly refused at suspend_noirq by 501f00000.nhi (-EBUSY, no hang); software-undocked s2idle (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 undocked s2idle remains unvalidated.
  • J716c (T6050, firmware 27.2) in a composite trial kernel (origin/main d3de772ac0c1 + stacked #3398 e270795bddde carrying #3410 9f33c3f95939, composite 8d250d354c97) also passed desktop boot (0 Oops/WARN/BUG) and 3x eDP-1 DPMS off/on (3456x2234 restored).

Earlier J313 hardware runs (884342eced0c test merge of 1ed13bfc645c + main 3d7cc83dffb1 by @malik-na with apple_sep loaded: 6/6 RTC-woken internal-panel deep S2R resumes, 0 DART faults, plus one earlier non-reproduced -s 30 reset ~56 s after entry with apple_sep loaded and separate physical user-wake resets on hand/power-button wakes, with no external display or idle-off test; plus 93c1460e0500 and 02f2f980442f) predate 7be3a9cd7395 (and 93c1460e0500/02f2f980442f predate 134955d43f90 and 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_dcp DCPs (apple_dcp_hw_t8103 internal DCP and apple_dcp_hw_t8103_dcpext external DCP on T8103), plus dcp->hw.s2r_ext pipelines where dcp_s2r_ext_domains_off() calls dcp_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:

  • Final-head (7be3a9cd7395) verification on J313 (T8103): physical-unplug undocked s2idle (docked s2idle is cleanly refused -EBUSY by 501f00000.nhi, while software-undocked s2idle with NHI unbound cold-reset ~60 s after entry), physical-wake (power button / lid) deep S2R comparison against the same J313 main baseline, and plugged-in DP-audio playback across hotplug/idle-off.
  • Second-family unaffected boot/display/GPU smoke row (J713 T8132, currently off-network/unreachable; J716c T6050 booted #3410 9f33c3f95939 via #3398 e270795bddde cleanly through 3x eDP-1 DPMS off/on).
  • Retargeting #3334 to main before #3410 merges (per branch policy, deleting a merged base branch closes PRs still stacked on it) and running hosted CI on 7be3a9cd7395.
Details

Targets open PR #3410 (feat/dcp-v27-ext-idle-off, 9f33c3f95939, forward-merged with Signed-off-by at 7be3a9cd7395; earlier 1ed13bfc645c merged f39fdeec3e43, resolving dcp_s2r_ext_domains_on() in drivers/gpu/drm/apple/dcp.c and drivers/iommu/apple-dart-test.c to retain both origin/main's four-level/DAPF tests and #3334's apple_dart_test_t8020_display_streams_dark_order while keeping dcp_ext_idle_s2r_disp_dart_gate alongside dcp_ext_idle_audio_dma_pin in dcp-firmware-test.c).

  1. drivers/iommu/apple-dart.c: callers in drivers/gpu/drm/apple/dcp.c (dcp_ext_idle_off_work() and dcp_s2r_domains_off()) call apple_dart_power_dark(dart, true) before dcp_s2r_stop_streams() / dcp_s2r_ext_domains_off(). Previously apple_dart_t8020_display_streams() in drivers/iommu/apple-dart.c gated apple_dart_save_state() on !READ_ONCE(dart->display_dark), skipping TTBR, TCR, and display_enable save so wake neither restored lost translations nor re-enabled streams. Enter dark mode first via apple_dart_display_dark_enter() and gate the save on !dart->display_saved.
  2. drivers/gpu/drm/apple/dcp.c:
    • Share dcp_s2r_wake_darts() between dcp_s2r_warm_restart() and dcp_s2r_ext_start() so s2r_disp_dart_with_dcp pipelines (apple_dcp_hw_t8103 and apple_dcp_hw_t8103_dcpext) skip the early apple_dart_power_dark(dcp->s2r_disp_dart, false) call. The later apple_dart_display_streams(dcp->s2r_disp_dart, dcp_s2r_layout(dcp)->disp_streams, true, false) restores TTBR/TCR before calling apple_dart_display_dark_exit(), so held TLB invalidations run after TTBR/TCR restore and before streams are re-enabled.
    • In dcp_s2r_domains_off(), gate dcp->ext_idle_domains_off = true on dcp->hw.s2r_ext rather than dcp_s2r_is_t8142_ext(dcp) so apple_dcp_hw_t8103_dcpext tracks powered-off domain state.
    • Lift #3410's !dcp->hw.s2r_disp_dart_with_dcp guard in dcp_ext_idle_capable() (134955d43f90).
  3. drivers/gpu/drm/apple/dcp_s2r_test.c, drivers/gpu/drm/apple/dcp-firmware-test.c, and drivers/iommu/apple-dart-test.c: add KUnit coverage for dcp_s2r_ext_start() / dcp_s2r_warm_restart() wake call ordering (apple-dcp-s2r), dcp_ext_idle_s2r_disp_dart_gate arming, and T8020 dark-save plus post-restore TLB invalidation ordering (apple_dart_test_t8020_display_streams_dark_order).
Evidence
  • Current head 7be3a9cd7395 (forward merge of #3410 9f33c3f95939 into 1ed13bfc645c with Signed-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): 0 errors, 0 warnings.
    • ./scripts/checkpatch.pl --strict --git 9f33c3f95939..HEAD: 0 errors (dca005c5ea46 has only the pre-existing FILE_PATH_CHANGES warning on drivers/gpu/drm/apple/dcp_s2r_test.c, covered by F: drivers/gpu/drm/apple/ in MAINTAINERS); git diff --check 9f33c3f95939..HEAD clean.
    • arm64 QEMU KUnit:
      • APPLE_DART_KUNIT_TEST with CONFIG_ARM64_16K_PAGES=y: 71/71 passed (io-pgtable-dart 31/31, apple-dart-firmware-leaf 1/1, apple-dart 39/39, including apple_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/31 passed.
      • drivers/gpu/drm/apple/tests/display.kunitconfig with CONFIG_SOUND=y + CONFIG_SND=y: 297 run: 295 passed, 2 skipped (apple_g17_rx_util_min_test, dcpaud_no_sio_test), including apple-dcp-s2r 3/3, apple-dcp-firmware 7/7 (dcp_ext_idle_s2r_disp_dart_gate, dcp_ext_idle_audio_dma_pin), and apple-dcpaud-legacy 11/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.kunitconfig with CONFIG_SOUND=y + CONFIG_SND=y + CONFIG_DMADEVICES=y: 297 run: 296 passed, 1 skipped (apple_g17_rx_util_min_test), including apple-dcpaud-legacy 11/11.
      • drivers/gpu/drm/apple/tests/.kunitconfig: 117/117 passed (apple-dcp-fabric).
    • Host & selftests:
      • python3 -I tools/asahi/run-host-tests.py --only dcpaud: 22/22 passed (dcpaud-open-fallback-tests + 12/12 mutants killed + dcpaud-sleep-hold-tests).
      • python3 -I tools/asahi/run-host-tests.py --only dart: 24/24 passed.
      • 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/2 passed (compact-audio-reply-bounds, cec-only-av-endpoint).
    • J313 (T8103, firmware 27.2, docked) composite hardware pass (origin/main d3de772ac0c1 + 7be3a9cd7395 carrying #3410 9f33c3f95939, composite 807c3bbf2263):
      • Unattached 271c00000.dcp idle-off and wake: after DP tunnel drop via software NHI unbind+rebind, dcpext idle: powered off in 1 ms logged ~5 s after teardown with PMGR registers dispext_fe 0x2300, dispext_cpu0 0x0f040300 (target 0, actual 0); on attach, dcpext idle: woke in 1-2 ms (0x23ff / 0x1404034f within 0.3 s) and idle-off again ~17 s later (repeated twice). Notes: the genpd summary still reports dispext_* as on because the driver writes PMGR directly; the first software undock without NHI rebind did not idle off in 80 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.
      • Unattached USBC DP-audio PCM open returned rc 0 (no -ENODEV) and did not wake the external DCP domains.
      • Internal eDP-1 DPMS off/on: >= 7 cycles passed across 3 boots.
      • Docked deep S2R: 3/3 passes including one entered from the idle-powered-off state (dispext back to 0x3ff / 0x1404034f, DP-2 reconnected, 0 new err lines, 0 Oops/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: docked s2idle refused cleanly at suspend_noirq by 501f00000.nhi (-EBUSY, no hang); software-undocked s2idle (rtcwake -m freeze -s 15, NHI unbound with cable attached) did not wake and cold-reset after ~60 s back to the stock daily kernel (no pre-reset logs survived), leaving physical-unplug undocked s2idle in Not yet.
  • Prior J313 runs (predate 7be3a9cd7395):
    • Candidate 884342eced0c (1ed13bfc645c + main 3d7cc83dffb1 including #3870 and #3871, tested by @malik-na, Stage 1/2 1.0.0b17-gf5ddfff2, modprobe apple-sep, internal panel, on AC): 6/6 RTC-woken deep S2R resumes across three boots (rtcwake -m mem -s 90, 2x -s 30, systemctl suspend with rtcwake -m no -s 60, rtcwake -m mem -s 10; boot object resumes 0 -> 1 -> 2 -> 3, 0 DART faults, 0 warm restart failed, no Oops/WARN; no external display or idle-off test). Also reported one earlier -s 30 reset (~56 s after sleep entry) with apple_sep loaded that did not reproduce later (alongside earlier ~86 s watchdog resets before loading apple_sep), and separate physical-wake resets on hand/power-button wakes (two systemctl suspend runs woken by hand resetting at 47 s / 51 s, and rtcwake -m mem -s 120 with power button pressed ~15 s in resetting at 48 s). Exact-head (7be3a9cd7395) RTC + physical wake comparison against the same J313 main baseline is tracked in Not yet.
    • Undocked physical USB-C replug at 93c1460e0500 (M1 MacBook Air, T8103, fw 27.2.1, default cmdline, s2r_untested=N, EIZO USB-C 2560x1440@60): 271c00000.dcp powered off idle after unplug (t=65.15 s) and woke in 1 ms on physical replug (t=304.106 s, 2560x1440@60 restored, 0 DART faults).
    • Docked DPMS + deep S2R at 93c1460e0500 (batched ac44bee46ee4, main 9e38a276dcb4): 3/3 DPMS off/on cycles (eDP-1 + DP-2) and deep S2R (0 DART faults, 0 warm restart failed: -62, both displays recovered).
    • Standalone J313 USB4 dock trial at 02f2f980442f (superseded by 93c1460e0500).

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>
@erikwb
erikwb requested review from a team as code owners November 27, 2026 00:20
@erikwb
erikwb requested review from Acelogic and maralcbr November 27, 2026 00:20
@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 7be3a9cd: ready to merge

Check Detail
CI at head ok 1 check passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 7be3a9cd
Conflicts ok none
PR text ok Risk: two-way · Macs with T8020 display DARTs or s2rdispdartwithdcp DCPs (appledcphwt8103 internal DCP and appledcphwt8103dcpext external DCP on T8103), plus dcp->hw.s2rext pipelines where dcps2rextdomainsoff() calls dcps2rdomainsoff(). 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.

Areas: area:display, area:platform
Merge: gh pr merge 3334 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 dcpext node ("apple,t8103-dcpext", "apple,dcpext") binds the generic apple_dcp_hw_dcpext, which has only num_dptx_ports = 2.
  • It has no s2r_ext, so dcp_s2r_ext_capable() and dcp_ext_idle_capable() are false, and dcp_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 set s2r_disp_dart_with_dcp. So, on current hardware data:
    • the new apple_dart_display_streams(..., true, false) block in dcp_s2r_ext_start() is unreachable;
    • the dcp_s2r_domains_off() change from dcp_s2r_is_t8142_ext() to dcp->hw.s2r_ext changes nothing. dcp_s2r_domains_off() is reached through the DPMS and refused-stop paths, which need hw.s2r, and through dcp_s2r_ext_domains_off() only for T8142.
  • apple_dcp_hw_t8103_dcpext (with .s2r_ext = true) is added by #3178, which is open and isn't in feat/dcp-v27-ext-idle-off or main.
  • So the J313 ps_dispext_fe/ps_dispext_cpu0 result in the batched 7.3.0-j313ener1 build 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):
    • stack this on #3178, resolve the overlap, and re-run the J313 row at the resulting exact head;
    • or keep the DART and warm-restart fixes here, and move the external-DCP hunks into #3178.

Checked

  • apple_dart_t8020_display_streams() (23091b1):
    • Entering dark first and then saving once, on !display_saved, fixes the skipped save when dcp_ext_idle_off_work() has already called apple_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_off still short-circuits a later call made with the domain off.
    • The on path restores and clears display_saved.
    • Only DART_T8020 display DARTs (T8103) take this function. Other types use the T8110 branch of apple_dart_display_streams(), which is unchanged.
  • dcp_s2r_warm_restart() (41171cb):
    • For s2r_disp_dart_with_dcp hosts, which is only apple_dcp_hw_t8103, it now skips the early apple_dart_power_dark(false).
    • The later apple_dart_display_streams(s2r_disp_dart, ..., true, false) restores TTBR/TCR first, then exits dark inside the T8020 on path. So held invalidations no longer run before the translations are back.
    • Other hosts keep the existing order.
  • Commits and CI: checkpatch --strict gives 0/0/0 on both commits, which are signed off with no attribution. CI at this head has only pr-text green 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;
  • s2idle and deep;
  • the external hotplug wake after idle power-off, which is already under Not yet.

@github-actions github-actions Bot added the changes-requested A reviewer requested changes (bot) label Nov 27, 2026
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>
@erikwb

erikwb commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review — narrowed this PR in defba2698f51 to the T8020 display DART dark-save fix (23091b1b0c8d) and the dcp_s2r_warm_restart() wake-order fix, dropping the two s2r_ext hunks (dcp_s2r_domains_off() / dcp_s2r_ext_start()) that depend on apple_dcp_hw_t8103_dcpext from #3178. Those two hunks can land as a tiny follow-up once both #3178 and #3308 are on main. Will follow up with a J313 internal-panel DPMS/s2idle/deep row at defba2698f51.

@erikwb

erikwb commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Verified defba2698f51 on J313 M1 Air (candidate 7.3.0-j313ener2, default cmdline): boots with 0 failed units; internal eDP-1 DPMS off/on, 3x s2idle, and deep S2R (boot object resumes 0 -> 1, eDP-1 connected/On, 0 DART/DCP errors). Updated PR body What: and Tested: at defba2698f51.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  • defba2698f51 drops the two s2r_ext hunks, in dcp_s2r_domains_off() and dcp_s2r_ext_start(). Against feat/dcp-v27-ext-idle-off, the PR is now two hunks: the T8020 save fix and the dcp_s2r_warm_restart() change.
  • Both only run on T8103's internal DCP:
    • apple_dart_t8020_display_streams() is taken only by apple,t8103-dart display DARTs. T600x uses apple,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 only apple_dcp_hw_t8103 sets.
  • So the J313 row at this head is the right row: internal panel, DPMS off/on, 3× s2idle and deep, 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 through dcp_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 cite dcp_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 enable at this point, so it adds no MMIO in a state that didn't have any.
    • display_saved is set once per power-down and cleared only by the on path, after a successful dark exit.
    • If dark_enter() times out, the call returns before saving. If the flush fails after the save, host_off stays false and the next on still restores and clears it.
  • dcp_s2r_warm_restart():
    • On T8103, display_dark is still set when the later apple_dart_display_streams(disp, ..., true, false) runs. So the on path restores TTBR/TCR if they were lost, and apple_dart_display_dark_exit() then sees display_tlb_stale and invalidates before the streams are enabled again.
    • Before, the early apple_dart_power_dark(false) had already cleared display_dark. That later dark_exit() then returned at once and the post-restore invalidation never ran.
    • If the DCP DART's on fails first, the display DART stays dark, and the existing crash path handles it.
    • Other hosts keep the early dark exit.
  • Commits: all three are signed off by the author, with no attribution. checkpatch --strict gives 0/0/0 on each.

Not blocking

  • History: 41171cb7a931 adds the s2r_ext hunks and defba2698f51 takes 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-off goes to main:
    • main now has #3178's apple_dcp_hw_t8103_dcpext, with both s2r_ext and s2r_disp_dart_with_dcp.
    • main's dcp_s2r_ext_start() and dcp_s2r_warm_restart() both still call apple_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

  1. CI: only pr-text ran (pass), and readiness was cancelled. No build or KUnit job runs on this stacked base, so a build of this head needs to be green.
  2. PR body:
    • Risk still names T8142 and the s2r_ext external DCPs.
    • Details item 2 still describes the dropped hunks.
    • The Evidence section is from the old 7.3.0-j313ener1 build, with the external-DCP PMGR values.
    • The Not yet hotplug line no longer applies to this PR.
    • All of these should be narrowed to T8103's internal DCP and the new row.
  3. 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.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 27, 2026 04:17

Superseded by the review at defba26

@github-actions github-actions Bot removed the changes-requested A reviewer requested changes (bot) label Nov 27, 2026
…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 erikwb changed the title iommu/apple-dart, drm/apple: fix T8020 display DART save/wake and s2r_ext idle state iommu/apple-dart, drm/apple: fix T8020 display DART save/wake Nov 27, 2026
@malik-na

malik-na commented Dec 2, 2026

Copy link
Copy Markdown
Member

@erikwb thanks, that answers my boot-chain questions.

Next run on my J313, one boot of your kernel 429e7e15f122 (built with the Air's config):

  • Before sleeping: check that apple_sep and apple_aop are both bound, that /sys/class/rtc/rtc1/name is apple-pmu-rtc, and that pm_test=core logs T8103: AOP bound: DRAM stays up for it. If either driver is unbound I'll stop there and fix that first, since it explains the stall on its own.
  • Record /proc/device-tree/chosen/asahi,m1n1-stage1-version and the run base from aura_stage2.log, and compare them with your Stage 1 1.0.0b13-g5dcf62d0.
  • Then run one rtcwake -d /dev/rtc1 -m mem -s 90 and time the reset from the lab side. ~86 s means it never entered deep sleep. ~176 s means it woke and missed cpu_reset.

I'll keep the debug Stage 2 (f5ddfff2 with Probe B) for this run, so a wake that reaches cpu_reset shows up. I'll also check where Probe B sits relative to debug_putc('O'). If that's in doubt, I'll repeat with a plain RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1 Stage 2 from aura main d8eb8ad4.

I'll post the result here.

@malik-na

malik-na commented Dec 2, 2026

Copy link
Copy Markdown
Member

@erikwb one question before I run it. In #3850 you say a real S2R wake on J313 currently cold-resets on Aura Stage 2 1.0.0b18-gd8eb8ad4, and that it reproduces on baseline kernels. Above you said d8eb8ad4 also works for you. Is that cold reset the same as my ~86 s reset? And which Stage 2 do you now consider good for a J313 wake test?

@erikwb

erikwb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@malik-na Good catch — sorry for the contradiction. When I wrote the earlier comment, 1.0.0b18-gd8eb8ad4 had only been boot/display-tested on our J313; I hit the wake reset right afterward while testing #3850 and then confirmed it reproduces identically on a kernel that previously passed J313 S2R wakes here.

  • Not the same as your ~86 s reset: On 1.0.0b18-gd8eb8ad4, rtcwake -d /dev/rtc1 -m mem -s 15 comes back in ~28 s (15 s sleep + ~13 s cold boot) and -s 30 comes back in ~42 s (30 s sleep + ~12 s cold boot). So it enters deep sleep for the full RTC interval, wakes on the alarm, and cold-resets immediately on wake without hitting the 60 s WD1 watchdog.
  • Good Stage 2 for a J313 wake test right now: Skip d8eb8ad4 and stick with 1.0.0b17-gf5ddfff2 (aurora-silicon/aura#529) or 1.0.0b17-gc67db2a6 (aura main 26c1a85b + aurora-silicon/aura#537 f6dcad16, which includes #528's PoC clean) — both passed physical J313 S2R wakes here before the 1.0.0b18 update.

@erikwb

erikwb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@malik-na Correction on Aura Stage 2 1.0.0b18-gd8eb8ad4: we finished bisecting the J313 wake cold-reset and 1.0.0b18-gd8eb8ad4 is innocent.

The regression came from the bundled t8103-j313.dtb after #3551 (2db0e1dc81e8) enabled &ave_dma (dma@267020000): because apple-ave-dma only matched apple,t6000-ave-dma, the T8103 node stayed unbound, held PMGR sync_state() pending, and pinned ps_venc_sys on across sleep. Both #3871 (e5dd49e7ab07, binding apple,ave-dma with runtime PM) and #3870 (3919644ea658, lowering stray peripheral domains at T8103 sleep entry) now pass 2/2 physical J313 S2R wake cycles (boot object resumes 0 -> 1 -> 2) on 1.0.0b18-gd8eb8ad4 with the unmodified DTB. So 1.0.0b18-gd8eb8ad4 is fine to use for J313 S2R testing once #3870 or #3871 is included.

@malik-na

malik-na commented Dec 2, 2026

Copy link
Copy Markdown
Member

@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

  • apple_sep was unbound: the driver has no module alias on purpose, and Omarchy only loads it from omarchy-mac-touchid-load.service, which is skipped unless Touch ID is turned on (/etc/omarchy-mac/touchid-on). With it unbound, PMGR logs sync_state() pending due to 242400000.sep on power-controller@130 and @c00.
  • With apple_sep unbound, an rtcwake -d /dev/rtc1 -m mem -s 30 never came back and reset (same as my earlier report), and an earlier run reset during pm_test=core. soc: apple: sleep: t8103: refuse deep sleep when SEP or AOP is unbound #3850's refusal would have turned this into a clean -EBUSY.

With apple_sep bound (modprobe apple-sep)

  • rtcwake -m mem -s 90, then 2× -s 30, same boot: boot object resumes 0 -> 1 -> 2 -> 3, suspend_stats success 0→3, fail 0, wake IRQ 63. Walls 92 s / 35 s / 31 s.
  • eDP-1 connected/enabled, DPMS On after each; Wi-Fi up (ping OK); 0 DART faults, 0 warm restart failed, no Oops/WARNING.
  • Noise on each wake: PS fpwm1: Failed to reach power state 0xf (now 0xb4f); brcmfmac and hci_bcm4377 D3hot to D0, device inaccessible, then the PCIe link set up again (PWREN and PERST# cycled); Bluetooth 0x0c01 tx timeout, driver rebound once.
  • One earlier -s 30 with apple_sep loaded ~1 min before the sleep still reset (new kernel ~56 s after sleep entry). I couldn't tell which side of the alarm it was on and haven't reproduced it since.

User wake still resets (not this PR's code, as far as I can tell)

  • Two suspends from the Omarchy menu (systemctl suspend), woken by hand in under 30 s, both reset: the journal ends at Performing sleep operation 'suspend' and the next boot starts 47 s / 51 s after sleep entry. No resume lines.
  • Same boot, RTC wake: systemctl suspend with rtcwake -m no -s 60 resumes (63 s), and rtcwake -m mem -s 10 resumes (12 s). So it isn't the systemd/Omarchy suspend path or a short sleep. The difference is the wake source: every good wake here is IRQ 63 / NUB.SPMI0Sw3IRQ; the failed ones were key/lid/power-button wakes, which would come in through the SMC sources t8103_wake_platform leaves unmasked. Have you had a power-button or lid wake resume on J313?
  • Confirmed with a controlled run: rtcwake -d /dev/rtc1 -m mem -s 120, power button pressed ~15 s in. The Air reset: the new kernel started 48 s after sleep entry, well before the 120 s alarm and the 60 s watchdog. Untouched, RTC-woken sleeps from 10 s to 90 s all resume.

So for this PR: J313 internal-panel deep S2R at 1ed13bfc645c + current main, 6/6 RTC-woken resumes across three boots (including one via systemctl suspend), no DART/DCP errors. No external display or idle-off row from me yet.

…t-idle-dart

Signed-off-by: Erik Bourget <erik@ebourget.net>
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Hardware smoke row (second-family unaffected T8132) — J773g (Mac16,10, Apple M4 Mac mini, T8132, OS FW 27.2 / mBoot-20457.41.3) at exact PR head 1ed13bfc645c merged --no-ff into main 5b22d796fa75 (merge-tree SHA d0fc51f2b6b56c43e244d8ce7e47d52fdff8b61a, kernel 7.3.0-j773g-pr3334-1ed13bfc, boot_id=77bb64b7-4e3a-4efa-a05b-d2a07b102ca7): PASS

  • Boot & trial safety: booted cleanly via aura Stage 1 (1.0.0b13-g5dcf62d0, WDT: boot watchdog armed (178 s), 0 "WDT: could not arm the trial watchdog" lines, panic=10, per-kernel initramfs).
  • Display DART & dual-DCP bind: all T8132 display DARTs initialized cleanly (30a300000.iommu inherited untouched; 286340000, 286300000, 48a340000, 48a300000 locked roots kept/mirror); both DCPs bound (286e00000.dcp + 48ae00000.dcp, firmware 27, DPTX0/1 caps) with card1-DP-3 active at 3840x2160@60 (crtc-0), 0 DCP/DART errors.
  • 2x real DRM DPMS off/on (via libdrm.so.2 drmSetMaster + drmModeConnectorSetProperty on connector 82 DP-3, dpms_prop=2): cycle 1 Off -> On (rc=0/0), cycle 2 Off -> On (rc=0/0).
  • Headless Vulkan render: deqp-vk passed 8/8 (100.0%), 0 failures/warnings.
  • DP audio enumeration: appledrm child platform device audio.4.auto registered cleanly (ALSA /proc/asound/cards reports no soundcards on J773g stock DT; apple-admac 393300000/393800000 probed cleanly, 0 audio errors).
  • 1x s2idle cycle (rtcwake -d /dev/rtc1 -m freeze -s 8): suspend_stats/success 0 -> 1; post-wake card1-DP-3 connected/enabled/On at 3840x2160, plasmalogin=active, failed_units=0.
  • Kernel health: 0 WARNING: / BUG: / Oops / SError / Call trace: / DCP or DART errors in dmesg.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Local CI for exact head 1ed13bfc645c on the PR’s current base, #3410 at ed71e9b038f2. GitHub’s merge ref is d48aee29d2a1 (tree 83743facbdd1).

  • ./linux-build/build kernel --profile asahi <tree> -- -j10 modules_prepare and the full Arm64 LLVM Apple build target list passed. The build compiled Apple DART and linked appledrm.o.
  • python3 -I tools/asahi/run-host-tests.py --jobs 8 in the Ubuntu 24.04 CI container passed 950/950.
  • scripts/ci/apple-kunit.py plan selected DCP fabric, topology, display and JPEG. kunit.py build --arch=arm64 --make_options LLVM=1 --jobs=10 with those fragments plus 16 KiB Apple DART and I/O page-table tests linked all of them, including dcp_s2r_suite. kunit.py run --arch=um --kunitconfig=drivers/gpu/drm/apple/tests/.kunitconfig passed 117/117 DCP fabric tests.
  • The J773g exact-head row covers the second-family display and DART smoke. The J313 report covers internal-panel resume. The external DART idle-off and physical replug row remains open.

The PR still targets feat/dcp-v27-ext-idle-off. Direct integration into main 515377db2a76 conflicts in dcp.c and backlight-coldboot-tests.py. The landing sequence is #3410 into main, then this PR retargeted to main.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) labels Dec 2, 2026
@erikwb

erikwb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@malik-na Good to confirm the 86 s reset was unbound apple_sep and that 6/6 RTC-woken deep resumes pass on candidate 884342eced0c (1ed13bfc645c + main 3d7cc83dffb1) once apple_sep is loaded (recorded 884342eced0c and both the 6/6 RTC passes and the earlier non-reproduced -s 30 reset with apple_sep loaded in the PR body).

On your wake-source question: no — our J313 deep-sleep runs used rtcwake -d /dev/rtc1 -m mem (IRQ 63 / NUB.SPMI0Sw3IRQ) rather than physical power-button or lid wakes, so we have not yet run a physical-wake comparison on J313 to isolate the hand/power-button wake resets (47–51 s) you observed. We will run an exact-head RTC (rtcwake) + physical wake (power button / lid) comparison against the same J313 main baseline at 7be3a9cd7395.

Forward-merged updated #3410 (9f33c3f95939, carrying per-open managed_buffer_alloc DP audio buffer ownership + c7e82c6303b3 + origin/main fdad0c5804d8 including #3870) into #3334 at 7be3a9cd7395 with Signed-off-by and no conflicts.

Verified offline at 7be3a9cd7395:

  • make O=_build ARCH=arm64 LLVM=1 W=1 KCFLAGS="-Werror" drivers/iommu/apple-dart.o drivers/gpu/drm/apple/{dcp.o,audio.o,av.o} (aurora_defconfig + asahi.config, CONFIG_RUST=n): 0 errors, 0 warnings.
  • ./scripts/checkpatch.pl --strict --git 9f33c3f95939..HEAD: 0 errors (only pre-existing FILE_PATH_CHANGES on dcp_s2r_test.c); git diff --check 9f33c3f95939..HEAD clean.
  • KUnit: APPLE_DART_KUNIT_TEST (CONFIG_ARM64_16K_PAGES=y) 71/71, io-pgtable-dart.kunitconfig 31/31, display.kunitconfig + CONFIG_SOUND=y CONFIG_SND=y 295 passed / 2 skipped (apple-dcp-s2r 3/3, apple-dcp-firmware 7/7, apple-dcpaud-legacy 11/11), display.kunitconfig + CONFIG_SOUND=y CONFIG_SND=y CONFIG_DMADEVICES=y 296 passed / 1 skipped, and tests/.kunitconfig (apple-dcp-fabric) 117/117.
  • Host & selftests: dcpaud 22/22, dart 24/24, dcp-tunnel-prepare-tests.py, dcpext26-startup-tests.py --mutants, backlight-coldboot-tests.py, display-sleep-merge-tests.py (17/17), and apple-dcp --group audio (2/2).

Verified on J313 (T8103, firmware 27.2, docked) at 7be3a9cd7395 (carrying #3410 9f33c3f95939, composite 807c3bbf2263 on origin/main d3de772ac0c1):

  • Unattached 271c00000.dcp idle-off + PMGR + wake: dcpext idle: powered off in 1 ms ~5 s after DP tunnel drop (NHI unbind+rebind), PMGR dispext_fe 0x2300 / dispext_cpu0 0x0f040300 (target 0, actual 0); dcpext idle: woke in 1-2 ms on attach (0x23ff / 0x1404034f within 0.3 s, idle-off again ~17 s later; repeated twice). Unattached USBC DP-audio PCM open returned rc 0 without waking domains.
  • DPMS & deep S2R: >= 7 eDP-1 DPMS off/on cycles across 3 boots and 3/3 docked deep S2R resumes including one entered from idle-off (dispext 0x3ff / 0x1404034f, DP-2 reconnected, 0 new err lines, 0 Oops/WARN/SError).
  • s2idle / remaining Not yet: docked s2idle is cleanly refused -EBUSY at suspend_noirq by 501f00000.nhi (no hang), while software-undocked s2idle (NHI unbound with cable attached) cold-reset ~60 s after entry; physical-unplug undocked s2idle and physical lid/power-button deep S2R wake comparison against main remain in **Not yet:**.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-hw-row No hardware row at the PR head (bot) labels Dec 2, 2026
@DjDeveloperr DjDeveloperr removed the ready-to-merge Meets the merge policy: merge it (bot) label Dec 2, 2026
@github-actions github-actions Bot added the ready-to-merge Meets the merge policy: merge it (bot) label Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

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).

@DjDeveloperr

Copy link
Copy Markdown
Contributor

J773g (T8132 / M4 mini) exact-head 7be3a9cd7395 (7be3a9cd7395af5d80fb44386987e37ac34fc43c): PASS (composite 7.3.0-j773g-comp-3410-3334 on main c2f1583e + #3410 + #3334 + #3717 + #3970 + #3799, merge tree 2d03eb2c7dbd, boot_id=edc6e272-ea87-4529-819a-b7d752dbe77f, panic=10, WDT 178 s).

  • Display DART & External Display: All four T8132 external display DARTs (286300000, 286340000, 48a300000, 48a340000) mirror locked roots cleanly (30a300000 inherited display DART untouched). DP-3 (3840x2160@60) survived DPMS Off/On (dcp_poweroff() done -> dcp_poweron() starting), forced disconnect/reconnect (off -> detect), and s2idle (rtcwake -d /dev/rtc1 -m freeze -s 5) with plasmalogin active. (t8132-j773g.dtb omits apple,display-power so dispext firmware stays running.)
  • Audio: t8132-j773g.dtb has no /sound node (--- no soundcards ---), so HDMI/DP ALSA playback was skipped.
  • Health: 0 DART faults/errors, 0 WARN/BUG/Oops/SError, 0 failed systemd units.

Base automatically changed from feat/dcp-v27-ext-idle-off to main December 2, 2026 19:49
@DjDeveloperr
DjDeveloperr dismissed their stale review December 2, 2026 19:49

The base branch was changed.

@github-actions github-actions Bot added needs-review No approving review from Core or Omarchy Mac yet (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) labels Dec 2, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@DjDeveloperr
DjDeveloperr merged commit 33dbc9a into main Dec 2, 2026
5 checks passed
@DjDeveloperr
DjDeveloperr deleted the fix/t8103-dcpext-idle-dart branch December 2, 2026 19:57
@joshuaswarren

Copy link
Copy Markdown
Contributor

M1 T8103/J293 peer row (w82) at head 7be3a9cd7395 (boot f4151024, kernel 7.3.0-lab-dart3334, aurora_defconfig):

  • Boot: PASS — root= btrfs, 161 modules loaded, eDP (card2-eDP-1) connected, display-subsystem in iommu group 11, dmesg shows only pre-existing benign noise (udev scheduler races, pcie of_irq_parse rc=-22 seen on lab kernels).
  • Deep (mem → s2idle) entry: PASS — PM: suspend entry (s2idle) 14:41:54, clean entry, ssh dropped.
  • Physical wake (macsmc-input key taps): FAIL — hard reset. Key taps did not wake it (confirmed physically); machine cold-booted to the default entry at 14:54:54 (new boot_id f1db4b2a). Pre-reset journal ends at suspend entry; no panic output survived.
  • Undocked s2idle (USB-C unplugged): NOT RUN — coordinator hold (GPU queue draining on this box).

Analysis: this head is stacked on #3410 and does not contain #3970's PCIe ASPM L1 suppression (verified git merge-base --is-ancestor 9b4f6882dd11 7be3a9cd7395 → false). The signature matches the known T8103 s2idle→reset defect that #3970 fixed — same box did a 13m05s s2idle + clean 0.495s input wake on the #3970 kernel earlier today. Not a regression of the DART change per se, but the wake row cannot pass on this base until it's rebased over #3970 (or the reset proves orthogonal).

Build note (shared with #3410): head does not compile under aurora_defconfig (SND=m) — drivers/gpu/drm/apple/audio-legacy-test.c:384 calls unexported snd_pcm_lib_preallocate_free; tested kernel carried a 4-line swap to snd_pcm_lib_preallocate_free_for_all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants