From: Matthew Brost Date: Thu, 6 Mar 2025 01:26:47 +0000 (-0800) Subject: drm/xe: Add drm_gpusvm_devmem to xe_bo X-Git-Tag: v6.15-rc1~120^2~10^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=808c37ee396f6f0a853acc030d8d4c55e07cdaa7;p=thirdparty%2Fkernel%2Flinux.git drm/xe: Add drm_gpusvm_devmem to xe_bo Add drm_gpusvm_devmem to xe_bo. Required to enable SVM migrations. Signed-off-by: Matthew Brost Reviewed-by: Thomas Hellström Reviewed-by: Himal Prasad Ghimiray Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-23-matthew.brost@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h index 60c522866500c..15a92e3d48985 100644 --- a/drivers/gpu/drm/xe/xe_bo_types.h +++ b/drivers/gpu/drm/xe/xe_bo_types.h @@ -8,6 +8,7 @@ #include +#include #include #include #include @@ -80,6 +81,9 @@ struct xe_bo { */ u16 cpu_caching; + /** @devmem_allocation: SVM device memory allocation */ + struct drm_gpusvm_devmem devmem_allocation; + /** @vram_userfault_link: Link into @mem_access.vram_userfault.list */ struct list_head vram_userfault_link;