Skip to content

drm/asahi: g17: show each process's share of the queues - #1982

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/g17-queue-share-holdings
Nov 16, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/g17-queue-share-holdings

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The capacity snapshot reports the share: the queues held, the limit and its reserve, and up to eight of the processes holding the most, largest first, each with its thread group ID, its queue count and the name of the thread that created its first queue.
queue_share held=... max=... reserve=... processes=...
queue_share_process tgid=... held=... comm=...
  • Unchanged: the share rule itself.

Testing

🤖 Generated with Claude Code

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant