Commit 63123332 authored by Lang Yu's avatar Lang Yu Committed by Alex Deucher

drm/amdgpu: show explicit name instead of id in psp_cmd_submit_buf

Use amdgpu_ucode_name to show ucode name and psp_gfx_cmd_name to
show psp_gfx_cmd name in psp_cmd_submit_buf.

v2: adjust function name
Signed-off-by: default avatarLang Yu <Lang.Yu@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dc739d18
...@@ -455,10 +455,10 @@ psp_cmd_submit_buf(struct psp_context *psp, ...@@ -455,10 +455,10 @@ psp_cmd_submit_buf(struct psp_context *psp,
*/ */
if (!skip_unsupport && (psp->cmd_buf_mem->resp.status || !timeout) && !ras_intr) { if (!skip_unsupport && (psp->cmd_buf_mem->resp.status || !timeout) && !ras_intr) {
if (ucode) if (ucode)
DRM_WARN("failed to load ucode id (%d) ", DRM_WARN("failed to load ucode (%s) ",
ucode->ucode_id); amdgpu_ucode_name(ucode->ucode_id));
DRM_WARN("psp command (0x%X) failed and response status is (0x%X)\n", DRM_WARN("psp gfx command (%s) failed and response status is (0x%X)\n",
psp->cmd_buf_mem->cmd_id, psp_gfx_cmd_name(psp->cmd_buf_mem->cmd_id),
psp->cmd_buf_mem->resp.status); psp->cmd_buf_mem->resp.status);
if (!timeout) { if (!timeout) {
ret = -EINVAL; ret = -EINVAL;
......
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