Repository navigation
drm/agx: leave the RGX registers alone after a job times out - #115
Merged
Merged
Conversation
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>
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.
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.