Message ID | 20241016032518.539495-19-matthew.brost@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Introduce GPU SVM and Xe SVM implementation | expand |
On Tue, 2024-10-15 at 20:25 -0700, Matthew Brost wrote: > Add drm_gpusvm_devmem to xe_bo. Required to enable SVM migrations. > > Signed-off-by: Matthew Brost <matthew.brost@intel.com> > --- > drivers/gpu/drm/xe/xe_bo_types.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/xe/xe_bo_types.h > b/drivers/gpu/drm/xe/xe_bo_types.h > index 13c6d8a69e91..54d337004621 100644 > --- a/drivers/gpu/drm/xe/xe_bo_types.h > +++ b/drivers/gpu/drm/xe/xe_bo_types.h > @@ -8,6 +8,8 @@ > > #include <linux/iosys-map.h> > > +#include "drm_gpusvm.h" > + > #include <drm/ttm/ttm_bo.h> > #include <drm/ttm/ttm_device.h> > #include <drm/ttm/ttm_execbuf_util.h> > @@ -74,6 +76,9 @@ struct xe_bo { > */ > u16 cpu_caching; > > + /** @devmem_allocation: SVM device memory allocation */ > + struct drm_gpusvm_devmem devmem_allocation; > + I think this can go away with follow-up multi-device patches, but for now Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> > /** @vram_userfault_link: Link into > @mem_access.vram_userfault.list */ > struct list_head vram_userfault_link; >
diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h index 13c6d8a69e91..54d337004621 100644 --- a/drivers/gpu/drm/xe/xe_bo_types.h +++ b/drivers/gpu/drm/xe/xe_bo_types.h @@ -8,6 +8,8 @@ #include <linux/iosys-map.h> +#include "drm_gpusvm.h" + #include <drm/ttm/ttm_bo.h> #include <drm/ttm/ttm_device.h> #include <drm/ttm/ttm_execbuf_util.h> @@ -74,6 +76,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;
Add drm_gpusvm_devmem to xe_bo. Required to enable SVM migrations. Signed-off-by: Matthew Brost <matthew.brost@intel.com> --- drivers/gpu/drm/xe/xe_bo_types.h | 5 +++++ 1 file changed, 5 insertions(+)