diff options
author | Evan Quan <evan.quan@amd.com> | 2019-01-21 01:39:26 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-25 16:15:35 -0500 |
commit | 8ce84d4341e3abf8bc651c74f6312153c353bca8 (patch) | |
tree | 007c270daeb182fe02d71776e3d317511b64f25d /drivers/gpu/drm | |
parent | c3e5bb04cc2aa6c9caeac626948619233b2d89f4 (diff) |
drm/amd/powerplay: run btc before enabling all SMU features
BTC is needed before enabling all SMU features.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c index 60a22d8da7f0..5085b3636f8e 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | |||
@@ -804,6 +804,11 @@ static int vega20_set_allowed_featuresmask(struct pp_hwmgr *hwmgr) | |||
804 | return 0; | 804 | return 0; |
805 | } | 805 | } |
806 | 806 | ||
807 | static int vega20_run_btc(struct pp_hwmgr *hwmgr) | ||
808 | { | ||
809 | return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_RunBtc); | ||
810 | } | ||
811 | |||
807 | static int vega20_run_btc_afll(struct pp_hwmgr *hwmgr) | 812 | static int vega20_run_btc_afll(struct pp_hwmgr *hwmgr) |
808 | { | 813 | { |
809 | return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_RunAfllBtc); | 814 | 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 | "[EnableDPMTasks] Failed to initialize SMC table!", | 1570 | "[EnableDPMTasks] Failed to initialize SMC table!", |
1566 | return result); | 1571 | return result); |
1567 | 1572 | ||
1573 | result = vega20_run_btc(hwmgr); | ||
1574 | PP_ASSERT_WITH_CODE(!result, | ||
1575 | "[EnableDPMTasks] Failed to run btc!", | ||
1576 | return result); | ||
1577 | |||
1568 | result = vega20_run_btc_afll(hwmgr); | 1578 | result = vega20_run_btc_afll(hwmgr); |
1569 | PP_ASSERT_WITH_CODE(!result, | 1579 | PP_ASSERT_WITH_CODE(!result, |
1570 | "[EnableDPMTasks] Failed to run btc afll!", | 1580 | "[EnableDPMTasks] Failed to run btc afll!", |