]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/xe/guc: Print GuC error codes as hex value
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 25 Jun 2024 14:12:58 +0000 (16:12 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 26 Jun 2024 22:25:13 +0000 (18:25 -0400)
We maintain GuC error code values in hex format. Also print them
in that format for easier matching.

While at it, slightly reformat the log and add missing \n.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240625141258.1257-4-michal.wajdeczko@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c

index 91a8a969a6adb131c8699eb3ef3d1987c97415e4..873d1bcbedd7d67a154c68ad8adfa3b820104728 100644 (file)
@@ -882,7 +882,7 @@ retry_same_fence:
                goto retry;
        }
        if (g2h_fence.fail) {
-               xe_gt_err(gt, "H2G send failed, action 0x%04x, error %d, hint %u",
+               xe_gt_err(gt, "H2G request %#x failed: error %#x hint %#x\n",
                          action[0], g2h_fence.error, g2h_fence.hint);
                ret = -EIO;
        }