drm/amd/powerplay: skip disable dynamic state management
Under sriov, the disable operation is no allowed. Signed-off-by: Yintian Tao <yttao@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ab5999dea0
commit
fe8a87d71f
|
|
@ -99,6 +99,9 @@ int phm_disable_dynamic_state_management(struct pp_hwmgr *hwmgr)
|
|||
|
||||
PHM_FUNC_CHECK(hwmgr);
|
||||
|
||||
if (!hwmgr->not_vf)
|
||||
return 0;
|
||||
|
||||
if (!smum_is_dpm_running(hwmgr)) {
|
||||
pr_info("dpm has been disabled\n");
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue