AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amd/powerplay: remove mutex lock for smu_handle_task when smu late init
@ 2019-07-18 10:02 Chengming Gui
       [not found] ` <1563444138-23948-1-git-send-email-Jack.Gui-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Chengming Gui @ 2019-07-18 10:02 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Chengming Gui

remove mutex lock when smu late init to call smu_handle_task

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 7d1bd09..122985c 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -569,11 +569,9 @@ static int smu_late_init(void *handle)
 
 	if (!smu->pm_enabled)
 		return 0;
-	mutex_lock(&smu->mutex);
 	smu_handle_task(&adev->smu,
 			smu->smu_dpm.dpm_level,
 			AMD_PP_TASK_COMPLETE_INIT);
-	mutex_unlock(&smu->mutex);
 
 	return 0;
 }
-- 
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] 6+ messages in thread

end of thread, other threads:[~2019-07-19  2:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-18 10:02 [PATCH 1/3] drm/amd/powerplay: remove mutex lock for smu_handle_task when smu late init Chengming Gui
     [not found] ` <1563444138-23948-1-git-send-email-Jack.Gui-5C7GfCeVMHo@public.gmane.org>
2019-07-18 10:02   ` [PATCH 2/3] drm/amd/powerplay: force sclk limit for peak profile Chengming Gui
     [not found]     ` <1563444138-23948-2-git-send-email-Jack.Gui-5C7GfCeVMHo@public.gmane.org>
2019-07-18 10:32       ` Quan, Evan
     [not found]         ` <MN2PR12MB3344FFA5D4975E0D66F98301E4C80-rweVpJHSKToDMgCC8P//OwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-07-19  2:14           ` Gui, Jack
2019-07-18 10:02   ` [PATCH 3/3] drm/amd/powerplay: add mutex lock to protect dpm context resource Chengming Gui
2019-07-18 10:35   ` [PATCH 1/3] drm/amd/powerplay: remove mutex lock for smu_handle_task when smu late init Quan, Evan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox