Enable per exec queue MSI-X vector assignment
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | drm/xe: Add kerneldoc to xe_wait_user_fence_ioctl()drivers/ | +22 | 0 replies | |
| 2/12 | drm/xe: Handle NULL in xe_exec_queue_get_unless_zero()drivers/ | +1 | 0 replies | |
| 3/12 | drm/xe: Cap MSI-X vector count to XE_MSIX_MAX_VECSdrivers/ drivers/ | +8 | 0 replies | |
| 4/12 | drm/xe: Assign dedicated MSI-X vectors to exec queuesdrivers/ drivers/ drivers/ +1 more | +65 | 0 replies | |
| 5/12 | drm/xe: Add configfs max_msix_vecs attributedrivers/ drivers/ drivers/ | +81 | 0 replies | |
| 6/12 | drm/xe: Change MSI-X assignment failure to drm_dbgdrivers/ | +1 | 3 replies | |
| 7/12 | drm/xe: Remove memirq status and source checks for engine interruptsdrivers/ | +8 | 4 replies | |
| 8/12 | drm/xe: Add per-exec-queue user fence wait queuedrivers/ drivers/ drivers/ +7 more | +35 | 0 replies | |
| 9/12 | drm/xe: Track all exec queues in a device-level ufence listdrivers/ drivers/ drivers/ +1 more | +23 | 0 replies | |
| 10/12 | drm/xe: Hook up per queue thread wake to the unique MSI-X vector allocationdrivers/ drivers/ drivers/ | +16 | 0 replies | |
| 11/12 | drm/xe: Enable per-queue ufence wake in ioctl and wake functiondrivers/ | +34 | 0 replies | |
| 12/12 | drm/xe/memirq: Enable compute walker post-sync interruptdrivers/ drivers/ drivers/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/12] Enable per exec queue MSI-X vector assignment
This series adds support for per exec queue MSI-X vector assignment as well as a per exec queue wait queue in the wait user fence ioctl. MSI-X vectors are dynamically assigned during exec queue creation up to a set maximum. Once the max is reached, everything else falls back to the default vector.
These dynamic vectors allow us to wake up a targeted wait queue and user thread instead of broadcasting out to all potential user threads like we're doing today. This is interesting when we have many user threads outstanding as we don't want to wake them up in a storm for each interrupt coming in.
Additionally, there have been changes in the memirq code lately to isolate some of the interrupts handled here. Starting with xe3p, however, we have new interrupts available for compute walker post sync interrupts. Currently these are enabled for legacy MSI use cases, but the bits are also available for MSI-X. Enable those bits here.
Stuart Summers (12):
drm/xe: Add kerneldoc to xe_wait_user_fence_ioctl() drm/xe: Handle NULL in xe_exec_queue_get_unless_zero() drm/xe: Cap MSI-X vector count to XE_MSIX_MAX_VECS drm/xe: Assign dedicated MSI-X vectors to exec queues drm/xe: Add configfs max_msix_vecs attribute
drm/xe: Change MSI-X assignment failure to drm_dbg drm/xe: Remove memirq status and source checks for engine interrupts drm/xe: Add per-exec-queue user fence wait queue
drm/xe: Track all exec queues in a device-level ufence list drm/xe: Hook up per queue thread wake to the unique MSI-X vector
allocation
drm/xe: Enable per-queue ufence wake in ioctl and wake function drm/xe/memirq: Enable compute walker post-sync interrupt
drivers/gpu/drm/xe/regs/xe_lrc_layout.h | 3 + drivers/gpu/drm/xe/xe_configfs.c | 71 ++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_configfs.h | 6 ++ drivers/gpu/drm/xe/xe_device.c | 2 + drivers/gpu/drm/xe/xe_device_types.h | 11 ++++ drivers/gpu/drm/xe/xe_exec_queue.c | 47 +++++++++++++++- drivers/gpu/drm/xe/xe_exec_queue.h | 2 +- drivers/gpu/drm/xe/xe_exec_queue_types.h | 6 ++ drivers/gpu/drm/xe/xe_guc_submit.c | 6 +- drivers/gpu/drm/xe/xe_hw_engine.c | 6 +- drivers/gpu/drm/xe/xe_hw_engine.h | 3 +- drivers/gpu/drm/xe/xe_irq.c | 38 +++++++++++-- drivers/gpu/drm/xe/xe_irq.h | 9 +++ drivers/gpu/drm/xe/xe_lrc.c | 15 ++++- drivers/gpu/drm/xe/xe_memirq.c | 54 +++++++++--------- drivers/gpu/drm/xe/xe_memirq.h | 4 +- drivers/gpu/drm/xe/xe_sync.c | 3 +- drivers/gpu/drm/xe/xe_wait_user_fence.c | 64 ++++++++++++++++++++- drivers/gpu/drm/xe/xe_wait_user_fence.h | 4 ++ 19 files changed, 308 insertions(+), 46 deletions(-)
Signature · 1 line
2.43.0