diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/2586-drm-amd-powerplay-clean-up-the-residual-mutex-for-sm.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/2586-drm-amd-powerplay-clean-up-the-residual-mutex-for-sm.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/2586-drm-amd-powerplay-clean-up-the-residual-mutex-for-sm.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/2586-drm-amd-powerplay-clean-up-the-residual-mutex-for-sm.patch new file mode 100644 index 00000000..9f5415cf --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/2586-drm-amd-powerplay-clean-up-the-residual-mutex-for-sm.patch @@ -0,0 +1,32 @@ +From 164db5b31e3fcc8e0be1a22822b4803e67b9b87d Mon Sep 17 00:00:00 2001 +From: Prike Liang <Prike.Liang@amd.com> +Date: Mon, 24 Jun 2019 17:25:26 +0800 +Subject: [PATCH 2586/2940] drm/amd/powerplay:clean up the residual mutex for + smu_hw_init + +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. + +Change-Id: Id8019c01b9496c067efda4817a46983e4da3b6e4 +Signed-off-by: Prike Liang <Prike.Liang@amd.com> +Reviewed-by: Evan Quan <evan.quan@amd.com> +--- + drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +index f61ecbfec9bb..fe83c5e3111f 100644 +--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c ++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +@@ -1044,7 +1044,6 @@ static int smu_hw_init(void *handle) + return 0; + + failed: +- mutex_unlock(&smu->mutex); + return ret; + } + +-- +2.17.1 + |