Commit fe8a87d7 authored by Yintian Tao's avatar Yintian Tao Committed by Alex Deucher

drm/amd/powerplay: skip disable dynamic state management

Under sriov, the disable operation is no allowed.
Signed-off-by: default avatarYintian Tao <yttao@amd.com>
Reviewed-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ab5999de
...@@ -99,6 +99,9 @@ int phm_disable_dynamic_state_management(struct pp_hwmgr *hwmgr) ...@@ -99,6 +99,9 @@ int phm_disable_dynamic_state_management(struct pp_hwmgr *hwmgr)
PHM_FUNC_CHECK(hwmgr); PHM_FUNC_CHECK(hwmgr);
if (!hwmgr->not_vf)
return 0;
if (!smum_is_dpm_running(hwmgr)) { if (!smum_is_dpm_running(hwmgr)) {
pr_info("dpm has been disabled\n"); pr_info("dpm has been disabled\n");
return 0; return 0;
......
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