diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-02 15:00:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-02 15:02:57 +0100 |
commit | 54577e7a83f5bfc2e97245badd043f78d5c8ee4f (patch) | |
tree | fbc583e50c83ef253f578ae5149f0a9c604300cb /tests/gem_exec_whisper.c | |
parent | 0e11befe4426c2accb1f350a63ae99022179c41b (diff) |
Mark up a few more execbuf tests with automatic fail for missed-interrupts
Too many interrupts missed being ignored.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_whisper.c')
-rw-r--r-- | tests/gem_exec_whisper.c | 2 |
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); |