Repository navigation
drm/asahi: hold GPU power domain across suspend-to-idle - #2715
Conversation
|
The crash diagnosis is convincing, and keeping the GFX domain up for s2idle while the firmware runs is the right goal. One problem with the pmgr-pwrstate half:
Could you show which domains change? A Smaller:
Assisted-by: LLM (Claude:Opus 5.5) |
c228da2 to
723bcb7
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Dropped the
Moved back to Draft until the reworked consumer-side hold is re-verified live on J313 (and fleet Macs). |
|
Re-reviewed at 723bcb7. The rework answers the earlier point: no PMGR domain changes any more, the hold is on the GPU device's own genpd and only for the noirq window of a sleep that does not go through firmware. Checked against the genpd core:
Small:
Rows owed for the draft: short Assisted-by: LLM (Claude:Opus 5.5) |
723bcb7 to
4c635ff
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Addressed all three follow-up items in
Verified |
|
Re-checked at 4c635ff. The probe-time devres hold is right: one allocation per binding (the g15/g16 drivers call One correction to my own earlier note, sorry for the round trip: on Otherwise ready for the rows. Assisted-by: LLM (Claude:Opus 5.5) |
|
Merge-train adversarial review (MERGETRAIN-LINUX2) at 4c635ff: BLOCKERS. Not merging until the blockers below are fixed or answered; the details give file:line and a failure case. Full review#2715 drm/asahi: hold GPU power domain across suspend-to-idle @4c635ff7VERDICT: BLOCKERS Checked against the genpd core in this tree. Blockers:
Nits:
Missing rows: every Mac in scope on this head. That's M1 (J313/J413-class t8103), M1 Pro/Max (t600x), M2 (t8112, |
4c635ff to
3f6071e
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Fixed the fail-unsafe
Keeping the PR in Draft until the live |
|
Re-checked at 3f6071e (same base, only
The hardware rows on this head are still open: Assisted-by: LLM (Claude:Opus 5.5) |
During suspend-to-idle (!pm_suspend_via_firmware()), the GPU driver leaves its firmware running, but genpd_suspend_noirq() still powered off attached GPU power domains that are neither always-on nor sleep-retained (such as ps_gfx on M1/M2/M3 and M5 J813). Cutting power under the live GFX ASC crashed the firmware immediately on resume (PC=0, FAR=0). Instead of changing PMGR domain flags globally, hold the GPU device's own attached genpd from the drm/asahi driver side during the noirq sleep window using a temporary GENPD_NOTIFY_PRE_OFF veto notifier, matching pcie-apple. Allocate per-device hold state via devres at probe time across AsahiPlatformDriver, g15::Driver, and g16::Driver (so suspend_noirq never allocates and needs no global list or lock), and wire suspend_noirq and resume_noirq into SLEEP_OPS, SLEEP_REFUSE_OPS (g15::Driver, whose prepare only refuses firmware-driven sleep and allows s2idle), and g16::sleep::SLEEP_OPS. If dev_pm_genpd_add_notifier() reports -EEXIST, if the probe-time devres hold is unexpectedly absent, or if a future multi-domain GPU DT node leaves dev->pm_domain unset with more than one power-domains entry, warn and refuse suspend with -EBUSY rather than letting GPU power domains power off under live firmware. Firmware-driven deep sleep (pm_suspend_via_firmware() == true) and all other power domains are unaffected. Signed-off-by: Erik Bourget <[email protected]>
3f6071e to
e29c9a8
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Rebased onto
Keeping Draft until the live |
|
Still needed: integration/aurora at daa9e2d has no hold on the GPU's power domain for a suspend-to-idle, and e29c9a8 merges onto that tip without conflicts. The review points are all answered at this head. @erikwb what is left is the hardware rows on this head from the description: |
RyanTheTide
left a comment
There was a problem hiding this comment.
Independent source review at e29c9a8d76bd. The notifier is registered before genpd's final power-off and the core propagates its PRE_OFF veto. Please test the T8112 parent chain with both ps_gfx and the PMP-report child arrangement, verify the domain stays on through suspend and the veto is removed on unwind, and compare against #2614. Prefer one retention owner where the same shared callback covers both.
There was a problem hiding this comment.
Formal pre-PR checklist (§1–§6) review at verified live head e29c9a8d76bd30582943b39e45874a4a157ee2af (MERGEABLE CLEAN; live CI: host-tests pass).
Code Audit (0 code/policy blockers)
- Verified
sleep_pd_init()placement inAsahiPlatformDriver::probe,AsahiPlatformDriver::probe_g15, andAsahiPlatformDriver::probe_g16(g15::Driverandg16::Driverinvokeprobe_g15/probe_g16directly, so devres is registered exactly once per binding and automatically cleaned up on probe failure or unbind). - Verified
SLEEP_OPS,SLEEP_REFUSE_OPS(g15::Driver), andg16::sleep::SLEEP_OPSall wiresuspend_noirq/resume_noirq, whileg18(t8152) attaches no genpd. drivers/gpu/drm/asahi/sleep_pd.cis clean and fail-safe: deep sleep (pm_suspend_via_firmware()) is untouched, multi-domain GPU DT nodes (!dev->pm_domainwithpower-domains > 1), missing devres holds, and-EEXISTfromdev_pm_genpd_add_notifier()all warn and refuses2idlewith-EBUSYrather than lettingps_gfxpower off under live firmware; notifier callback is IRQ-safe and unwind removes the notifier cleanly inresume_noirq.
Checklist Summary (§1–§6)
- §1 No model gating: Pass — uses attached genpd state and DT
power-domainsuniformly across all affected drivers with zero chip, SoC, board, or firmware gates. - §2 Production-ready, no hacks: Pass — default kernel command line, no new parameters, no global PMGR flag side effects.
- §3 Safety: Pass — consumer-side hold scoped to the GPU's attached genpd during
s2idlenoirq window only; fails safe with-EBUSY. - §4 Clean-room & attribution: Pass — commit
e29c9a8d76bdcarries human author/committer (Erik Bourget <[email protected]>) and humanSigned-off-by:only; PR body includesAssisted-by:. - §6 Naming: Pass.
- §5 Evidence: Blocker (see below).
Concrete Actionable Blockers (§5)
- Zero live hardware or regression runs on
e29c9a8d76bd(or anysleep_pd.cnotifier revision):- The only hardware result in the PR body (
6/6on J313) is from the superseded PMGR-flag revision, not thissleep_pd.cimplementation. - Note that the PR body and latest comment state the PR is kept Draft until hardware re-verification completes, yet the PR is currently marked ready for review (
isDraft: false). Please either return the PR to Draft until testing completes or post the full §5 hardware rows one29c9a8d76bd(default command line):- Live
rtcwake -m freezewith GPU work before and after, confirmingps_gfxstays powered inpm_genpd_summaryduring sleep and the veto notifier is removed cleanly on wake/unwind, on M1/M2 (specifically including T8112 with thepmp_report_gfx->ps_gfxparent chain), M3 (t8122and/ort6030/t6031g15 path), and M5 (t8142). - A no-change
s2idle+ deep-sleep row on an always-on/sleep-retainedps_gfxMac confirming the hold is not taken in firmware-driven sleep. - An
s2idlepower-delta measurement on at least one affected M1/M2 Mac. - Regression run: 0 SELinux denials, 0 failed units, 0 new kernel errors.
- Live
- The only hardware result in the PR body (
- Retention-owner coordination with
#2614:#2614(t8112-j413-fw27: marks&ps_gfxapple,sleep-retained) addresses the sames2idlefailure on J413 from DT; confirm whether#2715supersedes#2614so J413 has a single retention owner.
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Updated the PR description ( Because userspace is frozen during On the T8112 parent chain and abort unwind (verified in source; live T8112 hardware rows remain in Still to run):
Comparing
|
Use GPL-2.0-only for the new sleep_pd.c and sleep_pd.h files to match the repository's licensing policy for new Aurora code. Signed-off-by: Erik Bourget <[email protected]>
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Resolved the merge conflicts with
|
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Completed the J713 (M4 Air,
Updated the PR body's |
|
69ee6f6 J316s (M1 Pro, T6000, G13S C0) PASS: guarded one-shot combined batch (427b2c2dc67c over main 8f99a85, 0 merge-tree diffs on 5 changed files, default cmdline, boot 01758010-6fb9-4be3-b307-d1ab867a1a28): 3/3 real rtcwake -d rtc1 -m freeze -s 4 cycles; kprobes recorded 18/18 hits across all 3 cycles (asahi_sleep_pd_suspend_noirq -> 0x0, asahi_sleep_pd_notify action=0x0 GENPD_NOTIFY_PRE_OFF -> 0x8011 -EBUSY veto keeping ps_gfx on, asahi_sleep_pd_resume_noirq -> 0x0 cleanly removing notifier with 0 -EEXIST on cycles 2-3); Borealis VK api.smoke 8/8 pre & 8/8 post, Asahi GL gl-smoke 32/32 pre & post, 0 GPU faults, 0 DART faults, 0 failed units, Enforcing, 0 new AVC; stock 7.3.0-aurora-fleet89 restored. |
The branch merges cleanly and the J713 and J316s results at 69ee6f6 address this hold.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Approved at 69ee6f661a63. J316s exercised the real power-off veto in three suspend-to-idle cycles. All three resumed with the notifier removed and GPU work passing. J713 confirmed that firmware-driven deep sleep skips the notifier. I checked the error path and the shared resume_noirq cleanup. Erik will follow up on J313 with an aborted suspend and an in-sleep power measurement. J316s test results
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Updated the PR body (
|
|
In-sleep power data point for the "Not yet: in-sleep power measurement" item, from an M1 Pro (t6000) laptop. Machine: MacBook Pro 14" M1 Pro 2021 (
Method: on battery, display/lid path via One note for the requested Happy to re-run the same measurement on a kernel that includes this change for a before/after comparison. |
|
Follow-up on the J314s (M1 Pro, t6000) s2idle numbers above: the radios are not where the power goes. Same machine and kernel (
No improvement within measurement noise (energy from |
What: Hold the GPU's attached power domain (
ps_gfx) across suspend-to-idle (!pm_suspend_via_firmware()) fromdrm/asahivia a temporaryGENPD_NOTIFY_PRE_OFFveto notifier during thenoirqsleep window, preventinggenpd_suspend_noirq()from powering down the GPU under live GFX firmware and crashing on resume (PC = 0x0,FAR = 0x0,ESR = 0x86000004).Tested:
T6000,G13S C0) at69ee6f661a63(guarded one-shot combined batch overmain8f99a858b456, 0 merge-tree diffs on the 5 changed files, default cmdline, run by@RyanTheTide):3/3realrtcwake -d rtc1 -m freeze -s 4cycles; kprobes18/18(asahi_sleep_pd_suspend_noirq->0,asahi_sleep_pd_notifyGENPD_NOTIFY_PRE_OFF->0x8011-EBUSYveto keepingps_gfxon,asahi_sleep_pd_resume_noirq->0with0-EEXISTon cycles 2–3); Borealisapi.smoke8/8& Asahigl-smoke32/32pre/post,0GPU/DART faults,0failed units, SELinux Enforcing,0new AVC.T8132,g16,apple,sleep-retained) at69ee6f661a63(one-shot Linux 7.3.0 trial, default cmdline):0failed units,0AppArmor denials/AVC (SELinux not built),0new kernel errors;s2idle(rtcwake -d rtc1 -m freeze -s 30) kprobes1/1add/remove, clean resume (AC readings4.725 Wbefore /4.701 W20 s after vs4.742 W/4.726 Wno-hold control — AC before/after readings do not establish in-sleep power delta); firmware-drivendeepsleep (rtcwake -d rtc1 -m mem -s 30)0/0notifier calls (GPU firmware back in 729 us);dEQP-VK.api.smoke.*6/6pass after both sleeps,0GPU errors.T8103,G13G B1):69ee6f661a63(one-shot Linux 7.3.0 trial, default cmdline): boots cleanly,2/2s2idlecycles clean,0AppArmor denials/AVC/Oops; GPU does not bind on firmware 27.2 (Unsupported GPU/firmware combination (G13, G, [27, 2, 0])), so the legacy-EBUSYdeep-sleep refusal (driver.rs:287) could not be exercised live on this 27.2 machine.6c7d489e0fbc..69ee6f661a63ondbb7b44b3d99+3577ce0e4885, default cmdline):10s2idlecycles (pm_test=platform, 3 × 15 s, 6 × 1 s) +1deep-sleep cycle (rtcwake -d rtc1 -m mem -s 30, GPU firmware back in5954 us) clean; PR notifier add/remove1/1pers2idlecycle (GENPD_NOTIFY_PRE_OFFreturning0x8011-EBUSY) and0/0in deep sleep; GPU compute checksum +dEQP-VK.api.smoke.*6/6pass after every wake; idle AC power 20 s after resume unchanged (3.69-3.77 W/2.53-2.64 Wvs3.89 / 3.85 / 2.69 Wcontrol). Caveats: J313's DT already marksgfxapple,sleep-retained(control also keepsgfxon and logs 1 rejected power-off/cycle), short 1 s RTC alarms did not abortsuspend_noirq(onlypm_test=platformexercisednoirqenter/resume), andaurora-sep.servicehas a pre-existing failure on every boot of this machine.T6050,G17C B1, fw 27.2) at69ee6f661a63(one-shot Linux 7.3.0 trial, Stage 21.0.0b17-gae94218e, default cmdline):s2idledEQP-VK.api.smoke.*6/6+gpubench-vkcompute.light2/2ok before/after, notifier add/remove kprobes1/1on head vs0/0on pre-#2715mainbaseline15b1e2e0aaca,0kernelerr+lines during/afters2idle(1pre-existing failed unitaurora-peripherals.service). Caveats: 15 srtc0rtcwakealarm failed to wake on both#2715head and pre-#2715mainbaseline15b1e2e0aaca(pre-existing RTC wake regression onmain, woken by key press); deep-sleeprtc0wake also failed on head so J716c deep-sleep notifier count and in-sleep power delta were not measured.69ee6f661a63:ARCH=arm64 LLVM=1 W=1build ofsleep_pd.oandaurora.o(0errors),checkpatch.pl(0errors), CIhost-tests/pr-text/readinessPASS.Risk: two-way door · M1 (
t8103), M1 Pro/Max/Ultra (t600x), M2 (t8112), M2 Pro/Max/Ultra (t602x), M3 (t8122,t6030/t6031), M5 (t8142); no-op during firmware-driven deep sleep, and unchanged power behavior on Macs whereps_gfxis already always-on or sleep-retained (t8132,t604x,t6050,t8140)Not yet:
suspend_noirqunwind on hardware (short 1 s RTC alarms on J313 slept normally with 0 aborts; onlypm_test=platformnoirqenter/resume was exercised).T6050) firmware-driven deep-sleep0/0notifier count (blocked by pre-existingrtc0wake failure onmain15b1e2e0aaca/69ee6f661a63).-EBUSYdeep-sleep refusal (driver.rs:287) on at8103stack where the GPU binds withoutapple,sleep-retained.t600x), M2 (t8112directps_gfx,APPLE_USE_PMPpmp_report_gfx->ps_gfx, andt8112-j413-fw27in coordination with#2614), M2 Pro/Max/Ultra (t602x), M3 (t8122,t6030/t6031), and M5 (t8142).Details
Problem
During suspend-to-idle (
s2idle),pm_suspend_via_firmware()is false sodrm/asahileaves the GPU firmware running. However,genpd_suspend_noirq()still powered off the GPU's attached power domain (ps_gfxon Macs where it is neitherapple,always-onnorapple,sleep-retained), cutting power to the running GFX ASC and crashing the GPU firmware immediately on resume (PC = 0x0,FAR = 0x0,ESR = 0x86000004, followed byEIOlost-device errors for desktop clients).Design
drivers/gpu/drm/asahi/sleep_pd.{c,h}withasahi_sleep_pd_init(),asahi_sleep_pd_suspend_noirq(), andasahi_sleep_pd_resume_noirq().struct asahi_sleep_pdstate viadevres_alloc()/devres_add()at probe time acrossAsahiPlatformDriver::probe(covering legacy,probe_g14_v27_2,probe_g17,probe_g17_m5,probe_t8122, andprobe_m5),probe_g15, andprobe_g16(before firmware start, so probe failures clean up automatically and retained-firmware bound states on G15/G16 keep the hold), and look it up viadevres_find()insuspend_noirq/resume_noirqwith no allocation insuspend_noirqand no global list or lock.suspend_noirqandresume_noirqintoSLEEP_OPS(AsahiPlatformDriver),SLEEP_REFUSE_OPS(g15::Driver), andg16::sleep::SLEEP_OPS.s2idle(!pm_suspend_via_firmware()), when the GPU's attached genpd is on,suspend_noirqregisters a temporaryGENPD_NOTIFY_PRE_OFFveto notifier (returningnotifier_from_errno(-EBUSY)) on the GPU device's own genpd andresume_noirqremoves it, matchingpcie-apple's consumer-side hold pattern.dev_pm_genpd_add_notifier()returns-EEXIST, if the probe-allocated devres hold is unexpectedly missing, or if a future multi-domain GPU DT node leavesdev->pm_domainunset withof_count_phandle_with_args(..., "power-domains", "#power-domain-cells") > 1, log a warning and return-EBUSYto refuses2idlerather than letting GPU power domains power off under live firmware.g18(t8152,drivers/gpu/drm/asahi/g18/probe.rs) has nopm_opsand attaches no genpd (t8152-j873-gpu.dtsiuses PMGR2 PSD services rather than an attached genpd), sogenpd_suspend_noirq()cannot power off a GPU domain there.drivers/pmdomain/apple/pmgr-pwrstate.cis untouched, so no other PMGR power domain changes behavior ins2idleor deep sleep. Firmware-driven deep sleep (pm_suspend_via_firmware() == true) is a no-op.#2614:#2715coverst8112-j413-fw27on thes2idlepath from the GPU driver side while leaving firmware-driven deep sleep untouched.Evidence
Credits
Tested-by: RyanTheTide (J316s M1 Pro
T6000at69ee6f661a63)Build, style, and CI (
69ee6f661a63)82f12be07bc5,main6c7d489e0fbcinto the PR branch): resolveddrivers/gpu/drm/asahi/Makefile(sleep_pd.o+rtkit_dump.o) anddrivers/gpu/drm/asahi/driver.rs(sleep_pd_init(pdev.as_ref())?kept beforeProbeConfigmatch soLegacyWithG14Handoff/probe_g14_v27_2also receives probe-time devres allocation).69ee6f661a63): updateddrivers/gpu/drm/asahi/sleep_pd.canddrivers/gpu/drm/asahi/sleep_pd.hSPDX headers toGPL-2.0-only.69ee6f661a63):make O=_build ARCH=arm64 LLVM=1 W=1 drivers/gpu/drm/asahi/sleep_pd.o drivers/gpu/drm/asahi/aurora.o(CONFIG_DRM_ASAHI=m,G15=y,G16=y,G14_V27_2=y,M3_T8122=y,M5=y,G18=y):0errors,0warnings insleep_pd.c,driver.rs, andg16/sleep.rs;llvm-nmconfirmedasahi_sleep_pd_init,asahi_sleep_pd_suspend_noirq,asahi_sleep_pd_resume_noirq,asahi_sleep_pd_notify, andasahi_sleep_pd_releaselinked inaurora.o.69ee6f661a63):./scripts/checkpatch.pl --git origin/main..HEAD0errors (1standardMAINTAINERSwarning one29c9a8d76bdfor new files).69ee6f661a63):Host tests/host-tests,pr-text/pr-text, andpr-readiness/readinessPASS.J316s (M1 Pro,
T6000,G13S C0) at69ee6f661a63(by@RyanTheTide)427b2c2dc67covermain8f99a858b456,0merge-tree diffs on the 5 changed files, default cmdline):3/3realrtcwake -d rtc1 -m freeze -s 4cycles.18/18hits across all 3 cycles (asahi_sleep_pd_suspend_noirq->0x0,asahi_sleep_pd_notifyaction=0x0GENPD_NOTIFY_PRE_OFF->0x8011-EBUSYveto keepingps_gfxon,asahi_sleep_pd_resume_noirq->0x0cleanly removing notifier with0-EEXISTon cycles 2–3).dEQP-VK.api.smoke.*8/8pre &8/8post, Asahi GLgl-smoke32/32pre & post,0GPU faults,0DART faults,0failed units, SELinux Enforcing,0new AVC.J713 (M4 Air,
T8132,g16,apple,sleep-retained) at exact head69ee6f661a63asahi_sleep_pdsymbols present in/proc/kallsyms:0failed units (systemctl --failed); SELinux not built (AppArmor active,0DENIED/AVC kernel audit lines);0new kernel errors or warnings vs prior boot (macaudio,apple-pmc,apple-cpufreqbound).s2idle(rtcwake -d rtc1 -m freeze -s 30, kprobes ondev_pm_genpd_add_notifieranddev_pm_genpd_remove_notifier, AC power / battery full):69ee6f661a63): rc0,31.14 selapsed,suspend_stats1/0,1/1notifier add/remove (stackpm_suspend->dpm_suspend_noirq->genpd_suspend_noirq->pm_generic_suspend_noirq->dev_pm_genpd_add_notifier; removed ~15 ms later inresume_noirq), clean resume (0dmesg err/warn, GPU firmware recovered, ANE reboot-from-preload OK),macsmcTotal System Power4.725 Wbefore /4.701 W20 s after.sleep_pd, different base, samertcwakecommand): rc0,31.59 selapsed,suspend_stats1/0,0/0notifier calls,4.742 Wbefore /4.726 W20 s after. (Caveat: AC before/after readings at full battery do not establish an in-sleep power delta, and the control was a different-base kernel rather than a same-base A/B.)rtcwake -d rtc1 -m mem -s 30,mem_sleep = s2idle [deep], same kprobe setup): rc0,32.08 selapsed,suspend_stats1 -> 2(0fail),0/0dev_pm_genpd_{add,remove}_notifiercalls,aurora-g16 302600000.gpu: GPU firmware back in 729 us. (Two unrelated pre-existing deep-sleep warnings seen in dmesg:apple-sleepdma-controller isn't boundandbrcmf_cfg80211_suspend: WoWLAN wakes only from suspend-to-idle here.)dEQP-VK.api.smoke.*6/6 pass after both sleeps with0GPU errors in dmesg.J313 (M1 MacBook Air,
T8103,G13G B1, GPU fw27.2)69ee6f661a63(one-shot Linux 7.3.0 trial, default cmdline,asahi_sleep_pd_*symbols present):aurora 206400000.gpu: Unsupported GPU/firmware combination (G13, G, [27, 2, 0]);mainuses the legacyt8103path),/dev/drihascard1only,mem_sleep=[s2idle](nodeep). Consequently, GPU work before/after and the legacy-EBUSYdeep-sleep refusal (driver.rs:287) could not be exercised live on this 27.2 machine.s2idle× 2 (rtcwake -d rtc1 -m freeze -s 15and-m mem -s 15falling back tos2idle): both clean (~18 s); kprobes show onlyapple_pcie_hold_domains(1/1) and0/0PR notifier calls (no bound GPU driver).0failed units at initial snapshot (aurora-sep.servicefails after120 swithtrusted_key: key_seal failed (-5)on every boot of this machine, default kernel included),0AppArmor denials (SELinux not built),0Oops,9pre-existing boot err lines (DCP and PCI IRQ parsing, same families as other boots).dbb7b44b3d99/#3178+3577ce0e4885/#3171+ the 5-file#2715diff6c7d489e0fbc..69ee6f661a63applied cleanly, default cmdline; compared against shipped J313 27.2 control kernel without#2715):asahi_sleep_pd_notify)gfxgenpdRejected#2715, 1 cycle)rtcwake -d rtc1 -m freeze -s 15(17 s)0 / 0 / n/a(apple_pcie_hold_domains1/1)0 -> 1dEQP-VK.api.smoke.*6/6Passpm_test=platform,-m freeze -s 151 / 1 / 0(ret=0)0 -> 1noirqenter +resume_noirqunwind cleans2idle,rtcwake -d rtc1 -m freeze -s 15(18–19 s)1 / 1 / 1per cycle (action=0GENPD_NOTIFY_PRE_OFF->32785/0x8011)1 -> 4b336c570f7a9e87c(3/3 runs),api.smoke6/6Passs2idle,rtcwake -d rtc1 -m freeze -s 1(2–3 s, 0 aborts)1 / 1 / 1per cycle (action=0->0x8011)4 -> 10b336c570f7a9e87c(3/3 runs),api.smoke6/6Passrtcwake -d rtc1 -m mem -s 30(32 s,NUB.SPMI0Sw3IRQ)0 / 0 / 0(pm_suspend_via_firmware()gate)10 -> 11GPU firmware 27.2 back in 5954 us, checksumb336c570f7a9e87c,api.smoke6/6Passgfxgenpd remainedcurrent_state: onwithtotal_idle_time: 0 ms; kernel logs recordedGPU held for sleep/GPU released after sleeparound every cycle and0GPU fault/timeout/recovery/EIOlines.macsmc_hwmonpower1_input/power2_input/power3_input, mean of 5 samples 1 s apart, 20 s after resume, AC connected at 100% battery):3.69-3.74 / 3.70-3.77 / 2.53-2.64 W(c5–c10) vs3.89 / 3.85 / 2.69 W(control) — AC idle no-regression check only; does not establish in-sleep power delta.0AppArmorDENIED(SELinux not built),0AVC,0OOM,0Oops/BUG/WARNING/call trace,0GPU errors,0failed units at end snapshot (pre-existingaurora-sep.servicefailures also seen before testing and on default);18,365Vulkan CTS cases (api.smoke.*,glsl.builtin.*,compute.pipeline.cooperative_matrix.*,compute.basic.*)2,254Pass /16,111NotSupported /0Fail /0DeviceLost (2,682glsl.builtin.*cases identical to default kernel)./proc/device-tree/soc/power-management@23b700000/power-controller@3f8already marksgfxapple,sleep-retainedandapple,no-auto-pm, so the control kernel also keptgfxon acrosss2idle(Rejected0 -> 1) and thePC = 0x0crash is not reproducible under this DT; (2) none of the six1 salarms hit an abortedsuspend_noirqwindow; (3) deep sleep c11 logged unattributedapple-pmgr-pwrstate ...@1e0: PS fpwm1: Failed to reach power state 0xf,pci ... bridge window [io] failed to assign, andAFK service DCPDP2XService admission failed: -19(no control deep-sleep run for comparison).J716c (M5 Max,
T6050,G17C B1, GPU fw27.2 (26B123)) at exact head69ee6f661a631.0.0b17-gae94218e, default cmdline,mem_sleep = [s2idle] deep, wake-capable RTCrtc0(apple-pmu-rtc):0new booterr+lines (only 2 pre-existingsystemd-gpt-auto-generatorlines),1pre-existing failed unit (aurora-peripherals.service).s2idle(rtcwake -d rtc0 -m freeze -s 15):s2idlewake behavioradd/remove)s2idledmesgerr+69ee6f661a63rtc0alarm did not wake; woken by key press after ~20 min1(suspend entry) /1(resume)dEQP-VK.api.smoke.*6/6Pass,gpubench-vkcompute.light2/2ok (before & after)0(38non-audit lines)#2715mainbaseline15b1e2e0aacartc0alarm did not wake; woken by key press after ~20 min0 / 0dEQP-VK.api.smoke.*6/6Pass,gpubench-vkcompute.light2/2ok (before & after)4(non-GPU)mem_sleep=deep,rtcwake -d rtc0 -m mem -s 30): run once on#2715head69ee6f661a63and did not RTC-wake (required hard power cycle; not repeated on baseline because thes2idlebaseline already showedrtc0alarms are not waking onmain).s2idleresume (90.2 W) was sampled while AC was connected and charging, so in-sleep /s2idlepower delta and J716c deep-sleep0/0notifier count remain unmeasured.