[PATCH i-g-t] tests/intel/xe_wedged: Manage verbosity of GT reset fault injection

Matt Roper matthew.d.roper at intel.com
Tue Nov 26 23:02:40 UTC 2024


igt at xe_wedged@basic-wedged triggers a GT reset and uses fault injection
to ensure that the reset artificially fails.  This works as expected,
but depending on the value in the fail_gt_reset/verbose debugfs
when the test starts, different levels of output may be printed to
dmesg.  The test already marks the general "declared wedged" message as
expected so that igt_runner won't try to flag those as test errors, but
if verbose=2, then the fault injection framework will also issue print
dump_stack() output which gets flagged as a problem by igt_runner.

Explicitly set verbose=1 when running the test so that we get the
general wedged message and fault injection notification (which we
already tell igt_runner to ignore), but skip the unnecessary stack dump
that just confuses the runner.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2919
Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
---
 tests/intel/xe_wedged.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/intel/xe_wedged.c b/tests/intel/xe_wedged.c
index 88e5d47f2..0db8c8eba 100644
--- a/tests/intel/xe_wedged.c
+++ b/tests/intel/xe_wedged.c
@@ -213,6 +213,7 @@ igt_main
 	igt_subtest("basic-wedged") {
 		igt_require(igt_debugfs_exists(fd, "fail_gt_reset/probability",
 					       O_RDWR));
+		igt_debugfs_write(fd, "fail_gt_reset/verbose", "1");
 
 		igt_assert_eq(simple_ioctl(fd), 0);
 		ignore_wedged_in_dmesg();
-- 
2.47.0



More information about the igt-dev mailing list