[PATCH 2/2] drm/amd/powerplay: fix performance drop on Vega10

Eric Huang JinHuiEric.Huang at amd.com
Thu Oct 19 19:14:59 UTC 2017


Setting package power PID to 1 fixes performance drop caused by
updated SMU FW, before DPM is enabled.

Signed-off-by: Eric Huang <JinHuiEric.Huang at amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 0519338..2daf234 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -2879,6 +2879,12 @@ static int vega10_enable_dpm_tasks(struct pp_hwmgr *hwmgr)
 			"DPM is already running right , skipping re-enablement!",
 			return 0);
 
+	tmp_result = smum_send_msg_to_smc_with_parameter(hwmgr,
+			PPSMC_MSG_UpdatePkgPwrPidAlpha, 1);
+	PP_ASSERT_WITH_CODE(!tmp_result,
+			"Failed to set package power PID!",
+			return tmp_result);
+
 	tmp_result = vega10_construct_voltage_tables(hwmgr);
 	PP_ASSERT_WITH_CODE(!tmp_result,
 			"Failed to contruct voltage tables!",
-- 
2.7.4



More information about the amd-gfx mailing list