Skip to content

Sync DRM scheduler with upstream (with fixups)

Rodrigo Vivi dri-devel intel-xe linux-arm-msm nouveau stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20Revert "drm/xe: Use DRM_SCHED_POLICY_SINGLE_ENTITY mode"drivers/gpu/drm/xe/xe_execlist.c drivers/gpu/drm/xe/xe_guc_submit.c+4 -20 replies
2/20Revert "drm/sched: Add DRM_SCHED_POLICY_SINGLE_ENTITY scheduling policy"drivers/gpu/drm/scheduler/sched_entity.c drivers/gpu/drm/scheduler/sched_fence.c drivers/gpu/drm/scheduler/sched_main.c +1 more+24 -1180 replies
3/20Revert "drm/sched: Move schedule policy to scheduler"drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/etnaviv/etnaviv_sched.c drivers/gpu/drm/lima/lima_sched.c +9 more+27 -740 replies
4/20Revert "drm/sched: Add helper to set TDR timeout"drivers/gpu/drm/scheduler/sched_main.c include/drm/gpu_scheduler.h+0 -190 replies
5/20Revert "drm/sched: Submit job before starting TDR"drivers/gpu/drm/scheduler/sched_main.c+1 -10 replies
6/20Revert "drm/sched: Start run wq before TDR in drm_sched_start"drivers/gpu/drm/scheduler/sched_main.c+2 -20 replies
7/20Revert "drm/sched: Add generic scheduler message interface"drivers/gpu/drm/scheduler/sched_main.c include/drm/gpu_scheduler.h+3 -840 replies
8/20Revert "drm/sched: Convert drm scheduler to use a work queue rather than kthread"drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +9 more+85 -1110 replies
9/20Revert "drm/sched: Don't store self-dependencies"drivers/gpu/drm/scheduler/sched_main.c+0 -70 replies
10/20gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSETdrivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c include/drm/gpu_scheduler.h+3 -30 replies
11/20drm/sched: Convert the GPU scheduler to variable number of run-queuesdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_job.c drivers/gpu/drm/etnaviv/etnaviv_sched.c +8 more+98 -250 replies
12/20dma-buf: add dma_fence_timestamp helperdrivers/dma-buf/dma-fence-unwrap.c drivers/dma-buf/sync_file.c drivers/gpu/drm/scheduler/sched_main.c +1 more+27 -160 replies
13/20drm/sched: Add drm_sched_wqueue_* helpersdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 more+59 -180 replies
14/20drm/sched: Convert drm scheduler to use a work queue rather than kthreaddrivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/etnaviv/etnaviv_sched.c drivers/gpu/drm/lima/lima_sched.c +6 more+86 -810 replies
15/20drm/sched: Split free_job into own work itemdrivers/gpu/drm/scheduler/sched_main.c include/drm/gpu_scheduler.h+101 -490 replies
16/20drm/sched: Add drm_sched_start_timeout_unlocked helperdrivers/gpu/drm/scheduler/sched_main.c+13 -100 replies
17/20drm/sched: Add a helper to queue TDR immediatelydrivers/gpu/drm/scheduler/sched_main.c include/drm/gpu_scheduler.h+18 -10 replies
18/20fixup! drm/xe: Introduce a new DRM driver for Intel GPUsdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_exec_queue_types.h drivers/gpu/drm/xe/xe_execlist.c +6 more+330 -940 replies
19/20fixup! drm/xe: Fix potential deadlock handling page faultsdrivers/gpu/drm/xe/xe_migrate.c+1 -10 replies
20/20drm/xe: Use pool of ordered wq for GuC submissiondrivers/gpu/drm/xe/xe_guc_submit.c drivers/gpu/drm/xe/xe_guc_types.h+71 -40 replies

Reviews trailers per patch

8 of 20 patches have a Reviewed-by or Acked-by.

PatchAlex DeucherLuben TuikovChristian König
1/20
2/20
3/20
4/20
5/20
6/20
7/20
8/20
9/20
10/20A-b
11/20A-b
12/20R-b
13/20R-b
14/20R-b
15/20R-b
16/20R-b
17/20R-b
18/20
19/20
20/20

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.

Read the v1 thread

Cover letter [Intel-xe] [PATCH 00/20] Sync DRM scheduler with upstream (with fixups)

This work here is based on Matt's series:

https://patchwork.freedesktop.org/series/126029/

But updated to properly remove the old patches, cherry-pick the new ones and adding fixup versions to the original xe patches.

The only modification is that for a cleaner cherry-pick, I had to take couple more patches from drm-misc where the DRM_SCHED_PRIORITY_UNSET was removed so, we are now adding a local XE_SCHED_PRIORITY_UNSET for execlists.

