Skip to content

drm/agx: leave the RGX registers alone after a job times out - #115

Merged
henrikklee merged 1 commit into
mainfrom
agx-timeout-safe
Dec 2, 2026
Merged

henrikklee merged 1 commit into
mainfrom
agx-timeout-safe

Conversation

@henrikklee

Copy link
Copy Markdown

Found on the XR GPU desktop (xr-audio's serial log): a job timed out, and agx_fw_timeout's read of the MMU fault status (RGX 0x17040) took 'SError Interrupt on CPU2' (L2C_ERR_ADR 0x204017040) and reset the phone into iOS. Only the firmware may touch the RGX block. The handler now marks the GPU wedged, fails the job and logs stamps + firmware trace from shared memory, without touching registers; the RGX mapping is dropped. A wedged GPU still needs a reboot, but the phone no longer resets and the log shows where the job stuck. The hang itself is a separate issue being narrowed on the XR. Checked: apple-16k kernel build, agx module, no warnings.

On the iPhone XR a job timed out on the GPU desktop, and the timeout
handler's read of the MMU fault status (RGX 0x17040) took an SError on
the same CPU and reset the phone into iOS. Only the firmware may touch
the RGX block (it may be powered down when the host looks). Drop the
read and the mapping; the handler still marks the GPU wedged, fails the
job and logs the stamps and the firmware trace from shared memory.

Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
@henrikklee
henrikklee merged commit 80e8776 into main Dec 2, 2026
4 checks passed
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