]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Add Xe SVM populate_devmem_pfn GPU SVM vfunc
authorMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 01:26:50 +0000 (17:26 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 19:36:56 +0000 (11:36 -0800)
commitecacec0f4aff9130e333e67ecfa21f3e0b630298
tree5d4cf8f3fe298d985974003b5cf4c218f76539d4
parentc5b3eb5a906c4777960050b9fece20a4722453b8
drm/xe: Add Xe SVM populate_devmem_pfn GPU SVM vfunc

Get device pfns from BO's buddy blocks. Used in migrate_* core MM
functions called in GPU SVM to migrate between device and system memory.

v2:
 - Use new drm_gpusvm_devmem_ops
v3:
 - Better commit message (Thomas)
v5:
 - s/xe_mem_region/xe_vram_region (Rebase)

Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Oak Zeng <oak.zeng@intel.com>
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-26-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_svm.c