[igt-dev] [PATCH i-g-t 2/2] igt/pm_rpm: Test reaquisition of runtime-pm after module reload
Chris Wilson
chris at chris-wilson.co.uk
Tue Aug 14 15:31:07 UTC 2018
It doesn't work right now and desperately needs to be fixed...
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak at intel.com>
---
tests/intel-ci/fast-feedback.testlist | 1 +
tests/pm_rpm.c | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index 1f3b95357..c625904d5 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -272,3 +272,4 @@ igt at vgem_basic@unload
igt at drv_module_reload@basic-reload
igt at drv_module_reload@basic-no-display
igt at drv_module_reload@basic-reload-inject
+igt at pm_rpm@module-reload
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index 756c31a5f..65489bcdb 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -2033,5 +2033,27 @@ int main(int argc, char *argv[])
igt_fixture
teardown_environment();
+ igt_subtest("module-reload") {
+ igt_debug("Reload w/o display\n");
+ igt_i915_driver_unload();
+ igt_assert_eq(igt_i915_driver_load("disable_display=1"), 0);
+
+ igt_assert(setup_environment());
+ basic_subtest();
+ drm_resources_equal_subtest();
+ pci_d3_state_subtest();
+ teardown_environment();
+
+ igt_debug("Reload as normal\n");
+ igt_i915_driver_unload();
+ igt_assert_eq(igt_i915_driver_load(NULL), 0);
+
+ igt_assert(setup_environment());
+ basic_subtest();
+ drm_resources_equal_subtest();
+ pci_d3_state_subtest();
+ teardown_environment();
+ }
+
igt_exit();
}
--
2.18.0
More information about the igt-dev
mailing list