diff options
author | Oak Zeng <oak.zeng@intel.com> | 2024-04-12 12:52:37 +0300 |
---|---|---|
committer | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2024-04-12 15:49:05 +0300 |
commit | 12f4b58a37f48a049893f1ae04b3fbb9b5088e8c (patch) | |
tree | e67d569daf86f6d3adbb00b3a7f587fb0a29ef8f /drivers/gpu/drm/xe/tests/xe_migrate.c | |
parent | 81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 (diff) | |
download | linux-12f4b58a37f48a049893f1ae04b3fbb9b5088e8c.tar.xz |
drm/xe: Use hmm_range_fault to populate user pages
This is an effort to unify hmmptr (aka system allocator)
and userptr code. hmm_range_fault is used to populate
a virtual address range for both hmmptr and userptr,
instead of hmmptr using hmm_range_fault and userptr
using get_user_pages_fast.
This also aligns with AMD gpu driver's behavior. In
long term, we plan to put some common helpers in this
area to drm layer so it can be re-used by different
vendors.
-v1
use the function with parameter to confirm whether lock is
acquired by the caller or needs to be acquired in hmm_range_fault.
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Oak Zeng <oak.zeng@intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240412095237.1048599-3-himal.prasad.ghimiray@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/tests/xe_migrate.c')
0 files changed, 0 insertions, 0 deletions