summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-12-12 10:54:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2018-03-15 10:52:37 +0000
commitae58cb76c42d8d4160d61935f838af1dd2fb0200 (patch)
treec3e207ab35f68aa7cf3eb1761de9926095f89e70
parent97ac2919c43a256ed207929fdfb6a9d5dbb3269c (diff)
igt/drv_module_reload: Reload with full mmio-debugging
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@chris-wilson.co.uk>
-rw-r--r--tests/drv_module_reload.c3
-rw-r--r--tests/intel-ci/fast-feedback.testlist1
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/drv_module_reload.c b/tests/drv_module_reload.c
index 3046d822..09298296 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 5bad8c79..a487cf7d 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -287,6 +287,7 @@ igt@vgem_basic@sysfs
igt@vgem_basic@unload
igt@drv_module_reload@basic-reload
+igt@drv_module_reload@basic-mmio-debug
igt@drv_module_reload@basic-no-display
igt@drv_module_reload@basic-reload-inject
igt@gvt_basic@invalid-placeholder-test