<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">
<p style="font-family:Arial;font-size:11pt;color:#0078D7;margin:5pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></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 Hawking Zhang <Hawking.Zhang@amd.com><br>
<b>Sent:</b> Tuesday, December 22, 2020 6:10 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Sierra Guiza, Alejandro (Alex) <Alex.Sierra@amd.com>; Jian, Jane <Jane.Jian@amd.com><br>
<b>Cc:</b> Zhang, Hawking <Hawking.Zhang@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: drop psp ih programming for sriov guest on navi</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">the psp access ih path is not needed in navi<br>
<br>
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com><br>
Change-Id: Ib68bfb1b13e1cec03ec27bc9a867e2b37fc2fc8a<br>
---<br>
 drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 18 ++----------------<br>
 1 file changed, 2 insertions(+), 16 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c<br>
index 060357625504..f4e4040bbd25 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c<br>
@@ -151,14 +151,7 @@ static int navi10_ih_toggle_ring_interrupts(struct amdgpu_device *adev,<br>
         /* enable_intr field is only valid in ring0 */<br>
         if (ih == &adev->irq.ih)<br>
                 tmp = REG_SET_FIELD(tmp, IH_RB_CNTL, ENABLE_INTR, (enable ? 1 : 0));<br>
-       if (amdgpu_sriov_vf(adev)) {<br>
-               if (psp_reg_program(&adev->psp, ih_regs->psp_reg_id, tmp)) {<br>
-                       dev_err(adev->dev, "PSP program IH_RB_CNTL failed!\n");<br>
-                       return -ETIMEDOUT;<br>
-               }<br>
-       } else {<br>
-               WREG32(ih_regs->ih_rb_cntl, tmp);<br>
-       }<br>
+       WREG32(ih_regs->ih_rb_cntl, tmp);<br>
 <br>
         if (enable) {<br>
                 ih->enabled = true;<br>
@@ -268,14 +261,7 @@ static int navi10_ih_enable_ring(struct amdgpu_device *adev,<br>
                 tmp = REG_SET_FIELD(tmp, IH_RB_CNTL, WPTR_OVERFLOW_ENABLE, 0);<br>
                 tmp = REG_SET_FIELD(tmp, IH_RB_CNTL, RB_FULL_DRAIN_ENABLE, 1);<br>
         }<br>
-       if (amdgpu_sriov_vf(adev)) {<br>
-               if (psp_reg_program(&adev->psp, ih_regs->psp_reg_id, tmp)) {<br>
-                       dev_err(adev->dev, "PSP program IH_RB_CNTL failed!\n");<br>
-                       return -ETIMEDOUT;<br>
-               }<br>
-       } else {<br>
-               WREG32(ih_regs->ih_rb_cntl, tmp);<br>
-       }<br>
+       WREG32(ih_regs->ih_rb_cntl, tmp);<br>
 <br>
         if (ih == &adev->irq.ih) {<br>
                 /* set the ih ring 0 writeback address whether it's enabled or not */<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7C5cf4dad458df44a5212e08d8a66a3f36%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637442322548665184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=sadpoKT2ULD1eTcp8%2Bd3UCklVDIEji07YXGokQAlkaM%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7C5cf4dad458df44a5212e08d8a66a3f36%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637442322548665184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=sadpoKT2ULD1eTcp8%2Bd3UCklVDIEji07YXGokQAlkaM%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>