Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yintian Tao and committed by
Alex Deucher
fe8a87d7 ab5999de

+3
+3
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
··· 99 99 100 100 PHM_FUNC_CHECK(hwmgr); 101 101 102 + if (!hwmgr->not_vf) 103 + return 0; 104 + 102 105 if (!smum_is_dpm_running(hwmgr)) { 103 106 pr_info("dpm has been disabled\n"); 104 107 return 0;