]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: Print GuC queue submission state on engine reset
authorMatthew Brost <matthew.brost@intel.com>
Thu, 18 Dec 2025 22:45:46 +0000 (14:45 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 19 Dec 2025 19:45:29 +0000 (11:45 -0800)
Print the GuC queue submission state when an engine reset occurs, as
this provides clues about the cause of the reset.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/20251218224546.4057424-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c

index 259c4e1dcae7f1aacea492ead08c46fdd971c710..0b590271c32688aafa16db1b9ffe3cd09c790213 100644 (file)
@@ -3080,8 +3080,9 @@ int xe_guc_exec_queue_reset_handler(struct xe_guc *guc, u32 *msg, u32 len)
        if (unlikely(!q))
                return -EPROTO;
 
-       xe_gt_info(gt, "Engine reset: engine_class=%s, logical_mask: 0x%x, guc_id=%d",
-                  xe_hw_engine_class_to_str(q->class), q->logical_mask, guc_id);
+       xe_gt_info(gt, "Engine reset: engine_class=%s, logical_mask: 0x%x, guc_id=%d, state=0x%0x",
+                  xe_hw_engine_class_to_str(q->class), q->logical_mask, guc_id,
+                  atomic_read(&q->guc->state));
 
        trace_xe_exec_queue_reset(q);