Commit 4322e4c2 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amd/powerplay: fix smc messsage index report

We actually want to know the index of PPSMC_MSG.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1aae3164
...@@ -113,7 +113,7 @@ static int smu_v11_0_send_msg(struct smu_context *smu, uint16_t msg) ...@@ -113,7 +113,7 @@ static int smu_v11_0_send_msg(struct smu_context *smu, uint16_t msg)
ret = smu_v11_0_wait_for_response(smu); ret = smu_v11_0_wait_for_response(smu);
if (ret) if (ret)
pr_err("Failed to send message 0x%x, response 0x%x\n", msg, pr_err("Failed to send message 0x%x, response 0x%x\n", index,
ret); ret);
return ret; return ret;
...@@ -134,8 +134,8 @@ smu_v11_0_send_msg_with_param(struct smu_context *smu, uint16_t msg, ...@@ -134,8 +134,8 @@ smu_v11_0_send_msg_with_param(struct smu_context *smu, uint16_t msg,
ret = smu_v11_0_wait_for_response(smu); ret = smu_v11_0_wait_for_response(smu);
if (ret) if (ret)
pr_err("Failed to send message 0x%x, response 0x%x\n", msg, pr_err("Failed to send message 0x%x, response 0x%x, param 0x%x\n",
ret); index, ret, param);
WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_90, 0); WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_90, 0);
...@@ -145,8 +145,8 @@ smu_v11_0_send_msg_with_param(struct smu_context *smu, uint16_t msg, ...@@ -145,8 +145,8 @@ smu_v11_0_send_msg_with_param(struct smu_context *smu, uint16_t msg,
ret = smu_v11_0_wait_for_response(smu); ret = smu_v11_0_wait_for_response(smu);
if (ret) if (ret)
pr_err("Failed to send message 0x%x, response 0x%x\n", msg, pr_err("Failed to send message 0x%x, response 0x%x param 0x%x\n",
ret); index, ret, param);
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