Fence deadlines in Xe
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest22 patches 4 repliesIn review
- v1 RFC13 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Fully implemented deadline manager
- Separate frequency and priority boost windows
- Enable deadlines in Intel display
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | drm/xe: Add dedicated message lockdrivers/ drivers/ drivers/ | +7 | 0 replies | |
| 2/22 | drm/xe: Add EXEC_QUEUE_FLAG_CAP_SYS_NICEdrivers/ drivers/ | +5 | 1 reply | |
| 3/22 | drm/xe: Store exec queue in hardware fencedrivers/ drivers/ drivers/ +3 more | +17 | 1 reply | |
| 4/22 | drm/xe: Add deadline exec queue vfuncsdrivers/ | +9 | 1 reply | |
| 5/22 | drm/xe: Export to_xe_hw_fencedrivers/ drivers/ | +10 | 0 replies | |
| 6/22 | drm/xe: Export xe_hw_fence_signaleddrivers/ drivers/ | +9 | 0 replies | |
| 7/22 | drm/xe: Implement deadline managerdrivers/ drivers/ drivers/ +3 more | +451 | 0 replies | |
| 8/22 | drm/xe: Initialize deadline manager on exec queuesdrivers/ drivers/ | +12 | 0 replies | |
| 9/22 | drm/xe: Stub out execlists deadline vfuncs as NOPsdrivers/ | +15 | 0 replies | |
| 10/22 | drm/xe: Make scheduler message lock IRQ-safedrivers/ drivers/ drivers/ | +32 | 0 replies | |
| 11/22 | drm/xe: Support unstable opcodes for static scheduler messagesdrivers/ drivers/ drivers/ | +11 | 0 replies | |
| 12/22 | drm/xe: Implement GuC submission backend ops for deadlinesdrivers/ drivers/ drivers/ | +126 | 0 replies | |
| 13/22 | drm/xe: Enable deadlines on hardware fencesdrivers/ | +13 | 0 replies | |
| 14/22 | drm/xe: Fix Kconfig.profile newlinesdrivers/ | +7 | 1 reply | |
| 15/22 | drm/xe: Add deadline Kconfig optionsdrivers/ drivers/ | +38 | 0 replies | |
| 16/22 | drm/xe: Add exec queue deadline trace pointsdrivers/ drivers/ drivers/ | +30 | 0 replies | |
| 17/22 | drm/xe: Add hw fence deadline trace pointsdrivers/ drivers/ | +32 | 0 replies | |
| 18/22 | drm/xe: Add timestamp_ms to LRC snapshotdrivers/ drivers/ | +5 | 0 replies | |
| 19/22 | drm/xe: Enforce GuC static message definesdrivers/ | +9 | 0 replies | |
| 20/22 | drm/xe: Document the deadline managerdrivers/ | +80 | 0 replies | |
| 21/22 | drm/atomic: Export fence deadline helper for atomic commitsdrivers/ include/ | +11 | 0 replies | |
| 22/22 | drm/i915/display: Use atomic helper to set plane fence deadlinesdrivers/ | +2 | 0 replies |
Reviews trailers per patch
4 of 22 patches have a Reviewed-by or Acked-by.
| Patch | Niranjana Vishwanathapura | Philipp Stanner | Rodrigo Vivi |
|---|---|---|---|
| 1/22 | R-b | A-b | |
| 2/22 | |||
| 3/22 | R-b | ||
| 4/22 | R-b | ||
| 5/22 | |||
| 6/22 | |||
| 7/22 | |||
| 8/22 | |||
| 9/22 | |||
| 10/22 | |||
| 11/22 | |||
| 12/22 | |||
| 13/22 | |||
| 14/22 | R-b | ||
| 15/22 | |||
| 16/22 | |||
| 17/22 | |||
| 18/22 | |||
| 19/22 | |||
| 20/22 | |||
| 21/22 | |||
| 22/22 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v2 00/22] Fence deadlines in Xe
This series introduces deadline support for exported scheduler fences. When a deadline is set on a fence, the driver attempts to complete the work within a configurable window (default 3 ms, via Kconfig) ahead of the deadline.
As the deadline approaches, the exec queue first receives a frequency boost. If the queue has CAP_SYS_ADMIN privileges, a later stage also applies a priority boost. This tiered approach allows work to run at the same baseline priority as the application, only increasing priority when a deadline is at risk of being missed.
The primary use case is compositors that target a stable frame cadence while avoiding a permanently elevated scheduling priority.
Lightly tested with an IGT and running display; behavior appears correct.
VLK-82801
IGT: https://patchwork.freedesktop.org/series/159616/
v2:
- Fully implemented deadline manager
- Separate frequency and priority boost windows
- Enable deadlines in Intel display
Matt
Matthew Brost (22):
drm/xe: Add dedicated message lock
drm/xe: Add EXEC_QUEUE_FLAG_CAP_SYS_NICE
drm/xe: Store exec queue in hardware fence
drm/xe: Add deadline exec queue vfuncs
drm/xe: Export to_xe_hw_fence
drm/xe: Export xe_hw_fence_signaled
drm/xe: Implement deadline manager
drm/xe: Initialize deadline manager on exec queues drm/xe: Stub out execlists deadline vfuncs as NOPs drm/xe: Make scheduler message lock IRQ-safe
drm/xe: Support unstable opcodes for static scheduler messages drm/xe: Implement GuC submission backend ops for deadlines drm/xe: Enable deadlines on hardware fences
drm/xe: Fix Kconfig.profile newlines
drm/xe: Add deadline Kconfig options
drm/xe: Add exec queue deadline trace points
drm/xe: Add hw fence deadline trace points
drm/xe: Add timestamp_ms to LRC snapshot
drm/xe: Enforce GuC static message defines
drm/xe: Document the deadline manager
drm/atomic: Export fence deadline helper for atomic commits drm/i915/display: Use atomic helper to set plane fence deadlines
drivers/gpu/drm/drm_atomic_helper.c | 11 +- drivers/gpu/drm/i915/display/intel_display.c | 2 + drivers/gpu/drm/xe/Kconfig.profile | 29 ++ drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_deadline_mgr.c | 463 +++++++++++++++++++ drivers/gpu/drm/xe/xe_deadline_mgr.h | 26 ++ drivers/gpu/drm/xe/xe_deadline_mgr_types.h | 52 +++ drivers/gpu/drm/xe/xe_exec_queue.c | 11 + drivers/gpu/drm/xe/xe_exec_queue_types.h | 15 + drivers/gpu/drm/xe/xe_execlist.c | 15 + drivers/gpu/drm/xe/xe_gpu_scheduler.c | 43 +- drivers/gpu/drm/xe/xe_gpu_scheduler.h | 17 +- drivers/gpu/drm/xe/xe_gpu_scheduler_types.h | 4 +- drivers/gpu/drm/xe/xe_guc_exec_queue_types.h | 2 +- drivers/gpu/drm/xe/xe_guc_submit.c | 170 +++++-- drivers/gpu/drm/xe/xe_hw_fence.c | 38 +- drivers/gpu/drm/xe/xe_hw_fence.h | 7 +- drivers/gpu/drm/xe/xe_hw_fence_types.h | 19 + drivers/gpu/drm/xe/xe_lrc.c | 10 +- drivers/gpu/drm/xe/xe_lrc.h | 4 +- drivers/gpu/drm/xe/xe_sched_job.c | 5 +- drivers/gpu/drm/xe/xe_trace.h | 42 +- include/drm/drm_atomic_helper.h | 3 + 23 files changed, 918 insertions(+), 71 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_deadline_mgr.c create mode 100644 drivers/gpu/drm/xe/xe_deadline_mgr.h create mode 100644 drivers/gpu/drm/xe/xe_deadline_mgr_types.h
Signature · 1 line
2.34.1