All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump
@ 2025-04-22 13:23 Prike Liang
  2025-04-22 13:23 ` [PATCH 2/3] drm/amdgpu: set the evf name to identify the userq case Prike Liang
  2025-04-22 13:36 ` [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump Christian König
  0 siblings, 2 replies; 5+ messages in thread
From: Prike Liang @ 2025-04-22 13:23 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alexander.Deucher, Christian.Koenig, Prike Liang

This debug dump will help on debugging the evf attached gem obj fence
related issue.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index d09db052e282..1e73ce30d4d7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -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;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] drm/amdgpu: set the evf name to identify the userq case
  2025-04-22 13:23 [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump Prike Liang
@ 2025-04-22 13:23 ` Prike Liang
  2025-04-22 13:26   ` Yadav, Arvind
  2025-04-22 13:36 ` [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump Christian König
  1 sibling, 1 reply; 5+ messages in thread
From: Prike Liang @ 2025-04-22 13:23 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alexander.Deucher, Christian.Koenig, Prike Liang

The evf fence name can clearly identify the userq usage.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
index 0075469550b0..610f447ede9b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
@@ -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 *
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/3] drm/amdgpu: set the evf name to identify the userq case
  2025-04-22 13:23 ` [PATCH 2/3] drm/amdgpu: set the evf name to identify the userq case Prike Liang
@ 2025-04-22 13:26   ` Yadav, Arvind
  0 siblings, 0 replies; 5+ messages in thread
From: Yadav, Arvind @ 2025-04-22 13:26 UTC (permalink / raw)
  To: Prike Liang; +Cc: Alexander.Deucher, Christian.Koenig, amd-gfx

Reviewed-by: Arvind Yadav <Arvind.Yadav@amd.com>

On 4/22/2025 6:53 PM, Prike Liang wrote:
> The evf fence name can clearly identify the userq usage.
>
> Signed-off-by: Prike Liang <Prike.Liang@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
> index 0075469550b0..610f447ede9b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
> @@ -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 *

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump
  2025-04-22 13:23 [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump Prike Liang
  2025-04-22 13:23 ` [PATCH 2/3] drm/amdgpu: set the evf name to identify the userq case Prike Liang
@ 2025-04-22 13:36 ` Christian König
  2025-04-22 13:42   ` Yadav, Arvind
  1 sibling, 1 reply; 5+ messages in thread
From: Christian König @ 2025-04-22 13:36 UTC (permalink / raw)
  To: Prike Liang, amd-gfx; +Cc: Alexander.Deucher

Am 22.04.25 um 15:23 schrieb Prike Liang:
> This debug dump will help on debugging the evf attached gem obj fence
> related issue.
>
> Signed-off-by: Prike Liang <Prike.Liang@amd.com>

Reviewed-by: Christian König <christian.koenig@amd.com> for both patches.

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index d09db052e282..1e73ce30d4d7 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -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;


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump
  2025-04-22 13:36 ` [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump Christian König
@ 2025-04-22 13:42   ` Yadav, Arvind
  0 siblings, 0 replies; 5+ messages in thread
From: Yadav, Arvind @ 2025-04-22 13:42 UTC (permalink / raw)
  To: Prike Liang; +Cc: Alexander.Deucher, Christian König, amd-gfx

Reviewed-by: Arvind Yadav <Arvind.Yadav@amd.com>

On 4/22/2025 7:06 PM, Christian König wrote:
> Am 22.04.25 um 15:23 schrieb Prike Liang:
>> This debug dump will help on debugging the evf attached gem obj fence
>> related issue.
>>
>> Signed-off-by: Prike Liang <Prike.Liang@amd.com>
> Reviewed-by: Christian König <christian.koenig@amd.com> for both patches.
>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +++++-
>>   1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
>> index d09db052e282..1e73ce30d4d7 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
>> @@ -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;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-22 13:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22 13:23 [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump Prike Liang
2025-04-22 13:23 ` [PATCH 2/3] drm/amdgpu: set the evf name to identify the userq case Prike Liang
2025-04-22 13:26   ` Yadav, Arvind
2025-04-22 13:36 ` [PATCH 1/3] drm/amdgpu: add the evf attached gem obj resv dump Christian König
2025-04-22 13:42   ` Yadav, Arvind

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.