drm/amd/powerplay: avoid deadlock on Vega20 swSMU routine
authorEvan Quan <evan.quan@amd.com>
Mon, 30 Dec 2019 03:27:32 +0000 (11:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:57:54 +0000 (11:57 -0500)
The lock required was already hold by its parent API.

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

index dcc4ccd..8269441 100644 (file)
@@ -2279,13 +2279,9 @@ int smu_set_active_display_count(struct smu_context *smu, uint32_t count)
 {
        int ret = 0;
 
-       mutex_lock(&smu->mutex);
-
        if (smu->ppt_funcs->set_active_display_count)
                ret = smu->ppt_funcs->set_active_display_count(smu, count);
 
-       mutex_unlock(&smu->mutex);
-
        return ret;
 }