Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Use hmm_range_fault to populate user page
@ 2024-04-04  6:16 Himal Prasad Ghimiray
  2024-04-04  6:08 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Himal Prasad Ghimiray @ 2024-04-04  6:16 UTC (permalink / raw)
  To: intel-xe; +Cc: Himal Prasad Ghimiray

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-04-05  8:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04  6:16 [PATCH v3 0/2] Use hmm_range_fault to populate user page Himal Prasad Ghimiray
2024-04-04  6:08 ` ✓ CI.Patch_applied: success for " Patchwork
2024-04-04  6:08 ` ✗ CI.checkpatch: warning " Patchwork
2024-04-04  6:09 ` ✓ CI.KUnit: success " Patchwork
2024-04-04  6:16 ` [PATCH v3 1/2] drm/xe: Introduce helper to populate userptr Himal Prasad Ghimiray
2024-04-05  1:07   ` Matthew Brost
2024-04-05  6:12     ` Ghimiray, Himal Prasad
2024-04-05  8:05       ` Ghimiray, Himal Prasad
2024-04-04  6:16 ` [PATCH v3 2/2] drm/xe: Use hmm_range_fault to populate user pages Himal Prasad Ghimiray
2024-04-05  1:09   ` Matthew Brost
2024-04-05  6:14     ` Ghimiray, Himal Prasad
2024-04-04  6:20 ` ✓ CI.Build: success for Use hmm_range_fault to populate user page Patchwork
2024-04-04  6:23 ` ✓ CI.Hooks: " Patchwork
2024-04-04  6:24 ` ✓ CI.checksparse: " Patchwork
2024-04-04  6:57 ` ✓ CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox