From: Lang Yu <[email protected]>

Use amdgpu_ucode_show to show ucode name and psp_gfx_cmd_show to
show psp_gfx_cmd name in psp_cmd_submit_buf.

Signed-off-by: Lang Yu <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index ff26185b1485..76faf10bcd54 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -450,10 +450,10 @@ psp_cmd_submit_buf(struct psp_context *psp,
         */
        if (!skip_unsupport && (psp->cmd_buf_mem->resp.status || !timeout) && 
!ras_intr) {
                if (ucode)
-                       DRM_WARN("failed to load ucode id (%d) ",
-                                 ucode->ucode_id);
-               DRM_WARN("psp command (0x%X) failed and response status is 
(0x%X)\n",
-                        psp->cmd_buf_mem->cmd_id,
+                       DRM_WARN("failed to load ucode (%s) ",
+                                 amdgpu_ucode_show(ucode->ucode_id));
+               DRM_WARN("psp gfx command (%s) failed and response status is 
(0x%X)\n",
+                        psp_gfx_cmd_show(psp->cmd_buf_mem->cmd_id),
                         psp->cmd_buf_mem->resp.status);
                if (!timeout) {
                        mutex_unlock(&psp->mutex);
-- 
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to