Repository navigation
drm/asahi: retry G17 retained compute publication pressure - #382
Merged
RyanTheTide merged 1 commit intoOct 22, 2026
Merged
Conversation
The compute publisher already retries EAGAIN before firmware visibility, under one bounded admission deadline. Its retained-command preflight instead returned EBUSY for a healthy full ring or an earlier replay. The backend then failed an unpublished packet, exposing device loss for transient capacity pressure. Return EAGAIN for those two conditions, preserving EBUSY for quarantined or released ownership and the existing deadline, cancellation and VM status checks. No producer, descriptor or work count changes before this check. Exercise saturation, retirement and replay ordering with the production retained FIFO. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Oct 23, 2026
Merged
Merged
Merged
Merged
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.
A G17 compute submission could fail with EBUSY and lose its device when the retained command ring was simply full. This turns that case into the same bounded wait the publisher already uses for a full firmware ring.
The compute publisher retries EAGAIN before anything becomes visible to the firmware, under one admission deadline. Its retained-command preflight returned EBUSY instead, both for a healthy full ring and for a packet queued behind an earlier replay. The backend then failed the unpublished packet, so a client saw VK_ERROR_DEVICE_LOST for transient capacity pressure. On the Neo this showed up as
sparse_binding_structuresgpu_built cases losing their device at four parallel jobs, while passing when run alone.Those two conditions now return EAGAIN. EBUSY stays for a quarantined or released queue, and the deadline, cancellation and VM status checks are unchanged. Nothing is written before the check, so a retry starts from the same state.
Testing:
asahi*KUnit suite passes.Neo results on 73iq (73i plus this commit), with the candidate Mesa:
🤖 Generated with Claude Code