Repository navigation
drm/asahi: g17: show each process's share of the queues - #1982
Merged
Merged
Conversation
The driver counts every queue against the process that created it: a process may always hold half of the device's queues, and more while an eighth of them stays free for the others. A process that has reached its share gets EBUSY when it creates one more queue, so the application gets an error from the call that creates it. Nothing showed how close any process was to its share, or which processes held the queues that limited it. Report the share in the capacity snapshot: the queues held, the limit and its reserve, and up to eight of the processes holding the most, largest first: queue_share held=... max=... reserve=... processes=... queue_share_process tgid=... held=... comm=... Signed-off-by: Diljit Singh <[email protected]>
This was referenced Nov 15, 2026
DjDeveloperr
marked this pull request as ready for review
November 16, 2026 07:33
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.
The driver counts every queue against the process that created it. A process may always hold half of the device's queues, and more while an eighth of them stays free for the others. A process that has reached its share gets EBUSY when it creates one more queue, so the application gets an error from the call that creates it. Nothing showed how close a process was to its share, or which processes held the queues that limited it.
Change
Testing
soak with up to eight GPU processes (the desktop, and two or three dEQP-EGL or dEQP-VK processes).
add up to
held. With no queue being created,heldequals the queues in use (15 on the idledesktop:
queue_share held=15 max=58 reserve=7 processes=5).heldalso counts queues still being created: while two or three dEQP-EGL processes waited for room,it read up to three above the queues in use (60 of 58). Every refused creation gave its share back.
🤖 Generated with Claude Code