]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd68478fd569b51f36a44724492e9222e09d61dbb
tree4545c135e1190b66248b89e290652a605e9140bc
parent237c3194a6c96382f0565ac3a5538a4ca99b4f54
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