summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-04-09 09:28:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-04-09 09:35:44 +0100
commit67b4ccf188ada3bd91b9ed16b2ad2b98adf48d09 (patch)
tree3e4470162058fb50a0b63f68b5e3cf0933a05a75 /lib/igt_dummyload.c
parente03bdc72bcd8c234650b92ec42a61257797f4e5b (diff)
i915/gem_wait: Warn if the test completes before the spinner times out
Check that our threaded timer to expire the igt_spin_t does fire! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index d5f622cf..9221db51 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -464,6 +464,8 @@ void igt_spin_reset(igt_spin_t *spin)
*spin->condition = spin->cmd_precondition;
__sync_synchronize();
+
+ memset(&spin->last_signal, 0, sizeof(spin->last_signal));
}
/**
@@ -477,6 +479,7 @@ void igt_spin_end(igt_spin_t *spin)
if (!spin)
return;
+ igt_gettime(&spin->last_signal);
*spin->condition = MI_BATCH_BUFFER_END;
__sync_synchronize();
}