From c33a721943f46851f10eb34852a3fd1fedcd3639 Mon Sep 17 00:00:00 2001 From: Niranjana Vishwanathapura Date: Fri, 31 Mar 2023 16:52:50 +0000 Subject: drm/xe: Use proper vram offset In xe_migrate functions, use proper vram io offset of the tiles while calculating addresses. Reviewed-by: Matthew Brost Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_bo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/drm/xe/xe_bo.h') diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h index 7b2104d1bda7..dd58edcb9398 100644 --- a/drivers/gpu/drm/xe/xe_bo.h +++ b/drivers/gpu/drm/xe/xe_bo.h @@ -224,6 +224,7 @@ void xe_bo_vunmap(struct xe_bo *bo); bool mem_type_is_vram(u32 mem_type); bool xe_bo_is_vram(struct xe_bo *bo); bool xe_bo_is_stolen(struct xe_bo *bo); +uint64_t vram_region_io_offset(struct ttm_resource *res); bool xe_bo_can_migrate(struct xe_bo *bo, u32 mem_type); -- cgit v1.2.3