[PATCH i-g-t] tests/intel/xe_wedged: Force a rebind before exit
Rodrigo Vivi
rodrigo.vivi at intel.com
Wed May 15 15:15:55 UTC 2024
If the tests failed before the rebind, the device will be
left in the wedged mode state, blocking subsequent tests.
Do an extra rebind before exiting to ensure everything is clean.
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
tests/intel/xe_wedged.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/intel/xe_wedged.c b/tests/intel/xe_wedged.c
index b9bd49fad..cff91077c 100644
--- a/tests/intel/xe_wedged.c
+++ b/tests/intel/xe_wedged.c
@@ -276,6 +276,10 @@ igt_main
igt_debugfs_write(fd, "fail_gt_reset/probability", "0");
igt_debugfs_write(fd, "fail_gt_reset/times", "1");
}
+
+ /* Tests might have failed, force a rebind before exiting */
+ fd = rebind_xe(fd);
+
drm_close_driver(fd);
}
}
--
2.44.0
More information about the igt-dev
mailing list