* [PATCH v2] drm/amd/powerplay:clean up the residual mutex for smu_hw_init
@ 2019-06-25 7:43 Prike Liang
[not found] ` <1561448595-32319-1-git-send-email-Prike.Liang-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Prike Liang @ 2019-06-25 7:43 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Cc: Prike Liang, Evan.Quan-5C7GfCeVMHo, Ray.Huang-5C7GfCeVMHo
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>
---
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 f61ecbf..fe83c5e 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.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] drm/amd/powerplay:clean up the residual mutex for smu_hw_init
[not found] ` <1561448595-32319-1-git-send-email-Prike.Liang-5C7GfCeVMHo@public.gmane.org>
@ 2019-06-26 11:40 ` Kevin Wang
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wang @ 2019-06-26 11:40 UTC (permalink / raw)
To: Liang, Prike, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Cc: Quan, Evan, Huang, Ray
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
On 6/25/19 3:43 PM, Prike Liang wrote:
> 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>
> ---
> 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 f61ecbf..fe83c5e 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;
> }
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-26 11:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 7:43 [PATCH v2] drm/amd/powerplay:clean up the residual mutex for smu_hw_init Prike Liang
[not found] ` <1561448595-32319-1-git-send-email-Prike.Liang-5C7GfCeVMHo@public.gmane.org>
2019-06-26 11:40 ` Kevin Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.