Skip to content

Commit 456b32c

Browse files
drm/xe/guc: Add test for G2G communications
Add a test for sending messages from every GuC to every other GuC to test G2G communications. Note that, being a debug only feature, the test interface only exists in pre-production builds of the GuC firmware. v2: Fix 'default' case to actually use the driver's registration code as well as allocation. Add comments explaining the different test types. Fix (C) date and an assert. Review feedback from Daniele. Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Link: https://lore.kernel.org/r/20250910210237.603576-5-John.C.Harrison@Intel.com
1 parent 537773d commit 456b32c

File tree

8 files changed

+801
-0
lines changed

8 files changed

+801
-0
lines changed

drivers/gpu/drm/xe/abi/guc_actions_abi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ enum xe_guc_action {
155155
XE_GUC_ACTION_NOTIFY_FLUSH_LOG_BUFFER_TO_FILE = 0x8003,
156156
XE_GUC_ACTION_NOTIFY_CRASH_DUMP_POSTED = 0x8004,
157157
XE_GUC_ACTION_NOTIFY_EXCEPTION = 0x8005,
158+
XE_GUC_ACTION_TEST_G2G_SEND = 0xF001,
159+
XE_GUC_ACTION_TEST_G2G_RECV = 0xF002,
158160
XE_GUC_ACTION_LIMIT
159161
};
160162

0 commit comments

Comments
 (0)