drm/amdgpu: add the evf attached gem obj resv dump
Subsystems (2)
PATCH 1/3 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]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +5 -1
@@ -1675,7 +1675,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;
Signature · 1 line
2.34.1
PATCH 2/3 drm/amdgpu: set the evf name to identify the userq case
The evf fence name can clearly identify the userq usage.
Signed-off-by Prike Liang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c +1 -1
@@ -31,7 +31,7 @@static const char *amdgpu_eviction_fence_get_driver_name (struct dma_fence *fence) { -return "amdgpu" ; +return "amdgpu_eviction_fence" ; } static const char *
Signature · 1 line
2.34.1
Re: [PATCH 2/3] drm/amdgpu: set the evf name to identify the userq case
Reviewed-by Arvind Yadav <[email protected]>
Quoted 20 lines · Prike Liang
The evf fence name can clearly identify the userq usage.
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c +1
-1@@ -31,7 +31,7 @@static const char *amdgpu_eviction_fence_get_driver_name (struct dma_fence *fence) { -return "amdgpu" ; +return "amdgpu_eviction_fence" ; } static const char *
Am 22.04.25 um 15:23 schrieb Prike Liang:
Quoted 4 lines
This debug dump will help on debugging the evf attached gem obj fence related issue.
Signed-off-by Prike Liang <[email protected]>
Quoted 21 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +5
-1@@ -1675,7 +1675,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;
Yadav, Arvind
Reviewed-by Arvind YadavReviewed-by Arvind Yadav <[email protected]>
Quoted 28 lines · Christian König
Am 22.04.25 um 15:23 schrieb Prike Liang:
Quoted 4 lines
This debug dump will help on debugging the evf attached gem obj fence related issue.
Signed-off-by Prike Liang <[email protected]>Quoted 21 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +5
-1@@ -1675,7 +1675,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;