At XDC, we discussed that drivers should avoid accessing DRM scheduler
internals, misusing DRM scheduler locks, and adopt a well-defined
pending job list iterator. This series proposes the necessary changes to
the DRM scheduler to bring Xe in line with that agreement and updates Xe
to use the new DRM scheduler API.

This is being sent as an RFC since only Xe is updated in this series. If
consensus is reached, a follow-up series can address other drivers in
the subsystem.

v2:
 - Fix checkpatch / naming issues

Matt

Matthew Brost (4):
  drm/sched: Add pending job list iterator
  drm/sched: Add several job helpers to avoid drivers touching scheduler
    state
  drm/xe: Add dedicated message lock
  drm/xe: Stop abusing DRM scheduler internals

 drivers/gpu/drm/xe/xe_gpu_scheduler.c       |   3 +-
 drivers/gpu/drm/xe/xe_gpu_scheduler.h       |  31 ++----
 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h |   2 +
 drivers/gpu/drm/xe/xe_guc_submit.c          |  34 +++---
 drivers/gpu/drm/xe/xe_guc_submit_types.h    |   1 -
 include/drm/gpu_scheduler.h                 | 116 ++++++++++++++++++++
 6 files changed, 142 insertions(+), 45 deletions(-)

-- 
2.34.1

Reply via email to