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 <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Reviewed-by: Himal Prasad Ghimiray <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0c30c65 commit 808c37e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)