diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-10 07:57:37 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-14 17:56:41 +0100 |
commit | d8e78990aa2bbb45574e31b3d7a3e1c40baaa372 (patch) | |
tree | a98ffc0a50a9bf056dd82a94fd0f16b79298bd47 | |
parent | fccb337062b6e7309a263f4e1f6b6cb664045791 (diff) |
igt/pm_rpm: Test reaquisition of runtime-pm after module reload
It doesn't work right now and desperately needs to be fixed...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
-rw-r--r-- | tests/intel-ci/fast-feedback.testlist | 1 | ||||
-rw-r--r-- | tests/pm_rpm.c | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist index 1f3b9535..c625904d 100644 --- a/tests/intel-ci/fast-feedback.testlist +++ b/tests/intel-ci/fast-feedback.testlist @@ -272,3 +272,4 @@ igt@vgem_basic@unload igt@drv_module_reload@basic-reload igt@drv_module_reload@basic-no-display igt@drv_module_reload@basic-reload-inject +igt@pm_rpm@module-reload diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index 756c31a5..65489bcd 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(); } |