Commit adefab4e authored by Aaron Liu's avatar Aaron Liu Committed by Alex Deucher

drm/amd/pm: Add waiting for response of mode-reset message for yellow carp

Remove mdelay process and use smu_cmn_send_smc_msg_with_param to send
mode-reset message to SMC.
Signed-off-by: default avatarAaron Liu <aaron.liu@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5adcd745
...@@ -298,13 +298,9 @@ static int yellow_carp_mode_reset(struct smu_context *smu, int type) ...@@ -298,13 +298,9 @@ static int yellow_carp_mode_reset(struct smu_context *smu, int type)
if (index < 0) if (index < 0)
return index == -EACCES ? 0 : index; return index == -EACCES ? 0 : index;
mutex_lock(&smu->message_lock); ret = smu_cmn_send_smc_msg_with_param(smu, (uint16_t)index, type, NULL);
if (ret)
ret = smu_cmn_send_msg_without_waiting(smu, (uint16_t)index, type); dev_err(smu->adev->dev, "Failed to mode reset!\n");
mutex_unlock(&smu->message_lock);
mdelay(10);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment