Skip to content

pmdomain: apple: pulse a latched-off domain's PS reset on T8140 only - #1757

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fix/pmgr-unlatch-t8140-only
Nov 13, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fix/pmgr-unlatch-t8140-only

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

The power-off path in pmgr-pwrstate pulses a domain's PS reset when the domain reaches off with BUSY still set. That was added for the T8140 ISP CPU cores, but the check ran at runtime on every SoC. This limits the pulse to T8140 (macos_lower). Other SoCs leave the domain as it is and log a debug message.

On T8112 the gfx domain reaches off with BUSY set (0xf002b00) before every s2idle, so every suspend pulsed the GPU domain's PS reset.

Tests (7.3.0-aurora-fleet69pm1 = e661192 + this change, dyndbg on pmgr-pwrstate.c):

  • M2 (T8112): 3 deliberate ANE hangs, all recovered. s2idle 6/6, rc 0. 6 "PS gfx: off with BUSY: 0xf002b00; left as it is", one per s2idle; none for an ANE domain. Full-relu top-5 matches the reference before and after. 0 DART faults, 0 AVC.
  • M4 Pro (T6040): 24 deliberate H16 hangs, 24 recovered (~120 ms each). s2idle 3/3 right after a hang plus 3/3 plain. MobileNet top-1 16/16 after each step, p50 0.279 -> 0.278 ms (x200). No domain reached off with BUSY. 0 DART faults, 0 AVC.
  • checkpatch --strict clean; builds with W=1.

🤖 Generated with Claude Code

The power-off path pulses a domain's PS reset when it reaches off with
BUSY still set. That was added for the T8140 ISP CPU cores, whose latch
stalls the sleep engine's wake, but the check was not limited to T8140:
at runtime it ran on every SoC.

On T8112 the gfx domain reaches off with BUSY set (0xf002b00) when it is
powered off ahead of each s2idle, so every suspend pulsed the GPU
domain's PS reset. Nothing on that SoC needs it, and a PS reset of a
domain whose block is still busy can reset the whole SoC (a hung ANE
domain does on T8112).

Pulse it only on T8140 (macos_lower) and leave other SoCs' domains as
they were before, with a debug message.

Fixes: d9b438c ("arm64: apple: support coordinated suspend-to-RAM on T8140")
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit 7945f4b into integration/aurora Nov 13, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the fix/pmgr-unlatch-t8140-only branch November 13, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant