summaryrefslogtreecommitdiff
path: root/tests/gem_exec_whisper.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_exec_whisper.c')
-rw-r--r--tests/gem_exec_whisper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_exec_whisper.c b/tests/gem_exec_whisper.c
index e8f1413d..69b96459 100644
--- a/tests/gem_exec_whisper.c
+++ b/tests/gem_exec_whisper.c
@@ -225,6 +225,7 @@ static void whisper(int fd, unsigned engine, unsigned flags)
gem_write(fd, batches[n].handle, 0, batch, sizeof(batch));
}
+ intel_detect_and_clear_missed_interrupts(fd);
igt_while_interruptible(flags & INTERRUPTIBLE) {
for (pass = 0; pass < 1024; pass++) {
uint64_t offset;
@@ -346,6 +347,7 @@ static void whisper(int fd, unsigned engine, unsigned flags)
igt_info("Number of migrations for reloc: %d, interrupted %d, patched %d\n", reloc_migrations, reloc_interruptions, relocations);
check_bo(fd, scratch.handle);
+ igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
gem_close(fd, scratch.handle);
gem_close(fd, store.handle);