[PATCH 3/3] drm/xe/guc: Print GuC error codes as hex value
Matthew Brost
matthew.brost at intel.com
Tue Jun 25 21:45:25 UTC 2024
On Tue, Jun 25, 2024 at 04:12:58PM +0200, Michal Wajdeczko wrote:
> 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 at intel.com>
> Cc: Matthew Brost <matthew.brost at intel.com>
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_ct.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
> index 91a8a969a6ad..873d1bcbedd7 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ct.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ct.c
> @@ -882,7 +882,7 @@ static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len,
> 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;
> }
> --
> 2.43.0
>
More information about the Intel-xe
mailing list