]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amdgpu: add command id in psp response failure message
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 23 Sep 2019 12:41:04 +0000 (20:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:00 +0000 (09:11 -0500)
For better clarification of issue.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index af726bc6980df4c510b1baacfc1e0fb23a815174..920910fb83be3e13d9962c178c6ba4dd5039b69e 100644 (file)
@@ -170,8 +170,9 @@ psp_cmd_submit_buf(struct psp_context *psp,
                if (ucode)
                        DRM_WARN("failed to load ucode id (%d) ",
                                  ucode->ucode_id);
-               DRM_WARN("psp command failed and response status is (0x%X)\n",
-                         psp->cmd_buf_mem->resp.status & GFX_CMD_STATUS_MASK);
+               DRM_WARN("psp command (0x%X) failed and response status is (0x%X)\n",
+                        psp->cmd_buf_mem->cmd_id,
+                        psp->cmd_buf_mem->resp.status & GFX_CMD_STATUS_MASK);
                if (!timeout) {
                        mutex_unlock(&psp->mutex);
                        return -EINVAL;