[Intel-xe] [RFC PATCH 0/3] Upstream DRM scheduler policy story

Matthew Brost matthew.brost at intel.com
Sun Apr 2 02:41:42 UTC 2023


I'm thinking we include these patches in addition to the 5 scheduler
patches initially submitted in [1]. Also missing is passing in run_wq
into the drm_sched_init functions, that will included by modifying [2].

Let's review these internally and reach a consensus if this what we want
to send upstream for our DRM scheduler story wrt to a 1 to 1
relationship between scheduler and entity.

Another thing to consider is if we want to include [3] in our upstream
DRM scheduler post for our long running workload story.

Matt

[1] https://patchwork.freedesktop.org/series/112188/
[2] https://patchwork.freedesktop.org/patch/515854/?series=112188&rev=1
[3] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/338

Matthew Brost (3):
  drm/sched: Move schedule policy to scheduler / entity
  drm/sched: Add DRM_SCHED_POLICY_SINGLE_ENTITY scheduling policy
  drm/xe: Use DRM_SCHED_POLICY_SINGLE_ENTITY mode

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  1 +
 drivers/gpu/drm/etnaviv/etnaviv_sched.c    |  3 +-
 drivers/gpu/drm/lima/lima_sched.c          |  3 +-
 drivers/gpu/drm/msm/msm_ringbuffer.c       |  3 +-
 drivers/gpu/drm/panfrost/panfrost_job.c    |  3 +-
 drivers/gpu/drm/scheduler/sched_entity.c   | 83 +++++++++++++++++----
 drivers/gpu/drm/scheduler/sched_fence.c    |  2 +-
 drivers/gpu/drm/scheduler/sched_main.c     | 85 ++++++++++++++++++----
 drivers/gpu/drm/v3d/v3d_sched.c            | 15 ++--
 drivers/gpu/drm/xe/xe_execlist.c           |  1 +
 drivers/gpu/drm/xe/xe_guc_submit.c         |  3 +-
 include/drm/gpu_scheduler.h                | 52 +++++++++----
 12 files changed, 199 insertions(+), 55 deletions(-)

-- 
2.34.1



More information about the Intel-xe mailing list