[Intel-gfx] [PATCH i-g-t] igt/drv_missed_irq: Skip if the kernel reports no rings available to test

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 8 10:20:09 UTC 2018


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 at chris-wilson.co.uk>
---
 tests/drv_missed_irq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/drv_missed_irq.c b/tests/drv_missed_irq.c
index 78690c36a..cade3f371 100644
--- a/tests/drv_missed_irq.c
+++ b/tests/drv_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);
-- 
2.18.0



More information about the Intel-gfx mailing list