Commit 8ce84d43 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/powerplay: run btc before enabling all SMU features

BTC is needed before enabling all SMU features.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c3e5bb04
...@@ -804,6 +804,11 @@ static int vega20_set_allowed_featuresmask(struct pp_hwmgr *hwmgr) ...@@ -804,6 +804,11 @@ static int vega20_set_allowed_featuresmask(struct pp_hwmgr *hwmgr)
return 0; return 0;
} }
static int vega20_run_btc(struct pp_hwmgr *hwmgr)
{
return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_RunBtc);
}
static int vega20_run_btc_afll(struct pp_hwmgr *hwmgr) static int vega20_run_btc_afll(struct pp_hwmgr *hwmgr)
{ {
return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_RunAfllBtc); return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_RunAfllBtc);
...@@ -1565,6 +1570,11 @@ static int vega20_enable_dpm_tasks(struct pp_hwmgr *hwmgr) ...@@ -1565,6 +1570,11 @@ static int vega20_enable_dpm_tasks(struct pp_hwmgr *hwmgr)
"[EnableDPMTasks] Failed to initialize SMC table!", "[EnableDPMTasks] Failed to initialize SMC table!",
return result); return result);
result = vega20_run_btc(hwmgr);
PP_ASSERT_WITH_CODE(!result,
"[EnableDPMTasks] Failed to run btc!",
return result);
result = vega20_run_btc_afll(hwmgr); result = vega20_run_btc_afll(hwmgr);
PP_ASSERT_WITH_CODE(!result, PP_ASSERT_WITH_CODE(!result,
"[EnableDPMTasks] Failed to run btc afll!", "[EnableDPMTasks] Failed to run btc afll!",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment