igt/drv_missed_irq: Skip if the kernel reports no rings available to test

Submitted by Chris Wilson on Aug. 8, 2018, 10:20 a.m.

Details

Message ID 20180808102009.18303-1-chris@chris-wilson.co.uk
State New
Headers show
Series "igt/drv_missed_irq: Skip if the kernel reports no rings available to test" ( rev: 1 ) in IGT (deprecated)

Not browsing as part of any series.

Commit Message

Chris Wilson Aug. 8, 2018, 10:20 a.m.
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(+)

Patch hide | download patch | download mbox

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

Comments

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