Skip to content

Upstreaming prep / all of mbrosts patches

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 Latest31 patches 93 repliesIn review
  2. v130 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/31drm/sched: Add run_wq argument to drm_sched_initdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/etnaviv/etnaviv_sched.c drivers/gpu/drm/lima/lima_sched.c +7 more+16 -133 replies
2/31drm/sched: Move schedule policy to schedulerdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/etnaviv/etnaviv_sched.c drivers/gpu/drm/lima/lima_sched.c +8 more+72 -262 replies
3/31drm/sched: Add DRM_SCHED_POLICY_SINGLE_ENTITY scheduling policydrivers/gpu/drm/scheduler/sched_entity.c drivers/gpu/drm/scheduler/sched_fence.c drivers/gpu/drm/scheduler/sched_main.c +1 more+115 -222 replies
4/31drm/xe: Use DRM_SCHED_POLICY_SINGLE_ENTITY modedrivers/gpu/drm/xe/xe_execlist.c drivers/gpu/drm/xe/xe_guc_submit.c+3 -31 reply
5/31drm/xe: Long running job updatedrivers/gpu/drm/xe/xe_engine.c drivers/gpu/drm/xe/xe_engine.h drivers/gpu/drm/xe/xe_exec.c +3 more+137 -98 replies
6/31drm/xe: Ensure LR engines are not persistentdrivers/gpu/drm/xe/xe_engine.c+3 -13 replies
7/31drm/xe: Only try to lock external BOs in VM binddrivers/gpu/drm/xe/xe_vm.c+5 -38 replies
8/31drm/xe: VM LRU bulk movedrivers/gpu/drm/xe/xe_bo.c drivers/gpu/drm/xe/xe_bo.h drivers/gpu/drm/xe/xe_dma_buf.c +2 more+40 -710 replies
9/31drm/xe/guc: Read HXG fields from DW1 of G2H responsedrivers/gpu/drm/xe/xe_guc_ct.c+3 -32 replies
10/31drm/xe/guc: Return the lower part of blocking H2G messagedrivers/gpu/drm/xe/xe_guc_ct.c drivers/gpu/drm/xe/xe_guc_pc.c drivers/gpu/drm/xe/xe_huc.c+10 -43 replies
11/31drm/xe/guc: Use doorbells for submission if possibledrivers/gpu/drm/xe/regs/xe_guc_regs.h drivers/gpu/drm/xe/xe_guc.c drivers/gpu/drm/xe/xe_guc_engine_types.h +4 more+315 -47 replies
12/31drm/xe/guc: Print doorbell ID in GuC engine debugfs entrydrivers/gpu/drm/xe/xe_guc_submit.c+2 -02 replies
13/31maple_tree: split up MA_STATE() macroinclude/linux/maple_tree.h+5 -22 replies
14/31maple_tree: Export mas_preallocatelib/maple_tree.c+1 -02 replies
15/31drm: manager to keep track of GPUs VA mappingsDocumentation/gpu/drm-mm.rst drivers/gpu/drm/Makefile drivers/gpu/drm/drm_debugfs.c +6 more+2549 -02 replies
16/31drm/xe: Port Xe to GPUVAdrivers/gpu/drm/xe/xe_bo.c drivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_exec.c +9 more+1171 -11743 replies
17/31drm/xe: NULL binding implementationdrivers/gpu/drm/xe/xe_bo.h drivers/gpu/drm/xe/xe_exec.c drivers/gpu/drm/xe/xe_gt_pagefault.c +6 more+144 -553 replies
18/31drm/xe: Avoid doing rebindsdrivers/gpu/drm/xe/xe_pt.c drivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm_types.h+67 -251 reply
19/31drm/xe: Reduce the number list links in xe_vmadrivers/gpu/drm/xe/xe_gt_pagefault.c drivers/gpu/drm/xe/xe_pt.c drivers/gpu/drm/xe/xe_vm.c +1 more+55 -522 replies
20/31drm/xe: Optimize size of xe_vma allocationdrivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm_types.h+57 -453 replies
21/31drm/gpuva: Add drm device to GPUVA managerdrivers/gpu/drm/drm_gpuva_mgr.c drivers/gpu/drm/xe/xe_migrate.c drivers/gpu/drm/xe/xe_pt.c +4 more+46 -322 replies
22/31drm/gpuva: Move dma-resv to GPUVA managerdrivers/gpu/drm/drm_gpuva_mgr.c drivers/gpu/drm/xe/xe_bo.c drivers/gpu/drm/xe/xe_bo.h +7 more+50 -361 reply
23/31drm/gpuva: Add support for extobjdrivers/gpu/drm/drm_gpuva_mgr.c drivers/gpu/drm/xe/xe_exec.c drivers/gpu/drm/xe/xe_vm.c +3 more+105 -1211 reply
24/31drm/xe: Userptr refactordrivers/gpu/drm/xe/xe_pt.c drivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm.h +2 more+89 -642 replies
25/31drm: execution context for GEM buffers v3Documentation/gpu/drm-mm.rst drivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile +2 more+383 -00 replies
26/31drm/exec: Always compile drm_execdrivers/gpu/drm/Makefile+1 -23 replies
27/31drm/xe: Use drm_exec for locking rather than TTM exec helpersdrivers/gpu/drm/drm_gpuva_mgr.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/xe/Kconfig +15 more+315 -3612 replies
28/31drm/xe: Allow dma-fences as in-syncs for compute / faulting VMdrivers/gpu/drm/xe/xe_sync.c+7 -54 replies
29/31drm/xe: Allow compute VMs to output dma-fences on bindsdrivers/gpu/drm/xe/xe_vm.c+1 -12 replies
30/31drm/xe: remove async worker, sync binds, new error handlingdrivers/gpu/drm/xe/xe_engine.c drivers/gpu/drm/xe/xe_engine_types.h drivers/gpu/drm/xe/xe_exec.c +7 more+213 -7261 reply
31/31drm/xe/uapi: Add some VM bind kernel docinclude/uapi/drm/xe_drm.h+42 -32 replies

