diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-08 11:18:28 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-16 14:52:50 +0000 |
commit | fa612075690552d9841c901c0f271e1595aacfe8 (patch) | |
tree | 6ee9d5211426ac7f7dcb44d665849c72f75c8efa /tests | |
parent | 08ac42b8c6892a9c8447ceefd931bc4394bef8fb (diff) |
igt/drv_missed_irq: Skip if the kernel reports no rings available to test
Some setups (e.g. guc and gen10+) can not disable the MI_USER_INTERRUPT
generation and so can not simulate missed interrupts. These tests would
fail, so skip when the kernel reports no tests available.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/missed_irq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i915/missed_irq.c b/tests/i915/missed_irq.c index 78690c36..cade3f37 100644 --- a/tests/i915/missed_irq.c +++ b/tests/i915/missed_irq.c @@ -113,6 +113,7 @@ igt_simple_main debugfs = igt_debugfs_dir(device); expect_rings = engine_mask(debugfs); + igt_require(expect_rings); igt_debug("Clearing rings %x\n", expect_rings); intel_detect_and_clear_missed_interrupts(device); |