[PATCH] drm/amdgpu/uvd:Change uvd ring name convention

Christian König ckoenig.leichtzumerken at gmail.com
Wed Dec 19 09:08:28 UTC 2018


Reviewed-by: Christian König <christian.koenig at amd.com>

Am 18.12.18 um 23:06 schrieb Deucher, Alexander:
>
> Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
>
> ------------------------------------------------------------------------
> *From:* amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of 
> Zhu, James <James.Zhu at amd.com>
> *Sent:* Tuesday, December 18, 2018 4:07:21 PM
> *To:* amd-gfx at lists.freedesktop.org
> *Cc:* jzhums at gmail.com
> *Subject:* [PATCH] drm/amdgpu/uvd:Change uvd ring name convention
> Since umr tool can't handle bracket, change uvd ring name convention.
>
> Signed-off-by: James Zhu <James.Zhu at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 
> b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
> index 089645e..aef9240 100644
> --- a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
> @@ -435,7 +435,7 @@ static int uvd_v7_0_sw_init(void *handle)
>                          continue;
>                  if (!amdgpu_sriov_vf(adev)) {
>                          ring = &adev->uvd.inst[j].ring;
> -                       sprintf(ring->name, "uvd<%d>", j);
> +                       sprintf(ring->name, "uvd_%d", ring->me);
>                          r = amdgpu_ring_init(adev, ring, 512, 
> &adev->uvd.inst[j].irq, 0);
>                          if (r)
>                                  return r;
> @@ -443,7 +443,7 @@ static int uvd_v7_0_sw_init(void *handle)
>
>                  for (i = 0; i < adev->uvd.num_enc_rings; ++i) {
>                          ring = &adev->uvd.inst[j].ring_enc[i];
> -                       sprintf(ring->name, "uvd_enc%d<%d>", i, j);
> +                       sprintf(ring->name, "uvd_enc_%d.%d", ring->me, i);
>                          if (amdgpu_sriov_vf(adev)) {
>                                  ring->use_doorbell = true;
>
> -- 
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20181219/e310e71f/attachment-0001.html>


More information about the amd-gfx mailing list