Repository navigation
drm/asahi: g17: do not report a closed client's unfinished work as a lost device - #1925
Merged
DjDeveloperr merged 1 commit intoNov 14, 2026
Merged
Conversation
…lost device When a client closes its DRM file while one of its renders is still in the GPU, the queue teardown waits two seconds for that render and then fails it with ETIMEDOUT. The failure was logged as a render timeout and as a lost device of that client, although the client is gone and nothing can observe it. Killing a client whose render was queued behind another client's long ray-traversal pass could produce both lines. Treat the end of that wait like the other teardown errors of a closed client: a debug message, and no timeout report for the group unless verbose fault reporting is on. From then on the closed client's other ETIMEDOUT failures are treated the same way. The teardown cannot tell a render that was waiting its turn from one that was stuck, so a client killed while its own render hangs no longer leaves a warning. A hang that affects other clients is still reported through their watchdogs. A watchdog timeout of a client that is still there is reported as before, and so is the end of the wait for a client that only destroyed a queue. The host test that runs the status code on a host model follows the new field and function, and checks the rule: an open client still sees the end of its teardown wait, and a closed client's timeout is reported until such a wait has ended. One mutation covers the closed-client half. Signed-off-by: Diljit Singh <[email protected]>
DjDeveloperr
force-pushed
the
djdev/g17-quiet-closed-client-teardown
branch
from
November 14, 2026 20:11
a6a9773 to
b60e6ef
Compare
Contributor
Author
|
Merging on green host tests, to be verified after the merge.
🤖 Generated with Claude Code |
m0d16l14n1
added a commit
to m0d16l14n1/linux
that referenced
this pull request
Nov 15, 2026
…t-next G17 stability: aurora-silicon#1926 watchdog reason, aurora-silicon#1925 closed-client teardown, aurora-silicon#1946 kept-graph pool pages, aurora-silicon#1948 reclaim idle render pools; configs: aurora-silicon#1938, aurora-silicon#1939 shared defaults.
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.
When a client closes its DRM file, or is killed, while one of its renders is still queued in the GPU, queue teardown waits two seconds for that render and then fails it with ETIMEDOUT. The kernel logged this as a render timeout and as a lost device of that client:
The client is gone, so nothing can observe a lost device, and no running client loses its device. The lines only look like a GPU fault. Killing a client whose render waits behind another client's long ray-traversal pass produces them.
Change
Trade-off
The teardown cannot tell a render that was waiting its turn from one that was stuck. A client that is killed while its own render hangs therefore no longer leaves a warning. A hang that affects other clients is still reported through their watchdogs.
Testing
g17/status.rs. A full kernel build (Image, modules) with KUnit enabled compiles and links with this change; the case itself was not run.tools/asahi/g15-input-error-tests.py) follows the new field and function and checks the rule; its control, mutation and old-revision modes pass.🤖 Generated with Claude Code