drm/amdgpu: by default output PSP ret status in event of cmd failure
authorJohn Clements <john.clements@amd.com>
Thu, 26 Dec 2019 03:13:53 +0000 (11:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:57:01 +0000 (11:57 -0500)
update log level from DRM_DEBUG_DRIVER to DRM_WARN

Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 56540885f5c783ec0dddbe1f2fc6f6b376cd6d7a..9e12ed5887c87ff8a424ebfa3bbbf3f9a0731884 100644 (file)
@@ -191,9 +191,9 @@ psp_cmd_submit_buf(struct psp_context *psp,
                if (ucode)
                        DRM_WARN("failed to load ucode id (%d) ",
                                  ucode->ucode_id);
-               DRM_DEBUG_DRIVER("psp command (0x%X) failed and response status is (0x%X)\n",
+               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);
+                        psp->cmd_buf_mem->resp.status);
                if (!timeout) {
                        mutex_unlock(&psp->mutex);
                        return -EINVAL;