Commit e484de44 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amd/pm: print the timeout of smc message

This patch is to help firmware designer to know the smc message timeout
status.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarKevin Wang <kevin1.wang@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2b3a1f51
...@@ -142,10 +142,15 @@ int smu_cmn_send_smc_msg_with_param(struct smu_context *smu, ...@@ -142,10 +142,15 @@ int smu_cmn_send_smc_msg_with_param(struct smu_context *smu,
ret = smu_cmn_wait_for_response(smu); ret = smu_cmn_wait_for_response(smu);
if (ret != 0x1) { if (ret != 0x1) {
dev_err(adev->dev, "failed send message: %10s (%d) \tparam: 0x%08x response %#x\n", if (ret == -ETIME) {
smu_get_message_name(smu, msg), index, param, ret); dev_err(adev->dev, "message: %15s (%d) \tparam: 0x%08x is timeout (no response)\n",
if (ret != -ETIME) smu_get_message_name(smu, msg), index, param);
} else {
dev_err(adev->dev, "failed send message: %15s (%d) \tparam: 0x%08x response %#x\n",
smu_get_message_name(smu, msg), index, param,
ret);
ret = -EIO; ret = -EIO;
}
goto out; goto out;
} }
......
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