Repository navigation
drm/asahi: hide the teardown errors of a closing client again - #1427
Merged
Merged
Conversation
Since "drm/asahi: finish an exiting client's work before its mappings go", a DRM file drops its queues before its VMs. Destroying a G17 queue fails its queued work with ENOENT (VM context gone) or ECANCELED (queue destroyed), which nobody can see once the client is closing, and the VM status hides those errors only after the client's VM handle is gone. With the VMs now dropped last, every such failure of a client that simply exited was logged as "GPU work of a client failed (ENOENT, ...); the client sees a lost device". gpubench-stress xq.exit and life.churn fail on that kernel-log line on a J616s, where fleet46 passed them. Mark the status of every VM of the file as closed when the file starts closing, before any queue goes, as closing the VM handle first used to. Device loss of such a client (EIO, ETIMEDOUT, ENODEV) is still warned about. Fixes: dbe881e ("drm/asahi: finish an exiting client's work before its mappings go") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Nov 11, 2026
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.
Since #1360 ("drm/asahi: finish an exiting client's work before its mappings go") a DRM file drops its queues before its VMs. Destroying a G17 queue fails its queued work with ENOENT (VM context gone) or ECANCELED (queue destroyed). The VM status hides those errors only once the client is closed, and it learned that only when the client's VM handle dropped — which now happens after the queues. Every client that simply exits with work queued was logged as:
gpubench-stress
xq.exitandlife.churnfail on that kernel-log line on G16/G17 (J616s, Neo).File::dropmarks the status of every VM of the file as client-closed before any field (queues first) drops, as closing the VM handle first used to.VmStatus::mark_client_closed()is split out ofrelease_mirror(), which still drops the mirror at VM close.a_closing_file_hides_teardown_errors_before_its_vm_goes.G13/G14 VMs carry no status (untracked submissions), so their #1360 drain is unaffected.
Results (J616s, one-shot boots of fleet48 cbf94db with and without this change)
ENOENT ... lost devicelines--allqueue.depth(128 + 64 submissions in flight on one queue) still fails on both kernels and is tracked separately.🤖 Generated with Claude Code