[PATCH 05/66] lib/xe_eudebug: Add attention events support
Christoph Manszewski
christoph.manszewski at intel.com
Mon Jul 29 16:00:58 UTC 2024
From: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Respect attention events in eu debugger library.
Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Cc: Christoph Manszewski <christoph.manszewski at intel.com>
---
lib/xe/xe_eudebug.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lib/xe/xe_eudebug.c b/lib/xe/xe_eudebug.c
index ca030704b..801317a23 100644
--- a/lib/xe/xe_eudebug.c
+++ b/lib/xe/xe_eudebug.c
@@ -54,6 +54,8 @@ static const char *type_to_str(unsigned int type)
return "vm";
case DRM_XE_EUDEBUG_EVENT_EXEC_QUEUE:
return "exec_queue";
+ case DRM_XE_EUDEBUG_EVENT_EU_ATTENTION:
+ return "attention";
}
return "UNKNOWN";
@@ -105,6 +107,15 @@ static const char *event_members_to_str(struct drm_xe_eudebug_event *e, char *b)
ee->exec_queue_handle, ee->engine_class, ee->width);
break;
}
+ case DRM_XE_EUDEBUG_EVENT_EU_ATTENTION: {
+ struct drm_xe_eudebug_event_eu_attention *ea = (void *)e;
+
+ sprintf(b, "client_handle=%llu, exec_queue_handle=%llu, "
+ "lrc_handle=%llu, bitmask_size=%d",
+ ea->client_handle, ea->exec_queue_handle,
+ ea->lrc_handle, ea->bitmask_size);
+ break;
+ }
default:
strcpy(b, "<...>");
}
--
2.34.1
More information about the igt-dev
mailing list