drm/amd/powerplay: skip disable dynamic state management
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: skip disable dynamic state management
Under sriov, the disable operation is no allowed.
Signed-off-by Yintian Tao <[email protected]>
--- drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +3 -0
@@ -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 ;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Reviewed-by Kenneth Feng <[email protected]>
-----Original Message-----
From: Yintian Tao <[email protected]>
Sent: Wednesday, December 18, 2019 6:15 PM
To: Feng, Kenneth <[email protected]>
Cc: [email protected]; Tao, Yintian <[email protected]>
Subject: [PATCH] drm/amd/powerplay: skip disable dynamic state management
Under sriov, the disable operation is no allowed.
Signed-off-by Yintian Tao <[email protected]>
--- drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +3 -0
@@ -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 ;
Signature · 5 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx