提交 dc2f8a9a 编写于 作者: R Rex Zhu 提交者: Alex Deucher

drm/amd/powerplay: delete duplicate code in smu7_hwmgr.c

Voltage Controller have been enabled (SMC message)
before ULV enablement.
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 4c696ecf
...@@ -993,13 +993,6 @@ static int smu7_start_dpm(struct pp_hwmgr *hwmgr) ...@@ -993,13 +993,6 @@ static int smu7_start_dpm(struct pp_hwmgr *hwmgr)
PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__PCIE, PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__PCIE,
SWRST_COMMAND_1, RESETLC, 0x0); SWRST_COMMAND_1, RESETLC, 0x0);
PP_ASSERT_WITH_CODE(
(0 == smum_send_msg_to_smc(hwmgr->smumgr,
PPSMC_MSG_Voltage_Cntl_Enable)),
"Failed to enable voltage DPM during DPM Start Function!",
return -EINVAL);
if (smu7_enable_sclk_mclk_dpm(hwmgr)) { if (smu7_enable_sclk_mclk_dpm(hwmgr)) {
printk(KERN_ERR "Failed to enable Sclk DPM and Mclk DPM!"); printk(KERN_ERR "Failed to enable Sclk DPM and Mclk DPM!");
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册