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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
---
 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@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
-- 
2.15.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux