<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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">Reviewed-by: Kevin Wang <kevin1.wang@amd.com></span><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 Le Ma <le.ma@amd.com><br>
<b>Sent:</b> Friday, August 9, 2019 7:26 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Ma, Le <Le.Ma@amd.com><br>
<b>Subject:</b> [PATCH 2/4] drm/amdgpu: increase CGCG gfx idle threshold for Arcturus</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Follow the hw spec, and no need to consider gfxoff on Arcturus<br>
<br>
Change-Id: Ib9cad79b1b9c096014447fc0a7d29cdb594e15e3<br>
Signed-off-by: Le Ma <le.ma@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 8 ++++++--<br>
 1 file changed, 6 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c<br>
index 78150ff..9b85a73 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c<br>
@@ -4677,8 +4677,12 @@ static void gfx_v9_0_update_coarse_grain_clock_gating(struct amdgpu_device *adev<br>
                 /* enable cgcg FSM(0x0000363F) */<br>
                 def = RREG32_SOC15(GC, 0, mmRLC_CGCG_CGLS_CTRL);<br>
 <br>
-               data = (0x36 << RLC_CGCG_CGLS_CTRL__CGCG_GFX_IDLE_THRESHOLD__SHIFT) |<br>
-                       RLC_CGCG_CGLS_CTRL__CGCG_EN_MASK;<br>
+               if (adev->asic_type == CHIP_ARCTURUS)<br>
+                       data = (0x2000 << RLC_CGCG_CGLS_CTRL__CGCG_GFX_IDLE_THRESHOLD__SHIFT) |<br>
+                               RLC_CGCG_CGLS_CTRL__CGCG_EN_MASK;<br>
+               else<br>
+                       data = (0x36 << RLC_CGCG_CGLS_CTRL__CGCG_GFX_IDLE_THRESHOLD__SHIFT) |<br>
+                               RLC_CGCG_CGLS_CTRL__CGCG_EN_MASK;<br>
                 if (adev->cg_flags & AMD_CG_SUPPORT_GFX_CGLS)<br>
                         data |= (0x000F << RLC_CGCG_CGLS_CTRL__CGLS_REP_COMPANSAT_DELAY__SHIFT) |<br>
                                 RLC_CGCG_CGLS_CTRL__CGLS_EN_MASK;<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></div>
</span></font></div>
</body>
</html>