diff mbox series

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

Message ID 20180808102009.18303-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show
Series [i-g-t] igt/drv_missed_irq: Skip if the kernel reports no rings available to test | expand

Commit Message

Chris Wilson Aug. 8, 2018, 10:20 a.m. UTC
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>
---
 tests/drv_missed_irq.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Chris Wilson Jan. 4, 2019, 11:07 p.m. UTC | #1
Quoting Chris Wilson (2018-08-08 11:20:09)
> 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.

Ping?
-Chris
diff mbox series

Patch

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);