Skip to content

A12: keep the GPU powered through system sleep - #117

Open
henrikklee wants to merge 1 commit into
mainfrom
a12-gpu-sleep
Open

henrikklee wants to merge 1 commit into
mainfrom
a12-gpu-sleep

Conversation

@henrikklee

Copy link
Copy Markdown

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_gfx off 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.

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>
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