<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">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 Yintian Tao <yttao@amd.com><br>
<b>Sent:</b> Sunday, August 19, 2018 11:39:53 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Tao, Yintian<br>
<b>Subject:</b> [PATCH] drm/powerplay: enable dpm under pass-through</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Repeat enable dpm under pass-through because there is no actually<br>
hardware-fini and real power-off when guest vm shutdown or reboot.<br>
Otherwise, under pass-through it will be failed to populate populate<br>
and upload SCLK MCLK DPM levels due to zero of pcie_speed_table.count.<br>
<br>
Change-Id: I7cbc55c650867d00e19241ceea5d98f78b5ac3f5<br>
Signed-off-by: Yintian Tao <yttao@amd.com><br>
---<br>
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 4 +++-<br>
1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c<br>
index 53207e7..6ef3c87 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c<br>
@@ -75,10 +75,12 @@ int phm_set_power_state(struct pp_hwmgr *hwmgr,<br>
<br>
int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)<br>
{<br>
+ struct amdgpu_device *adev = NULL;<br>
int ret = -EINVAL;;<br>
PHM_FUNC_CHECK(hwmgr);<br>
+ adev = hwmgr->adev;<br>
<br>
- if (smum_is_dpm_running(hwmgr)) {<br>
+ if (smum_is_dpm_running(hwmgr) && !amdgpu_passthrough(adev)) {<br>
pr_info("dpm has been enabled\n");<br>
return 0;<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>