]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix deadlock issue for smu_force_performance_level
authorKevin Wang <kevin1.wang@amd.com>
Wed, 15 May 2019 07:59:38 +0000 (15:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:32 +0000 (18:59 -0500)
commit2d87e521175dfdc0775bdef852fa64a38d1f3736
tree88d0109efc7ba135dfecf9529ccd3ab04c6f0c8e
parent1bec68364bc8c3ba3e0f8a9cd89fb107e1eb1e84
drm/amd/powerplay: fix deadlock issue for smu_force_performance_level

the smu->mutex is internal lock resource in sw-smu, some functions will use
it at the same time, so it maybe will cause deadlock issue.
this patch fix this issue in smu_force_performance_level function.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c