Reviews trailers per patch

10 of 31 patches have a Reviewed-by or Acked-by.

PatchRodrigo ViviThomas Hellström
1/31
2/31
3/31R-b
4/31R-b
5/31
6/31R-b
7/31R-b
8/31
9/31R-b A-b
10/31
11/31
12/31R-b R-b
13/31
14/31
15/31
16/31
17/31
18/31
19/31R-b
20/31
21/31
22/31
23/31
24/31
25/31
26/31
27/31
28/31R-b R-b
29/31R-b
30/31
31/31R-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 [Intel-xe] [PATCH v2 00/31] Upstreaming prep / all of mbrosts patches

Series includes:

- DRM scheduler changes for firmware backends (1 to 1 entity to scheduler)
- LR workload story
- VM LRU handling
- GuC doorbell submission
- Basic GPUVA
- Sparse binding support
- GPUVA + extobj + drm exec (collaboration with dakr + Francois Dugast)
- GPUVA + userptr (minimal, more can be once Nouveua has userptr)
- Fix fencing rules for compute / fault mode
- Remove async worker for VM + error handling updates
- Kernel doc for VM bind

Series is not fully ready for upstream and some of these things need to get merged upstream first but overall it is largely correct and certainly step in the right direction. Based on its size and the fact it took me 8 hours to rebase this today I'd say let's get this tree and fixup everything else in place.

Minor uAPI breakage, IGT series:
https://patchwork.freedesktop.org/series/117177/

gitlab link:
https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/344

Christian König (1):
drm: execution context for GEM buffers v3

Danilo Krummrich (2):
maple_tree: split up MA_STATE() macro
drm: manager to keep track of GPUs VA mappings

Matthew Brost (28):
drm/sched: Add run_wq argument to drm_sched_init drm/sched: Move schedule policy to scheduler drm/sched: Add DRM_SCHED_POLICY_SINGLE_ENTITY scheduling policy drm/xe: Use DRM_SCHED_POLICY_SINGLE_ENTITY mode drm/xe: Long running job update
drm/xe: Ensure LR engines are not persistent
drm/xe: Only try to lock external BOs in VM bind drm/xe: VM LRU bulk move
drm/xe/guc: Read HXG fields from DW1 of G2H response drm/xe/guc: Return the lower part of blocking H2G message drm/xe/guc: Use doorbells for submission if possible drm/xe/guc: Print doorbell ID in GuC engine debugfs entry
maple_tree: Export mas_preallocate
drm/xe: Port Xe to GPUVA
drm/xe: NULL binding implementation
drm/xe: Avoid doing rebinds
drm/xe: Reduce the number list links in xe_vma drm/xe: Optimize size of xe_vma allocation
drm/gpuva: Add drm device to GPUVA manager
drm/gpuva: Move dma-resv to GPUVA manager
drm/gpuva: Add support for extobj
drm/xe: Userptr refactor
drm/exec: Always compile drm_exec
drm/xe: Use drm_exec for locking rather than TTM exec helpers drm/xe: Allow dma-fences as in-syncs for compute / faulting VM drm/xe: Allow compute VMs to output dma-fences on binds drm/xe: remove async worker, sync binds, new error handling drm/xe/uapi: Add some VM bind kernel doc

 Documentation/gpu/drm-mm.rst                 |   43 +
 drivers/gpu/drm/Kconfig                      |    6 +
 drivers/gpu/drm/Makefile                     |    4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c   |    3 +-
 drivers/gpu/drm/drm_debugfs.c                |   41 +
 drivers/gpu/drm/drm_exec.c                   |  248 ++
 drivers/gpu/drm/drm_gem.c                    |    3 +
 drivers/gpu/drm/drm_gpuva_mgr.c              | 1779 ++++++++++++
 drivers/gpu/drm/etnaviv/etnaviv_sched.c      |    5 +-
 drivers/gpu/drm/i915/display/intel_display.c |    6 +-
 drivers/gpu/drm/lima/lima_sched.c            |    5 +-
 drivers/gpu/drm/msm/msm_ringbuffer.c         |    5 +-
 drivers/gpu/drm/panfrost/panfrost_job.c      |    5 +-
 drivers/gpu/drm/scheduler/sched_entity.c     |   84 +-
 drivers/gpu/drm/scheduler/sched_fence.c      |    2 +-
 drivers/gpu/drm/scheduler/sched_main.c       |   88 +-
 drivers/gpu/drm/v3d/v3d_sched.c              |   25 +-
 drivers/gpu/drm/xe/Kconfig                   |    1 +
 drivers/gpu/drm/xe/regs/xe_guc_regs.h        |    1 +
 drivers/gpu/drm/xe/tests/xe_bo.c             |   26 +-
 drivers/gpu/drm/xe/tests/xe_migrate.c        |    6 +-
 drivers/gpu/drm/xe/xe_bo.c                   |  100 +-
 drivers/gpu/drm/xe/xe_bo.h                   |   13 +-
 drivers/gpu/drm/xe/xe_bo_evict.c             |   24 +-
 drivers/gpu/drm/xe/xe_bo_types.h             |    1 -
 drivers/gpu/drm/xe/xe_device.c               |    2 +-
 drivers/gpu/drm/xe/xe_dma_buf.c              |    2 +-
 drivers/gpu/drm/xe/xe_engine.c               |   50 +-
 drivers/gpu/drm/xe/xe_engine.h               |    4 +
 drivers/gpu/drm/xe/xe_engine_types.h         |    1 +
 drivers/gpu/drm/xe/xe_exec.c                 |  117 +-
 drivers/gpu/drm/xe/xe_execlist.c             |    3 +-
 drivers/gpu/drm/xe/xe_gt_pagefault.c         |   84 +-
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c  |   14 +-
 drivers/gpu/drm/xe/xe_guc.c                  |    6 +
 drivers/gpu/drm/xe/xe_guc_ct.c               |   12 +-
 drivers/gpu/drm/xe/xe_guc_engine_types.h     |    9 +
 drivers/gpu/drm/xe/xe_guc_pc.c               |    6 +-
 drivers/gpu/drm/xe/xe_guc_submit.c           |  398 ++-
 drivers/gpu/drm/xe/xe_guc_submit.h           |    1 +
 drivers/gpu/drm/xe/xe_guc_types.h            |    4 +
 drivers/gpu/drm/xe/xe_huc.c                  |    2 +-
 drivers/gpu/drm/xe/xe_lrc.c                  |    8 +-
 drivers/gpu/drm/xe/xe_migrate.c              |   31 +-
 drivers/gpu/drm/xe/xe_pt.c                   |  198 +-
 drivers/gpu/drm/xe/xe_sync.c                 |   26 +-
 drivers/gpu/drm/xe/xe_sync.h                 |    2 +-
 drivers/gpu/drm/xe/xe_trace.h                |   20 +-
 drivers/gpu/drm/xe/xe_vm.c                   | 2567 +++++++-----------
 drivers/gpu/drm/xe/xe_vm.h                   |  135 +-
 drivers/gpu/drm/xe/xe_vm_madvise.c           |  125 +-
 drivers/gpu/drm/xe/xe_vm_types.h             |  324 ++-
 drivers/gpu/drm/xe/xe_wait_user_fence.c      |   43 +-
 include/drm/drm_debugfs.h                    |   24 +
 include/drm/drm_drv.h                        |    7 +
 include/drm/drm_exec.h                       |  115 +
 include/drm/drm_gem.h                        |   75 +
 include/drm/drm_gpuva_mgr.h                  |  759 ++++++
 include/drm/gpu_scheduler.h                  |   29 +-
 include/linux/maple_tree.h                   |    7 +-
 include/uapi/drm/xe_drm.h                    |  128 +-
 lib/maple_tree.c                             |    1 +
 62 files changed, 5543 insertions(+), 2320 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_exec.c
 create mode 100644 drivers/gpu/drm/drm_gpuva_mgr.c
 create mode 100644 include/drm/drm_exec.h
 create mode 100644 include/drm/drm_gpuva_mgr.h
Signature · 1 line
2.34.1