Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Use hmm_range_fault to populate user page
@ 2024-03-22  3:55 Oak Zeng
  2024-03-22  3:55 ` [PATCH 1/3] drm/xe: Introduce helper to populate userptr Oak Zeng
                   ` (16 more replies)
  0 siblings, 17 replies; 24+ messages in thread
From: Oak Zeng @ 2024-03-22  3:55 UTC (permalink / raw)
  To: intel-xe
  Cc: thomas.hellstrom, matthew.brost, brian.welty,
	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 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

-- 
2.26.3


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

end of thread, other threads:[~2024-04-03  4:43 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22  3:55 [PATCH 0/3] Use hmm_range_fault to populate user page Oak Zeng
2024-03-22  3:55 ` [PATCH 1/3] drm/xe: Introduce helper to populate userptr Oak Zeng
2024-04-03  3:03   ` Matthew Brost
2024-04-03  3:54     ` Zeng, Oak
2024-04-03  4:15       ` Matthew Brost
2024-04-03  4:43         ` Zeng, Oak
2024-03-22  3:55 ` [PATCH 2/3] drm/xe: Introduce a helper to free sg table Oak Zeng
2024-04-03  3:06   ` Matthew Brost
2024-03-22  3:55 ` [PATCH 3/3] drm/xe: Use hmm_range_fault to populate user pages Oak Zeng
2024-04-03  3:09   ` Matthew Brost
2024-03-22  4:51 ` ✓ CI.Patch_applied: success for Use hmm_range_fault to populate user page Patchwork
2024-03-22  4:52 ` ✗ CI.checkpatch: warning " Patchwork
2024-03-22  4:53 ` ✓ CI.KUnit: success " Patchwork
2024-03-22  5:03 ` ✓ CI.Build: " Patchwork
2024-03-22  5:06 ` ✓ CI.Hooks: " Patchwork
2024-03-22  5:07 ` ✓ CI.checksparse: " Patchwork
2024-03-22  5:35 ` ✓ CI.BAT: " Patchwork
2024-04-01 14:32 ` ✓ CI.Patch_applied: success for Use hmm_range_fault to populate user page (rev2) Patchwork
2024-04-01 14:32 ` ✗ CI.checkpatch: warning " Patchwork
2024-04-01 14:33 ` ✓ CI.KUnit: success " Patchwork
2024-04-01 14:44 ` ✓ CI.Build: " Patchwork
2024-04-01 14:47 ` ✓ CI.Hooks: " Patchwork
2024-04-01 14:48 ` ✓ CI.checksparse: " Patchwork
2024-04-01 15:20 ` ✓ 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