drm/amd/powerplay: fix deadlock on setting power_dpm_force_performance_level
authorEvan Quan <evan.quan@amd.com>
Wed, 6 Nov 2019 04:40:12 +0000 (12:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Nov 2019 21:27:48 +0000 (16:27 -0500)
commitcf3fde893d3a86fe5275061fbf80d67271d2d0cf
tree4545c135e1190b66248b89e290652a605e9140bc
parent60599a03638a611574a177fa6e6d7394abad0d7f
drm/amd/powerplay: fix deadlock on setting power_dpm_force_performance_level

smu_enable_umd_pstate() will try to get the smu->mutex which was already
hold by its parent API smu_force_performance_level() on the call path.
Thus deadlock happens.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c