Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 00/13] Fence deadlines in Xe
@ 2025-12-25  1:17 Matthew Brost
  2025-12-25  1:17 ` [RFC PATCH 01/13] drm/xe: Add dedicated message lock Matthew Brost
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: Matthew Brost @ 2025-12-25  1:17 UTC (permalink / raw)
  To: intel-xe; +Cc: daniele.ceraolospurio, carlos.santa

Implement fence deadlines in Xe. The idea is that if a deadline is set
on a fence, we try hard to complete it within 3 ms of the deadline. This
means for queues tied to a fence with CAP_SYS_ADMIN, we bump the
priority, and for all queues tied to a fence, we ramp up the GPU
frequency. The expected use case is a compositor that needs a steady
frame rate but does not want to run at a higher priority than the
application rendering the frame.

Lightly tested; seems to be behaving as expected and not crashing.

Matt

Matthew Brost (13):
  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: Add deadline manager
  drm/xe: Add deadline manager to user exec queues
  drm/xe: Stub out execlists deadline vfuncs as NOPs
  drm/xe: Make scheduler message lock IRQ-safe
  drm/xe: Implement GuC submission backend ops for deadlines
  drm/xe: Enable deadlines on hardware fences
  drm/xe: Add CONFIG_DRM_XE_DEADLINE_WINDOW
  drm/xe: Add exec queue deadline trace points

 drivers/gpu/drm/xe/Kconfig.profile           |   6 +
 drivers/gpu/drm/xe/Makefile                  |   1 +
 drivers/gpu/drm/xe/xe_deadline_mgr.c         | 219 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_deadline_mgr.h         |  26 +++
 drivers/gpu/drm/xe/xe_deadline_mgr_types.h   |  34 +++
 drivers/gpu/drm/xe/xe_exec_queue.c           |   7 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h     |  15 ++
 drivers/gpu/drm/xe/xe_execlist.c             |  20 ++
 drivers/gpu/drm/xe/xe_gpu_scheduler.c        |  33 +--
 drivers/gpu/drm/xe/xe_gpu_scheduler.h        |  11 +-
 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h  |   2 +
 drivers/gpu/drm/xe/xe_guc_exec_queue_types.h |   2 +-
 drivers/gpu/drm/xe/xe_guc_submit.c           | 137 ++++++++++--
 drivers/gpu/drm/xe/xe_hw_fence.c             |  29 ++-
 drivers/gpu/drm/xe/xe_hw_fence.h             |   5 +-
 drivers/gpu/drm/xe/xe_hw_fence_types.h       |  13 ++
 drivers/gpu/drm/xe/xe_lrc.c                  |   6 +-
 drivers/gpu/drm/xe/xe_lrc.h                  |   3 +-
 drivers/gpu/drm/xe/xe_sched_job.c            |   2 +-
 drivers/gpu/drm/xe/xe_trace.h                |  10 +
 20 files changed, 530 insertions(+), 51 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

-- 
2.34.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-12-25  3:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-25  1:17 [RFC PATCH 00/13] Fence deadlines in Xe Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 01/13] drm/xe: Add dedicated message lock Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 02/13] drm/xe: Add EXEC_QUEUE_FLAG_CAP_SYS_NICE Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 03/13] drm/xe: Store exec queue in hardware fence Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 04/13] drm/xe: Add deadline exec queue vfuncs Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 05/13] drm/xe: Export to_xe_hw_fence Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 06/13] drm/xe: Add deadline manager Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 07/13] drm/xe: Add deadline manager to user exec queues Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 08/13] drm/xe: Stub out execlists deadline vfuncs as NOPs Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 09/13] drm/xe: Make scheduler message lock IRQ-safe Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 10/13] drm/xe: Implement GuC submission backend ops for deadlines Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 11/13] drm/xe: Enable deadlines on hardware fences Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 12/13] drm/xe: Add CONFIG_DRM_XE_DEADLINE_WINDOW Matthew Brost
2025-12-25  1:17 ` [RFC PATCH 13/13] drm/xe: Add exec queue deadline trace points Matthew Brost
2025-12-25  1:25 ` ✗ CI.checkpatch: warning for Fence deadlines in Xe Patchwork
2025-12-25  1:26 ` ✓ CI.KUnit: success " Patchwork
2025-12-25  2:01 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-12-25  3:02 ` ✓ Xe.CI.Full: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox