Skip to content

Fix performance when pagefaults and 3d/display share resources

Matthew Brost intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 12 repliesIn review
  2. v16 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Fix CI failures, address early feedback

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/xe: Adjust long-running workload timeslices to reasonable valuesdrivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm_types.h+5 -22 replies
2/7drm/xe: Use usleep_range for accurate long-running workload timeslicingdrivers/gpu/drm/xe/xe_guc_submit.c+19 -11 reply
3/7drm/xe: Add debugfs knobs to control long running workload timeslicingdrivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_device_types.h +1 more+83 -21 reply
4/7drm/xe: Skip exec queue schedule toggle if queue is idle during suspenddrivers/gpu/drm/xe/xe_exec_queue.h drivers/gpu/drm/xe/xe_guc_submit.c drivers/gpu/drm/xe/xe_hw_engine_group.c+70 -41 reply
5/7drm/xe: Wait on in-syncs when swicthing to dma-fence modedrivers/gpu/drm/xe/xe_exec.c drivers/gpu/drm/xe/xe_hw_engine_group.c drivers/gpu/drm/xe/xe_hw_engine_group.h +2 more+78 -104 replies
6/7drm/xe: Add GT stats ktime helpersdrivers/gpu/drm/xe/xe_gt_stats.h drivers/gpu/drm/xe/xe_svm.c+41 -211 reply
7/7drm/xe: Add more GT stats around pagefault mode switch flowsdrivers/gpu/drm/xe/xe_gt_stats.c drivers/gpu/drm/xe/xe_gt_stats_types.h drivers/gpu/drm/xe/xe_hw_engine_group.c+30 -12 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchThomas HellströmFrancois Dugast
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] Fix performance when pagefaults and 3d/display share resources

xello_raytracer [1] showed a significant performance regression (~40× slowdown) when the compute UMD enabled page faults. The issue was traced to the implementation that allows page-fault workloads and dma-fence workloads (3D/display) to coexist.

This series fixes several issues, bringing page-fault performance in this benchmark to within 6% of preempt-fence mode (no page faults).

v2:
- Fix CI failures, address early feedback

Matt

[1] https://github.com/intel-sandbox/xello_raytracer

Matthew Brost (7):
drm/xe: Adjust long-running workload timeslices to reasonable values drm/xe: Use usleep_range for accurate long-running workload
timeslicing
drm/xe: Add debugfs knobs to control long running workload timeslicing drm/xe: Skip exec queue schedule toggle if queue is idle during
suspend
drm/xe: Wait on in-syncs when swicthing to dma-fence mode drm/xe: Add GT stats ktime helpers
drm/xe: Add more GT stats around pagefault mode switch flows

 drivers/gpu/drm/xe/xe_debugfs.c         | 74 ++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_device.c          |  1 +
 drivers/gpu/drm/xe/xe_device_types.h    |  6 ++
 drivers/gpu/drm/xe/xe_exec.c            |  9 ++-
 drivers/gpu/drm/xe/xe_exec_queue.h      | 17 ++++++
 drivers/gpu/drm/xe/xe_gt_stats.c        |  6 ++
 drivers/gpu/drm/xe/xe_gt_stats.h        | 33 ++++++++++-
 drivers/gpu/drm/xe/xe_gt_stats_types.h  |  3 +
 drivers/gpu/drm/xe/xe_guc_submit.c      | 75 +++++++++++++++++++++++--
 drivers/gpu/drm/xe/xe_hw_engine_group.c | 64 ++++++++++++++++++---
 drivers/gpu/drm/xe/xe_hw_engine_group.h |  4 +-
 drivers/gpu/drm/xe/xe_svm.c             | 29 +++-------
 drivers/gpu/drm/xe/xe_sync.c            | 29 ++++++++++
 drivers/gpu/drm/xe/xe_sync.h            |  2 +
 drivers/gpu/drm/xe/xe_vm.c              |  5 +-
 drivers/gpu/drm/xe/xe_vm_types.h        |  2 +-
 16 files changed, 322 insertions(+), 37 deletions(-)
Signature · 1 line
2.34.1