Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/xe/trace: improve xe_sched_msg trace
@ 2024-11-22 16:19 Matthew Auld
  2024-11-22 16:19 ` [PATCH 2/3] drm/xe/guc_submit: fix race around pending_disable Matthew Auld
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Matthew Auld @ 2024-11-22 16:19 UTC (permalink / raw)
  To: intel-xe; +Cc: Matthew Brost

Also include the gt_id, that way we can ignore duplicate guc_id across
different GTs when applying some filtering.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
---
 drivers/gpu/drm/xe/xe_trace.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_trace.h b/drivers/gpu/drm/xe/xe_trace.h
index de682978c4bf..d5281de04d54 100644
--- a/drivers/gpu/drm/xe/xe_trace.h
+++ b/drivers/gpu/drm/xe/xe_trace.h
@@ -284,6 +284,7 @@ DECLARE_EVENT_CLASS(xe_sched_msg,
 			     __string(dev, __dev_name_eq(((struct xe_exec_queue *)msg->private_data)))
 			     __field(u32, opcode)
 			     __field(u16, guc_id)
+			     __field(u8, gt_id)
 			     ),
 
 		    TP_fast_assign(
@@ -291,9 +292,11 @@ DECLARE_EVENT_CLASS(xe_sched_msg,
 			   __entry->opcode = msg->opcode;
 			   __entry->guc_id =
 			   ((struct xe_exec_queue *)msg->private_data)->guc->id;
+			   __entry->gt_id =
+			   ((struct xe_exec_queue *)msg->private_data)->gt->info.id;
 			   ),
 
-		    TP_printk("dev=%s, guc_id=%d, opcode=%u", __get_str(dev), __entry->guc_id,
+		    TP_printk("dev=%s, gt=%u guc_id=%d, opcode=%u", __get_str(dev), __entry->gt_id, __entry->guc_id,
 			      __entry->opcode)
 );
 
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-11-25 23:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 16:19 [PATCH 1/3] drm/xe/trace: improve xe_sched_msg trace Matthew Auld
2024-11-22 16:19 ` [PATCH 2/3] drm/xe/guc_submit: fix race around pending_disable Matthew Auld
2024-11-23  0:23   ` Matthew Brost
2024-11-22 16:19 ` [PATCH 3/3] drm/xe/guc_submit: fix race around suspend_pending Matthew Auld
2024-11-25 23:42   ` Matthew Brost
2024-11-22 16:27 ` ✓ CI.Patch_applied: success for series starting with [1/3] drm/xe/trace: improve xe_sched_msg trace Patchwork
2024-11-22 16:28 ` ✗ CI.checkpatch: warning " Patchwork
2024-11-22 16:29 ` ✓ CI.KUnit: success " Patchwork
2024-11-22 16:47 ` ✓ CI.Build: " Patchwork
2024-11-22 16:49 ` ✓ CI.Hooks: " Patchwork
2024-11-22 16:51 ` ✓ CI.checksparse: " Patchwork
2024-11-22 17:15 ` ✓ Xe.CI.BAT: " Patchwork
2024-11-22 20:46 ` [PATCH 1/3] " Lucas De Marchi
2024-11-23 18:56 ` ✗ Xe.CI.Full: failure for series starting with [1/3] " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox