[PATCH v3 0/2] Use hmm_range_fault to populate user page
Himal Prasad Ghimiray
himal.prasad.ghimiray at intel.com
Thu Apr 4 06:16:29 UTC 2024
This is an effort to unify hmmptr (system allocator) and userptr.
A helper xe_userptr_populate_range is created to populate a user
page using hmm_range_fault, instead of using get_user_pages_fast.
This helper is then used to replace some userptr codes.
The same helper will be used later for hmmptr.
This is part of the hmmptr (system allocator) codes. Since this
part can be merged separately, send it out for CI and review first.
It will be followed by other hmmptr codes.
-v3
Squashed patches 1 and 2.
Address review comments.
Oak Zeng (2):
drm/xe: Introduce helper to populate userptr
drm/xe: Use hmm_range_fault to populate user pages
drivers/gpu/drm/xe/Kconfig | 1 +
drivers/gpu/drm/xe/Makefile | 2 +
drivers/gpu/drm/xe/xe_hmm.c | 253 ++++++++++++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_hmm.h | 18 +++
drivers/gpu/drm/xe/xe_vm.c | 118 ++---------------
5 files changed, 282 insertions(+), 110 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_hmm.c
create mode 100644 drivers/gpu/drm/xe/xe_hmm.h
--
2.25.1
More information about the Intel-xe
mailing list