diff options
author | Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> | 2023-03-31 19:52:50 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:31:30 +0300 |
commit | c33a721943f46851f10eb34852a3fd1fedcd3639 (patch) | |
tree | dfe52d14fa37a1514452c76db8e177d3a516940b /drivers/gpu/drm/xe/xe_bo.h | |
parent | 370997d168d64e84c12164bffdd326fd240a9790 (diff) | |
download | linux-c33a721943f46851f10eb34852a3fd1fedcd3639.tar.xz |
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 <matthew.brost@intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_bo.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_bo.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |