<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">Series is:</p>
<p style="margin-top:0;margin-bottom:0">Acked-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 Evan Quan <evan.quan@amd.com><br>
<b>Sent:</b> Monday, January 21, 2019 4:46:07 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Quan, Evan<br>
<b>Subject:</b> [PATCH 2/2] drm/amd/powerplay: run btc before enabling all SMU features</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">BTC is needed before enabling all SMU features.<br>
<br>
Change-Id: Ic717226528f4d09a58264524b2d8e67150a35da7<br>
Signed-off-by: Evan Quan <evan.quan@amd.com><br>
---<br>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 10 ++++++++++<br>
1 file changed, 10 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
index 60a22d8da7f0..5085b3636f8e 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
@@ -804,6 +804,11 @@ static int vega20_set_allowed_featuresmask(struct pp_hwmgr *hwmgr)<br>
return 0;<br>
}<br>
<br>
+static int vega20_run_btc(struct pp_hwmgr *hwmgr)<br>
+{<br>
+ return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_RunBtc);<br>
+}<br>
+<br>
static int vega20_run_btc_afll(struct pp_hwmgr *hwmgr)<br>
{<br>
return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_RunAfllBtc);<br>
@@ -1565,6 +1570,11 @@ static int vega20_enable_dpm_tasks(struct pp_hwmgr *hwmgr)<br>
"[EnableDPMTasks] Failed to initialize SMC table!",<br>
return result);<br>
<br>
+ result = vega20_run_btc(hwmgr);<br>
+ PP_ASSERT_WITH_CODE(!result,<br>
+ "[EnableDPMTasks] Failed to run btc!",<br>
+ return result);<br>
+<br>
result = vega20_run_btc_afll(hwmgr);<br>
PP_ASSERT_WITH_CODE(!result,<br>
"[EnableDPMTasks] Failed to run btc afll!",<br>
-- <br>
2.20.1<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>