* [PATCH] drm/amd/amdgpu: Print out ring name in dev_info
@ 2017-04-19 15:03 Tom St Denis
[not found] ` <20170419150359.21305-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Tom St Denis @ 2017-04-19 15:03 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis
So it's more obvious which rings are using which INV engines.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index a71521e10763..edf43769ae70 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -394,8 +394,9 @@ static int gmc_v9_0_late_init(void *handle)
unsigned vmhub = ring->funcs->vmhub;
ring->vm_inv_eng = vm_inv_eng[vmhub]++;
- dev_info(adev->dev, "ring %u uses VM inv eng %u on hub %u\n",
- ring->idx, ring->vm_inv_eng, ring->funcs->vmhub);
+ dev_info(adev->dev, "ring %u(%s) uses VM inv eng %u on hub %u\n",
+ ring->idx, ring->name, ring->vm_inv_eng,
+ ring->funcs->vmhub);
}
/* Engine 17 is used for GART flushes */
--
2.12.0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/amd/amdgpu: Print out ring name in dev_info
[not found] ` <20170419150359.21305-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
@ 2017-04-19 15:07 ` Christian König
[not found] ` <3ed4efbc-09e3-005e-613c-5baa8a5471c1-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Christian König @ 2017-04-19 15:07 UTC (permalink / raw)
To: Tom St Denis, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Am 19.04.2017 um 17:03 schrieb Tom St Denis:
> So it's more obvious which rings are using which INV engines.
>
> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
I wonder if we shouldn't stop printing the ring numbers completely in
the ring and IB tests as well and always use the ring name.
But anyway for now the patch is Reviewed-by: Christian König
<christian.koenig@amd.com>.
Regards,
Christian.
> ---
> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index a71521e10763..edf43769ae70 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -394,8 +394,9 @@ static int gmc_v9_0_late_init(void *handle)
> unsigned vmhub = ring->funcs->vmhub;
>
> ring->vm_inv_eng = vm_inv_eng[vmhub]++;
> - dev_info(adev->dev, "ring %u uses VM inv eng %u on hub %u\n",
> - ring->idx, ring->vm_inv_eng, ring->funcs->vmhub);
> + dev_info(adev->dev, "ring %u(%s) uses VM inv eng %u on hub %u\n",
> + ring->idx, ring->name, ring->vm_inv_eng,
> + ring->funcs->vmhub);
> }
>
> /* Engine 17 is used for GART flushes */
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/amd/amdgpu: Print out ring name in dev_info
[not found] ` <3ed4efbc-09e3-005e-613c-5baa8a5471c1-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2017-04-19 15:13 ` Tom St Denis
0 siblings, 0 replies; 3+ messages in thread
From: Tom St Denis @ 2017-04-19 15:13 UTC (permalink / raw)
To: Christian König, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
On 19/04/17 11:07 AM, Christian König wrote:
> Am 19.04.2017 um 17:03 schrieb Tom St Denis:
>> So it's more obvious which rings are using which INV engines.
>>
>> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
>
> I wonder if we shouldn't stop printing the ring numbers completely in
> the ring and IB tests as well and always use the ring name.
>
> But anyway for now the patch is Reviewed-by: Christian König
> <christian.koenig@amd.com>.
Thanks. I'm not sure if others have built scripts/etc on the ring
numbers so for now I was trying not to deviate too far.
umr always refers to rings by their name (e.g. in debugfs) but like
having the name in the ip_funcs tables it's just easier to debug if the
info has human readable names.
Cheers,
Tom
>
> Regards,
> Christian.
>
>> ---
>> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>> b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>> index a71521e10763..edf43769ae70 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
>> @@ -394,8 +394,9 @@ static int gmc_v9_0_late_init(void *handle)
>> unsigned vmhub = ring->funcs->vmhub;
>> ring->vm_inv_eng = vm_inv_eng[vmhub]++;
>> - dev_info(adev->dev, "ring %u uses VM inv eng %u on hub %u\n",
>> - ring->idx, ring->vm_inv_eng, ring->funcs->vmhub);
>> + dev_info(adev->dev, "ring %u(%s) uses VM inv eng %u on hub
>> %u\n",
>> + ring->idx, ring->name, ring->vm_inv_eng,
>> + ring->funcs->vmhub);
>> }
>> /* Engine 17 is used for GART flushes */
>
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-19 15:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-19 15:03 [PATCH] drm/amd/amdgpu: Print out ring name in dev_info Tom St Denis
[not found] ` <20170419150359.21305-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-04-19 15:07 ` Christian König
[not found] ` <3ed4efbc-09e3-005e-613c-5baa8a5471c1-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-19 15:13 ` Tom St Denis
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.