diff options
author | Francois Dugast <francois.dugast@intel.com> | 2023-05-04 23:29:43 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:33:13 +0300 |
commit | 116d32515214910d8a34538dbd09ef26a878d5ae (patch) | |
tree | 42980ed72050baff8796fabb9857e906bb770a22 /drivers/gpu/drm/xe/xe_bo.h | |
parent | bb95a4f9f5c2e9b0a43590958ba1430519592909 (diff) | |
download | linux-116d32515214910d8a34538dbd09ef26a878d5ae.tar.xz |
drm/xe: Fix splat during error dump
Allow xe_bo_addr without lock to print debug information, such
as from xe_analyze_vm.
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h index 8354d05ccdf3..7e111332c35a 100644 --- a/drivers/gpu/drm/xe/xe_bo.h +++ b/drivers/gpu/drm/xe/xe_bo.h @@ -199,6 +199,8 @@ static inline void xe_bo_unpin_map_no_vm(struct xe_bo *bo) } bool xe_bo_is_xe_bo(struct ttm_buffer_object *bo); +dma_addr_t __xe_bo_addr(struct xe_bo *bo, u64 offset, + size_t page_size, bool *is_vram); dma_addr_t xe_bo_addr(struct xe_bo *bo, u64 offset, size_t page_size, bool *is_vram); |