OSDN Git Service

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)
commit6f6a7bba696118ea440116f7c09dc93e18d8e78b
tree88d0109efc7ba135dfecf9529ccd3ab04c6f0c8e
parent3ebab625e6626a0794808a25ea2de5de1ea65646
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