<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Reviewed-by: Christian König
      <a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com"><christian.koenig@amd.com></a><br>
      <br>
      Am 18.12.18 um 23:06 schrieb Deucher, Alexander:<br>
    </div>
    <blockquote type="cite"
cite="mid:BN6PR12MB1809289C85582D10810A491CF7BD0@BN6PR12MB1809.namprd12.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
        dir="ltr">
        <p style="margin-top:0;margin-bottom:0">Reviewed-by: Alex
          Deucher <a class="moz-txt-link-rfc2396E" href="mailto:alexander.deucher@amd.com"><alexander.deucher@amd.com></a><br>
        </p>
      </div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b>
          amd-gfx <a class="moz-txt-link-rfc2396E" href="mailto:amd-gfx-bounces@lists.freedesktop.org"><amd-gfx-bounces@lists.freedesktop.org></a> on
          behalf of Zhu, James <a class="moz-txt-link-rfc2396E" href="mailto:James.Zhu@amd.com"><James.Zhu@amd.com></a><br>
          <b>Sent:</b> Tuesday, December 18, 2018 4:07:21 PM<br>
          <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
          <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:jzhums@gmail.com">jzhums@gmail.com</a><br>
          <b>Subject:</b> [PATCH] drm/amdgpu/uvd:Change uvd ring name
          convention</font>
        <div> </div>
      </div>
      <div class="BodyFragment"><font size="2"><span
            style="font-size:11pt;">
            <div class="PlainText">Since umr tool can't handle bracket,
              change uvd ring name convention.<br>
              <br>
              Signed-off-by: James Zhu <a class="moz-txt-link-rfc2396E" href="mailto:James.Zhu@amd.com"><James.Zhu@amd.com></a><br>
              ---<br>
               drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 4 ++--<br>
               1 file changed, 2 insertions(+), 2 deletions(-)<br>
              <br>
              diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
              b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c<br>
              index 089645e..aef9240 100644<br>
              --- a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c<br>
              +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c<br>
              @@ -435,7 +435,7 @@ static int uvd_v7_0_sw_init(void
              *handle)<br>
                                       continue;<br>
                               if (!amdgpu_sriov_vf(adev)) {<br>
                                       ring =
              &adev->uvd.inst[j].ring;<br>
              -                       sprintf(ring->name,
              "uvd<%d>", j);<br>
              +                       sprintf(ring->name, "uvd_%d",
              ring->me);<br>
                                       r = amdgpu_ring_init(adev, ring,
              512, &adev->uvd.inst[j].irq, 0);<br>
                                       if (r)<br>
                                               return r;<br>
              @@ -443,7 +443,7 @@ static int uvd_v7_0_sw_init(void
              *handle)<br>
               <br>
                               for (i = 0; i <
              adev->uvd.num_enc_rings; ++i) {<br>
                                       ring =
              &adev->uvd.inst[j].ring_enc[i];<br>
              -                       sprintf(ring->name,
              "uvd_enc%d<%d>", i, j);<br>
              +                       sprintf(ring->name,
              "uvd_enc_%d.%d", ring->me, i);<br>
                                       if (amdgpu_sriov_vf(adev)) {<br>
                                               ring->use_doorbell =
              true;<br>
               <br>
              -- <br>
              2.7.4<br>
              <br>
              _______________________________________________<br>
              amd-gfx mailing list<br>
              <a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
              <a
                href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx"
                moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
            </div>
          </span></font></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
amd-gfx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>