From: Evan Quan Date: Mon, 30 Dec 2019 03:27:32 +0000 (+0800) Subject: drm/amd/powerplay: avoid deadlock on Vega20 swSMU routine X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e42877b8ba876cf43a0f1261963d66ef11e3b779;p=openwrt%2Fstaging%2Fblogic.git drm/amd/powerplay: avoid deadlock on Vega20 swSMU routine The lock required was already hold by its parent API. Signed-off-by: Evan Quan Reviewed-by: Feifei Xu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index dcc4ccd5c44e..826944196911 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -2279,13 +2279,9 @@ int smu_set_active_display_count(struct smu_context *smu, uint32_t count) { int ret = 0; - mutex_lock(&smu->mutex); - if (smu->ppt_funcs->set_active_display_count) ret = smu->ppt_funcs->set_active_display_count(smu, count); - mutex_unlock(&smu->mutex); - return ret; }