Repository navigation
A12: keep the GPU powered through system sleep - #117
Open
henrikklee wants to merge 1 commit into
Open
henrikklee wants to merge 1 commit into
henrikklee wants to merge 1 commit into
Conversation
The GPU's firmware cannot be restarted and the agx driver has no system
sleep handling, so the power domain code switched ps_gfx off in s2idle.
After the resume the firmware was gone: on the iPhone XR the first job
after waking timed out ("render stuck in its TA job") and the desktop
froze until a reboot.
Keep the domain on until the driver can put the firmware to sleep.
Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
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.
On the iPhone XR the GPU desktop froze after the first sleep. The phone went to sleep (s2idle) when the screen turned off, and 5 seconds after waking the first GPU job timed out (
render stuck in its TA job;GPU wedged; reboot required).The cause: the GPU firmware can't be restarted, and the agx driver has no system sleep handling, so the power domain code switched
ps_gfxoff during sleep. This keeps the domain on (apple,always-on) in the shared t8020 pmgr file, for every A12 board, until the driver can put the firmware to sleep in an orderly way.Test on the XR (sleep and wake on the GPU desktop) follows before merge.