drm/amd/powerplay: fix deadlock around smu_handle_task V2
authorEvan Quan <evan.quan@amd.com>
Fri, 12 Jul 2019 05:18:16 +0000 (13:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jul 2019 18:34:30 +0000 (13:34 -0500)
commitf68ccf43acbc31751cff48d0ac1e5ff50d91a451
tree075b5aa79edae8ecfa28a896724193d5c99ab9ee
parent7ef65bbd01fd59b749e8bd5b19d0c01e315fef8d
drm/amd/powerplay: fix deadlock around smu_handle_task V2

As the lock was already held on the entrance to smu_handle_task.

- V2: lock in small granularity

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c