[igt-dev] [PATCH RFC 2/2] lib/igt_core: print card sysfs node at subtest results

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Wed Sep 28 08:58:42 UTC 2022


From: Mauro Carvalho Chehab <mchehab at kernel.org>

This helps to identify what GPU failed on multi-GPU tests.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 lib/igt_core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 0d018758ce38..6575eabca027 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1481,6 +1481,9 @@ __noreturn static void exit_subtest(const char *result)
 
 	igt_gettime(&now);
 
+	if (gpu_string)
+		igt_info("%s: ", gpu_string);
+
 	igt_info("%s%s %s: %s (%.3fs)%s\n",
 		 (!__igt_plain_output) ? "\x1b[1m" : "",
 		 subtest_text, *subtest_name, result,
-- 
2.37.3



More information about the igt-dev mailing list