]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Add GPUSVM device memory copy vfunc functions
authorMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 01:26:49 +0000 (17:26 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 19:36:56 +0000 (11:36 -0800)
commitc5b3eb5a906c4777960050b9fece20a4722453b8
tree4ff137488999df3945afbd0edae5bb441236d2a7
parent11bbe0d9aa9680257b666e50d6b3c15bb856a27e
drm/xe: Add GPUSVM device memory copy vfunc functions

Add GPUSVM device memory copy vfunc functions and connect to migration
layer. Used for device memory migration.

v2:
 - Allow NULL device pages in xe_svm_copy
 - Use new drm_gpusvm_devmem_ops
v3:
 - Prefix defines with XE_ (Thomas)
 - Change copy chunk size to 8M
 - Add a bunch of comments to xe_svm_copy to clarify behavior (Thomas)
 - Better commit message (Thomas)
v5:
 - s/xe_mem_region/xe_vram_region (Rebase)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-25-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_svm.c