amdgpu/pm: add extra info to SMU msg pre-check failed message
authorDarren Powell <darren.powell@amd.com>
Fri, 9 Apr 2021 22:28:24 +0000 (18:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:35:49 +0000 (23:35 -0400)
Insert the value of the response to error message emitted when the
SMU msg pre-check failes

Signed-off-by: Darren Powell <darren.powell@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c

index dc7d2e71aa6fd9265a577287836fc172c4d6a002..5d1743f3321efcfcb841377b72a46bb181b124c8 100644 (file)
@@ -104,8 +104,8 @@ int smu_cmn_send_msg_without_waiting(struct smu_context *smu,
 
        ret = smu_cmn_wait_for_response(smu);
        if (ret != 0x1) {
-               dev_err(adev->dev, "Msg issuing pre-check failed and "
-                      "SMU may be not in the right state!\n");
+               dev_err(adev->dev, "Msg issuing pre-check failed(0x%x) and "
+                      "SMU may be not in the right state!\n", ret);
                if (ret != -ETIME)
                        ret = -EIO;
                return ret;