Repository navigation
pmdomain: apple: pulse a latched-off domain's PS reset on T8140 only - #1757
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
🤖 Generated with Claude Code