summaryrefslogtreecommitdiff
path: root/tests/i915/i915_hangman.c
diff options
context:
space:
mode:
authorJohn Harrison <John.C.Harrison@Intel.com>2022-01-14 10:16:59 -0800
committerAshutosh Dixit <ashutosh.dixit@intel.com>2022-01-18 12:43:38 -0800
commitff20e2380eef430035dcf04ab8921e1c0f23352c (patch)
tree747c1a2238ed75ad79a4d0bec329acd732a501c5 /tests/i915/i915_hangman.c
parent7ef5166f6580491b52817930bc4bf7222d0dfe59 (diff)
tests/i915/i915_hangman: Add descriptions
Added descriptions of the various sub-tests and the test as a whole. v2: Added missing linefeed (spotted by Petri) Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/i915/i915_hangman.c')
-rw-r--r--tests/i915/i915_hangman.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/i915/i915_hangman.c b/tests/i915/i915_hangman.c
index 4c18c22d..b9c4d998 100644
--- a/tests/i915/i915_hangman.c
+++ b/tests/i915/i915_hangman.c
@@ -46,6 +46,8 @@
static int device = -1;
static int sysfs = -1;
+IGT_TEST_DESCRIPTION("Tests for hang detection and recovery");
+
static bool has_error_state(int dir)
{
bool result;
@@ -315,9 +317,9 @@ static void hangcheck_unterminated(void)
gem_execbuf(device, &execbuf);
if (gem_wait(device, handle, &timeout_ns) != 0) {
- /* need to manually trigger an hang to clean before failing */
+ /* need to manually trigger a hang to clean before failing */
igt_force_gpu_reset(device);
- igt_assert_f(0, "unterminated batch did not trigger an hang!");
+ igt_assert_f(0, "unterminated batch did not trigger a hang!\n");
}
}
@@ -341,9 +343,11 @@ igt_main
igt_require(has_error_state(sysfs));
}
+ igt_describe("Basic error capture");
igt_subtest("error-state-basic")
test_error_state_basic();
+ igt_describe("Per engine error capture");
igt_subtest_with_dynamic("error-state-capture") {
for_each_ctx_engine(device, ctx, e) {
igt_dynamic_f("%s", e->name)
@@ -351,6 +355,7 @@ igt_main
}
}
+ igt_describe("Per engine hang recovery (spin)");
igt_subtest_with_dynamic("engine-hang") {
int has_gpu_reset = 0;
struct drm_i915_getparam gp = {
@@ -369,6 +374,7 @@ igt_main
}
}
+ igt_describe("Per engine hang recovery (invalid CS)");
igt_subtest_with_dynamic("engine-error") {
int has_gpu_reset = 0;
struct drm_i915_getparam gp = {
@@ -386,6 +392,7 @@ igt_main
}
}
+ igt_describe("Check that executing unintialised memory causes a hang");
igt_subtest("hangcheck-unterminated")
hangcheck_unterminated();