drm/xe: Add SVM init / close / fini to faulting VMs
authorMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 01:26:34 +0000 (17:26 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 19:35:35 +0000 (11:35 -0800)
commit6fd979c2f33150e8261d87d2946f94f66f22ddaa
tree4d562f8cfcbfd6f9e5ee04ae33d26745c14b4d9d
parentb43e864af0d4e74636c0e1dee857ce3275a84829
drm/xe: Add SVM init / close / fini to faulting VMs

Add SVM init / close / fini to faulting VMs. Minimual implementation
acting as a placeholder for follow on patches.

v2:
 - Add close function
v3:
 - Better commit message (Thomas)
 - Kernel doc (Thomas)
 - Update chunk array to be unsigned long (Thomas)
 - Use new drm_gpusvm.h header location (Thomas)
 - Newlines between functions in xe_svm.h (Thomas)
 - Call drm_gpusvm_driver_set_lock in init (Thomas)
v6:
 - Only compile if CONFIG_DRM_GPUSVM selected (CI, Lucas)
v7:
 - Only select CONFIG_DRM_GPUSVM if DEVICE_PRIVATE (CI)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-10-matthew.brost@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_svm.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_svm.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_types.h