<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<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 <alexander.deucher@amd.com><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Zhu, James <James.Zhu@amd.com><br>
<b>Sent:</b> Tuesday, December 18, 2018 4:07:21 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> jzhums@gmail.com<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 <James.Zhu@amd.com><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>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</body>
</html>