aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorPrike Liang <[email protected]>2025-04-15 02:27:44 +0000
committerAlex Deucher <[email protected]>2025-04-30 22:05:07 +0000
commit9d40b05d6daa484b5be4495ec6b1117da1a3f31f (patch)
tree4b8e007f460acc834600b91b3e5c2aba391c90cc /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amdgpu: Fail DMABUF map of XGMI-accessible memory (diff)
downloadkernel-9d40b05d6daa484b5be4495ec6b1117da1a3f31f.tar.gz
kernel-9d40b05d6daa484b5be4495ec6b1117da1a3f31f.zip
drm/amdgpu: add the evf attached gem obj resv dump
This debug dump will help on debugging the evf attached gem obj fence related issue. Signed-off-by: Prike Liang <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Arvind Yadav <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 0b9987781f76..dbe57996a481 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -1644,7 +1644,11 @@ u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, struct seq_file *m)
amdgpu_bo_print_flag(m, bo, VRAM_CONTIGUOUS);
amdgpu_bo_print_flag(m, bo, VM_ALWAYS_VALID);
amdgpu_bo_print_flag(m, bo, EXPLICIT_SYNC);
-
+ /* Add the gem obj resv fence dump*/
+ if (dma_resv_trylock(bo->tbo.base.resv)) {
+ dma_resv_describe(bo->tbo.base.resv, m);
+ dma_resv_unlock(bo->tbo.base.resv);
+ }
seq_puts(m, "\n");
return size;