After the clean-up rebases, with all the old patches removed, the new ones added to the bottom and the fixup squashed to the original, our drm-xe-next will look like this:

https://gitlab.freedesktop.org/rodrigovivi/drm-xe/-/commits/drm-sched-final-rebase

For reference, the branch with these reverts and fixups is
https://gitlab.freedesktop.org/rodrigovivi/drm-xe/-/tree/drm-sched-final-rebase-reverts-and-fixups

The git diff between these 2 branches is empty.

The git diff between any of these and the branch with Matt's series applied is limited to the cases on drivers/gpu/drm/xe/xe_execlist.c

- DRM_SCHED_PRIORITY_UNSET
+ DRM_XE_SCHED_PRIORITY_UNSET

as explained above.

Steps to create fixup patches like these:
1. Get a final reference code (where you want to achieve).
2. Rebase removing the outdated patches, adding the new ones and fix the conflicts.
3. Create the fixup patches while solving the conflicts or later with the result of the git range-diff
4. ensure that git range-diff between the brances are reasonable.
5. ensure empty git diff between the branches that you want.
6. send a series like this.
7. Now we wait for CI results.

Thanks,
Rodrigo.

Christian König (1):
dma-buf: add dma_fence_timestamp helper

Luben Tuikov (2):
gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET
drm/sched: Convert the GPU scheduler to variable number of run-queues

Matthew Brost (8):
drm/sched: Add drm_sched_wqueue_* helpers
drm/sched: Convert drm scheduler to use a work queue rather than
kthread
drm/sched: Split free_job into own work item drm/sched: Add drm_sched_start_timeout_unlocked helper drm/sched: Add a helper to queue TDR immediately fixup! drm/xe: Introduce a new DRM driver for Intel GPUs fixup! drm/xe: Fix potential deadlock handling page faults drm/xe: Use pool of ordered wq for GuC submission

Rodrigo Vivi (9):
Revert "drm/xe: Use DRM_SCHED_POLICY_SINGLE_ENTITY mode" Revert "drm/sched: Add DRM_SCHED_POLICY_SINGLE_ENTITY scheduling
policy"
Revert "drm/sched: Move schedule policy to scheduler" Revert "drm/sched: Add helper to set TDR timeout"
Revert "drm/sched: Submit job before starting TDR" Revert "drm/sched: Start run wq before TDR in drm_sched_start" Revert "drm/sched: Add generic scheduler message interface" Revert "drm/sched: Convert drm scheduler to use a work queue rather
than kthread"
Revert "drm/sched: Don't store self-dependencies"

 drivers/dma-buf/dma-fence-unwrap.c            |  13 +-
 drivers/dma-buf/sync_file.c                   |   9 +-
 .../drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c   |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c       |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c   |  15 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    |  14 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c       |   4 +-
 drivers/gpu/drm/etnaviv/etnaviv_sched.c       |   4 +-
 drivers/gpu/drm/lima/lima_sched.c             |   7 +-
 drivers/gpu/drm/msm/adreno/adreno_device.c    |   6 +-
 drivers/gpu/drm/msm/msm_ringbuffer.c          |   4 +-
 drivers/gpu/drm/nouveau/nouveau_sched.c       |   4 +-
 drivers/gpu/drm/panfrost/panfrost_job.c       |   4 +-
 drivers/gpu/drm/scheduler/sched_entity.c      |  97 +---
 drivers/gpu/drm/scheduler/sched_fence.c       |   2 +-
 drivers/gpu/drm/scheduler/sched_main.c        | 477 +++++++++---------
 drivers/gpu/drm/v3d/v3d_sched.c               |  20 +-
 drivers/gpu/drm/xe/Makefile                   |   1 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h      |   3 +
 drivers/gpu/drm/xe/xe_execlist.c              |  21 +-
 drivers/gpu/drm/xe/xe_gpu_scheduler.c         | 101 ++++
 drivers/gpu/drm/xe/xe_gpu_scheduler.h         |  73 +++
 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h   |  58 +++
 drivers/gpu/drm/xe/xe_guc_exec_queue_types.h  |   8 +-
 drivers/gpu/drm/xe/xe_guc_submit.c            | 212 +++++---
 drivers/gpu/drm/xe/xe_guc_types.h             |   7 +
 drivers/gpu/drm/xe/xe_migrate.c               |   2 +-
 drivers/gpu/drm/xe/xe_trace.h                 |  13 +-
 include/drm/gpu_scheduler.h                   |  90 +---
 include/linux/dma-fence.h                     |  19 +
 30 files changed, 763 insertions(+), 530 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_gpu_scheduler.c
 create mode 100644 drivers/gpu/drm/xe/xe_gpu_scheduler.h
 create mode 100644 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h
Signature · 1 line
2.41.0