drm/xe: Support optional pinning of userptr pages
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 3 repliesIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/xe/vm: Use onion unwind for xe_vma_userptr_pin_pages()drivers/ | +19 | 0 replies | |
| 2/4 | drm/xe/vm: Implement userptr page pinningdrivers/ drivers/ drivers/ | +79 | 1 reply | |
| 3/4 | drm/xe/vm: Perform accounting of userptr pinned pagesdrivers/ | +50 | 0 replies | |
| 4/4 | drm/xe/uapi: Support pinning of userptr vmasdrivers/ drivers/ include/ | +46 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Brost |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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