Skip to content

Replace xe_hmm with gpusvm

Matthew Auld dri-devel intel-xe 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest8 patches 0 repliesNew
  2. v58 patches 3 repliesSuperseded
  3. v48 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v37 patches6 repliesSuperseded
v27 patches8 repliesSuperseded
v17 patches14 repliesSuperseded

Changes in v6 from the cover letter

- Various small fixes around kernel-doc etc.
- Also convert over the newly added xe_vm_advise userptr usage.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drm/gpusvm: fix hmm_pfn_to_map_order() usagedrivers/gpu/drm/drm_gpusvm.c+31 -20 replies
2/8drm/gpusvm: use more selective dma dir in get_pages()drivers/gpu/drm/drm_gpusvm.c+5 -30 replies
3/8drm/gpusvm: pull out drm_gpusvm_pages substructuredrivers/gpu/drm/drm_gpusvm.c drivers/gpu/drm/xe/xe_pt.c drivers/gpu/drm/xe/xe_svm.c +2 more+80 -590 replies
4/8drm/gpusvm: refactor core API to use pages structdrivers/gpu/drm/drm_gpusvm.c+110 -510 replies
5/8drm/gpusvm: export drm_gpusvm_pages APIdrivers/gpu/drm/drm_gpusvm.c include/drm/drm_gpusvm.h+67 -150 replies
6/8drm/xe/vm: split userptr bits into separate filedrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_pt.c drivers/gpu/drm/xe/xe_userptr.c +4 more+411 -3480 replies
7/8drm/xe/userptr: replace xe_hmm with gpusvmdrivers/gpu/drm/xe/Kconfig drivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_exec.c +10 more+171 -4740 replies
8/8drm/xe/pt: unify xe_pt_svm_pre_commit with userptrdrivers/gpu/drm/xe/xe_pt.c drivers/gpu/drm/xe/xe_pt_types.h+46 -790 replies

Reviews trailers per patch

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

PatchThomas HellströmMatthew Brost
1/8R-b
2/8R-b R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/8] Replace xe_hmm with gpusvm

As a first step to moving userptr handling over to drm, replace the hmm usage in xe over to gpusvm, which already offers similar functionality. As some prep steps we also align on some of the missing pieces that were already handled in xe_hmm.

v2:
- Rework the gpusvm API based on feedback.
- Unify SVM and userptr vm struct so we use the same notifier lock.
- Drop the mark pages as dirty patch.
- Various other improvements.
v3:
- Further unify common handling of userptr and svm in xe.
v4:
- Allow building xe without userptr, like when building on UML.
v5:
- Rebase on lastest drm-tip. Lots of conflicts.
v6:
- Various small fixes around kernel-doc etc.
- Also convert over the newly added xe_vm_advise userptr usage.

Signature · 1 line
2.51.0