[Intel-gfx] [PATCH igt] igt/drv_module_reload: Reload with full mmio-debugging

Chris Wilson chris at chris-wilson.co.uk
Tue Dec 12 16:58:44 UTC 2017


mmio-debugging is lazy, we only turn on per-access checking after
a periodic check to see if an error has been flagged. If we load the
module with mmio_debug, we can validate that no such errors occur during
module_init, which is one of the trickier times to get right (having to
balance sanitization of existing HW state with our own).

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/drv_module_reload.c             | 3 +++
 tests/intel-ci/fast-feedback.testlist | 1 +
 2 files changed, 4 insertions(+)

diff --git a/tests/drv_module_reload.c b/tests/drv_module_reload.c
index 3046d8227..092982960 100644
--- a/tests/drv_module_reload.c
+++ b/tests/drv_module_reload.c
@@ -316,6 +316,9 @@ igt_main
 		gem_exec_store();
 	}
 
+	igt_subtest("basic-mmio-debug")
+		igt_assert_eq(reload("mmio_debug=2147483647"), 0);
+
 	igt_subtest("basic-no-display")
 		igt_assert_eq(reload("disable_display=1"), 0);
 
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index f71a16bcd..fe0779452 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -290,6 +290,7 @@ igt at vgem_basic@sysfs
 
 igt at vgem_basic@unload
 igt at drv_module_reload@basic-reload
+igt at drv_module_reload@basic-mmio-debug
 igt at drv_module_reload@basic-no-display
 igt at drv_module_reload@basic-reload-inject
 igt at gvt_basic@invalid-placeholder-test
-- 
2.15.1



More information about the Intel-gfx mailing list