]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/powerplay:clean up the residual mutex for smu_hw_init
authorPrike Liang <Prike.Liang@amd.com>
Mon, 24 Jun 2019 09:25:26 +0000 (17:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:23:51 +0000 (13:23 -0500)
The mutex for procting SMU during hw_init was removed as system
will be deadlock when smu_populate_umd_state_clk try get SMU mutex.
Therefore need remove the residual mutex from failed path.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 29fb1965686afa6348be15f11c302ae3ab4a44c5..9559127dd0ece31d5d905bfcd2f7ca32a8b02544 100644 (file)
@@ -1044,7 +1044,6 @@ static int smu_hw_init(void *handle)
        return 0;
 
 failed:
-       mutex_unlock(&smu->mutex);
        return ret;
 }