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 /tests/pm_rpm.c | |
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>
Diffstat (limited to 'tests/pm_rpm.c')
-rw-r--r-- | tests/pm_rpm.c | 22 |
1 files changed, 22 insertions, 0 deletions
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(); } |