Skip to content

Commit 808c37e

Browse files
committed
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 <matthew.brost@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-23-matthew.brost@intel.com
1 parent 0c30c65 commit 808c37e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/xe/xe_bo_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <linux/iosys-map.h>
1010

11+
#include <drm/drm_gpusvm.h>
1112
#include <drm/ttm/ttm_bo.h>
1213
#include <drm/ttm/ttm_device.h>
1314
#include <drm/ttm/ttm_placement.h>
@@ -80,6 +81,9 @@ struct xe_bo {
8081
*/
8182
u16 cpu_caching;
8283

84+
/** @devmem_allocation: SVM device memory allocation */
85+
struct drm_gpusvm_devmem devmem_allocation;
86+
8387
/** @vram_userfault_link: Link into @mem_access.vram_userfault.list */
8488
struct list_head vram_userfault_link;
8589

0 commit comments

Comments
 (0)