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>2020-09-03 13:52:05 +0100
commit55e813bfa80e0ed85eb1152e7c33ec7b8615627c (patch)
tree9c075bc00208399312246400cd8db6f3f7cb64af
parent084e97f1652d38a2be1bd5f954fea90151fbb5ee (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/i915/i915_module_load.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/i915/i915_module_load.c b/tests/i915/i915_module_load.c
index aa998b99..051056d4 100644
--- a/tests/i915/i915_module_load.c
+++ b/tests/i915/i915_module_load.c
@@ -337,6 +337,14 @@ igt_main
/* only default modparams, can leave module loaded */
}
+ igt_subtest("mmio-debug") {
+ igt_i915_driver_unload();
+
+ igt_assert_eq(igt_i915_driver_load("mmio_debug=2147483647"), 0);
+
+ igt_i915_driver_unload();
+ }
+
igt_subtest("reload-no-display") {
igt_i915_driver_unload();