Skip to content

Commit 1e4a18c

Browse files
Tiecheng Zhoualexdeucher
authored andcommitted
Revert "drm/amd/powerplay: avoid using pm_en before it is initialized"
This reverts commit c520787. The commit being reverted changed the wrong place, it should have changed in func get_asic_baco_capability. Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Tiecheng Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 87b7ebc commit 1e4a18c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/amd/powerplay/amd_powerplay.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,8 +1452,7 @@ static int pp_get_asic_baco_state(void *handle, int *state)
14521452
if (!hwmgr)
14531453
return -EINVAL;
14541454

1455-
if (!(hwmgr->not_vf && amdgpu_dpm) ||
1456-
!hwmgr->hwmgr_func->get_asic_baco_state)
1455+
if (!hwmgr->pm_en || !hwmgr->hwmgr_func->get_asic_baco_state)
14571456
return 0;
14581457

14591458
mutex_lock(&hwmgr->smu_lock);

0 commit comments

Comments
 (0)