Revert "drm/amd/powerplay: avoid using pm_en before it is initialized"
Subsystems (2)
PATCH 1/2 Revert "drm/amd/powerplay: avoid using pm_en before it is initialized"
This reverts commit 764a21cb085b8d7d754b5d74e2ecc6adc064e3e7.
The commit being reverted changed the wrong place, it should have changed in func get_asic_baco_capability.
Signed-off-by Tiecheng Zhou <[email protected]>
--- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +1 -2
@@ -1455,8 +1455,7 @@ static int pp_get_asic_baco_state(void *handle, int *state)if (!hwmgr)return -EINVAL ; -if (!(hwmgr->not_vf && amdgpu_dpm) || - !hwmgr->hwmgr_func->get_asic_baco_state) +if (!hwmgr->pm_en || !hwmgr->hwmgr_func->get_asic_baco_state)return 0 ;mutex_lock (&hwmgr->smu_lock);
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx