diff options
| author | Boris Brezillon <boris.brezillon@collabora.com> | 2026-07-28 11:39:24 -0700 |
|---|---|---|
| committer | Alice Ryhl <aliceryhl@google.com> | 2026-07-30 13:43:06 +0000 |
| commit | ef0ef3184c4d4f21a9f774d8de7e3a49ba40a4d5 (patch) | |
| tree | 6161b30e939ecc85ebaac0d3f2d50c745bd01789 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 3e8d932a48edefc8a062700e7f2926e6d86645d4 (diff) | |
drm/tyr: add a generic slot manager
Introduce a generic slot manager to dynamically allocate limited hardware
slots to software "seats". It can be used for both address space (AS) and
command stream group (CSG) slots.
The slot manager initially assigns seats to its free slots. It will
continue to reuse the same slot for a seat, as long as another seat does
not start to use the slot in the interim.
When contention arises because all of the slots are allocated, the slot
manager will lazily evict and reuse slots that have become idle (if any).
The seat state is protected using the LockedBy pattern with the same lock
that guards the SlotManager. This ensures the seat state stays consistent
across slot operations.
Hardware specific behaviour is controlled through the SlotManager's
specific manager type that implements the `SlotOperations` trait.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Co-developed-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Link: https://patch.msgid.link/20260728-fw-boot-b4-v10-2-9187aefa3f2f@collabora.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
