Use hmm_range_fault to populate user page
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/xe: Introduce helper to populate userptrdrivers/ drivers/ drivers/ +1 more | +244 | 4 replies | |
| 2/3 | drm/xe: Introduce a helper to free sg tabledrivers/ drivers/ | +31 | 1 reply | |
| 3/3 | drm/xe: Use hmm_range_fault to populate user pagesdrivers/ | +12 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Use hmm_range_fault to populate user page
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 help 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.
Oak Zeng (3):
drm/xe: Introduce helper to populate userptr drm/xe: Introduce a helper to free sg table 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 | 254 ++++++++++++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_hmm.h | 18 +++ drivers/gpu/drm/xe/xe_vm.c | 122 ++--------------- 5 files changed, 287 insertions(+), 110 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_hmm.c create mode 100644 drivers/gpu/drm/xe/xe_hmm.h
Signature · 1 line
2.26.3