Repository navigation
Conversation
Drop the untested flag from t8112_sleep_soc so deep sleep is offered and selected as the default mem_sleep state on T8112 without apple_sleep.deep=1 or apple_sleep.untested_commit=1. With WAKE_SLP_DDR driven by live adopted RTKit DRAM buffers, both desktop (J473) and laptop (J413, firmware 27.2 live MTP) T8112 boards commit and resume reliably across repeated deep sleeps. Update apple_sleep_test_known_profiles to expect soc->untested == false for apple,t8112-sleep. Signed-off-by: Satya Benson <satya@benson.earth>
5a03cf5 to
8c8cce3
Compare
|
Rebased onto current Verified at
Keeping as draft until an exact-head default-command-line T8112 verification row runs. |
|
Exact-head default-command-line J413 (M2 Air, macOS 27.2 stub) verification row at
|
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: MERGE at 8c8cce3
Checked:
- Diff is one line in the profile,
.untested = truedropped fromt8112_sleep_soc, plus its KUnit expectation. Insleep.cthe untested flag only gates the dry run and the commit (s->soc->untested && !sleep_untested_commit), so with it cleared T8112 takes the same commit path that #3774's 50/50 J413 row exercised withuntested_commit=Y. Nothing else changes. apple_sleep_test_known_profiles: the newEXPECT_FALSEsits in a branch forapple,t8112-sleeponly. T8122 keeps its ownuntested == 1expectation and T8142 its0, so the test can't pass by accident for another SoC.- Exact-head J413 default-cmdline row:
s2idle [deep]out of the box, 10/10 RTC deep sleeps with keyboard, GPU and Wi-Fi back. That's the merge gate's one row on one Mac.
Follow-ups (not blocking):
- This makes deep sleep the default on every T8112 Mac, including the J473 desktop, which sleeps on its own and has had s2idle/display regressions before (#2953, #2853). A J473 default-cmdline row with the monitor attached is the most valuable next check.
mem_sleep_default=s2idleremains the per-Mac escape hatch. - Lid / AC-unplug wake and external display across deep sleep, as the PR lists.
|
Row: 8c8cce3 + J473 (Mac mini M2, 27.2 stub, USB-C + HDMI monitors) + default is deep as claimed; every deep suspend aborts on the existing linux#3790.
So on J473 the new default lands on #3790. This PR doesn't cause it, but with it, J473 suspend now fails outright where it used to fall back to s2idle. Your call whether #3786 waits for #3790 or #3790 follows it. |
|
@RyanTheTide Thanks for the exact-head J473 row — that is a clear regression in default suspend on J473 (and likely any T8112 with a USB-C display attached, going from working s2idle to a latched |
|
J413 (MacBook Air 13" M2, T8112, 27.2 stub) steady-state deep-sleep power measurement on
Note: |
|
Row: 8c8cce3 on main
USB, network, NVMe and GPU (deqp triangle) were fine after it; no DCP crash lines.
On the J473 today, deep by default turns a working s2idle into an abort and then a reset, so this still waits on the J473 DCP deep-sleep fix (#3790 / #3822). Next I run #3822 |
|
Following up on @RyanTheTide's J473 bisection on #3822 ( Auditing
Proposed next step:
I will put together a patch for the missing |
|
Quick follow-up on the missing T8112 domain patch idea: tested a prototype adding Looking at active genpd domains on J413, the only two domains from that patch that were powered on at idle were |
What: Drop the
untestedflag fromt8112_sleep_socso deep sleep is offered and selected as the defaultmem_sleepstate (s2idle [deep]) on T8112 on the default kernel command line, withoutapple_sleep.deep=1orapple_sleep.untested_commit=1.soc: apple: sleep: T8112: enable deep sleep by default— removes.untested = truefromt8112_sleep_socindrivers/soc/apple/sleep-t8112.hand updatesapple_sleep_test_known_profilesindrivers/soc/apple/sleep-test.c.Rebased cleanly onto
main(645b086d9989) after #3774 (WAKE_SLP_DDRvoter for adopted RTKit DRAM buffers on T8112) merged.Tested:
8c8cce32b0e0(--volatile, live MTP with 4 retained DRAM buffers, normal wake mask, noapple_sleep.deep=1, noapple_sleep.untested_commit=1):/sys/power/mem_sleep=s2idle [deep]out of the box (untested_commit=N,deep=N), 10/10 consecutive 10 s RTC deep sleeps PASS (wall_s=12..14 s,boot object resumes 0 -> 10,NUB.SPMI0.SW310/10, keyboard/trackpadkb=210/10, Borealis GPUPRE/POST10RENDER_25_PASS, Wi-Fi 10/10,sddmactive, 0 failed units).8c8cce32b0e0: combined sleep + rtkit-helper config 56 passed, 1 skipped (apple-sleep-soc-data16/16 including updatedapple_sleep_test_known_profiles,apple-rtkit-helper37/37,apple_mbox_g17_stall3/3).checkpatch.pl --strictclean (0 errors, 0 warnings).f27ce29f2ecad) withapple_sleep.deep=1+untested_commit=Yon J413: 50/50 consecutive deep sleeps PASS (10 s / 15 s / 20 s RTC wakes,boot object resumes-> 50,NUB.SPMI0.SW3,kb=250/50, Borealis GPU 6/6RENDER_25_PASS, Wi-Fi 50/50, 0 failed units, 0 EDAC/MTP errors).Risk: two-way · T8112 (a revert restores the
untestedopt-ins;mem_sleep_default=s2idlecontinues to select s2idle).Not yet: J473 desktop row on the default command line at
8c8cce32b0e0; lid and AC-unplug wake rows (require physical hands); external display across deep sleep.