Skip to contentSkip to conversation

drm/amd/powerplay: fix deadlock around smu_handle_task

PATCH New Evan Quan 1 participant 1 message Jul 12, 2019

Subsystems (2)
lore
Share & tools
lore

Evan Quan

author
#0 lore raw

PATCH 1/1 drm/amd/powerplay: fix deadlock around smu_handle_task

As the lock was already held on the entrance to smu_handle_task.

Change-Id I5388aa917ef0e330974e26c59db42d1354b6a865
---
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +0 -2
index c60899de88bb..2bca6f133415 100644
@@ -1311,10 +1311,8 @@ smu_v11_0_display_clock_voltage_request(struct smu_context *smu,
 		if (ret)
 			goto failed;
 
-		mutex_lock(&smu->mutex);
 		ret = smu_send_smc_msg_with_param(smu, SMU_MSG_SetHardMinByFreq,
 			(smu_clk_get_index(smu, clk_select) << 16) | clk_freq);
-		mutex_unlock(&smu->mutex);
 	}
 
 failed:
Signature · 6 lines
2.21.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx