Skip to content

drm/xe: Support optional pinning of userptr pages

Thomas Hellström dri-devel intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Address review comments by Matthew Brost.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/xe/vm: Use onion unwind for xe_vma_userptr_pin_pages()drivers/gpu/drm/xe/xe_vm.c+19 -180 replies
2/4drm/xe/vm: Implement userptr page pinningdrivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm.h drivers/gpu/drm/xe/xe_vm_types.h+79 -221 reply
3/4drm/xe/vm: Perform accounting of userptr pinned pagesdrivers/gpu/drm/xe/xe_vm.c+50 -20 replies
4/4drm/xe/uapi: Support pinning of userptr vmasdrivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm_types.h include/uapi/drm/xe_drm.h+46 -70 replies

Reviews trailers per patch

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

PatchMatthew Brost
1/4R-b
2/4R-b
3/4R-b
4/4R-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/4] drm/xe: Support optional pinning of userptr pages

This series adds a flag at VM_BIND time to pin the memory backing a VMA. Initially this is needed for long-running workloads on hardware that neither support mid-thread preemption nor pagefaults, since without it the userptr MMU notifier will wait for preemption until preemption times out.

Moving forward this could be supported also for bo-backed VMAs given a proper accounting takes place. A sysadmin could then optionally configure a system to be optimized for dealing with a single GPU application at a time.

The series will be followed up with an igt series to exercise the uAPI.

v2:
- Address review comments by Matthew Brost.

Thomas Hellström (4):
drm/xe/vm: Use onion unwind for xe_vma_userptr_pin_pages() drm/xe/vm: Implement userptr page pinning drm/xe/vm: Perform accounting of userptr pinned pages drm/xe/uapi: Support pinning of userptr vmas

 drivers/gpu/drm/xe/xe_vm.c       | 194 ++++++++++++++++++++++++-------
 drivers/gpu/drm/xe/xe_vm.h       |   9 ++
 drivers/gpu/drm/xe/xe_vm_types.h |  14 +++
 include/uapi/drm/xe_drm.h        |  18 +++
 4 files changed, 190 insertions(+), 45 deletions(-)
Signature · 1 line
2.41.0