<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Is this really a patch for <a href="http://kernel.org">kernel.org</a>? Seems like a hack for Stadia or something. (And the patch description is not very good...)<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This should really be made into a generic solution.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">//Ernst<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tis 27 okt. 2020 kl 07:38 skrev Li, Xin (Justin) <<a href="mailto:Xin2.Li@amd.com">Xin2.Li@amd.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div style="overflow-wrap: break-word;" lang="EN-US">
<p style="font-family:Arial;font-size:11pt;color:rgb(0,120,215);margin:5pt" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div class="gmail-m_-4730461119559906375WordSection1">
<p class="MsoNormal"><span style="font-family:"-webkit-standard",serif;color:black">Fix performace drop while streaming Doom<br>
<br>
Signed-off-by: Li, Xin (Justin) <</span><a href="mailto:Xin2.Li@amd.com" target="_blank"><span style="font-family:"-webkit-standard",serif;color:rgb(0,0,100)">Xin2.Li@amd.com</span></a><span style="font-family:"-webkit-standard",serif;color:black">><br>
Signed-off-by: Zhao, Jiange <</span><a href="mailto:Jiange.Zhao@amd.com" target="_blank"><span style="font-family:"-webkit-standard",serif;color:rgb(0,0,100)">Jiange.Zhao@amd.com</span></a><span style="font-family:"-webkit-standard",serif;color:black">><br>
---<br>
 drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 14 ++++++++++++++<br>
 1 file changed, 14 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c<br>
index eab9768029c1..5287ac4e8364 100644<br>
--- a/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c<br>
+++ b/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c<br>
@@ -125,6 +125,20 @@ static int pp_hw_init(void *handle)<br>
 <br>
         ret = hwmgr_hw_init(hwmgr);<br>
 <br>
+       if (adev->pdev->device == 0x6860 && adev->pdev->revision == 0x07) {<br>
+               long param[5];<br>
+<br>
+               param[0] = 5;  // busy_set_point<br>
+               param[1] = 60; // FPS<br>
+               param[2] = 0;  // use_rlc_busy<br>
+               param[3] = 3;  // min_active_level<br>
+               param[4] = PP_SMC_POWER_PROFILE_CUSTOM;<br>
+<br>
+               mutex_lock(&hwmgr->smu_lock);<br>
+               ret = hwmgr->hwmgr_func->set_power_profile_mode(hwmgr, param, 4);<br>
+               mutex_unlock(&hwmgr->smu_lock);<br>
+       }<br>
+<br>
         if (ret)<br>
                 pr_err("powerplay hw init failed\n");<br>
 <br>
--<span class="gmail-m_-4730461119559906375apple-converted-space"> </span><br>
2.24.3 (Apple Git-128)</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>

_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org" target="_blank">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</blockquote></div></div>