diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-17 11:56:38 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-04 17:07:02 +0100 |
commit | e0c3033a57d85c0d2eb33af0451afa16edc79f10 (patch) | |
tree | dc2c5720b2f25e6cd06d83329f136aaa55afeb00 | |
parent | bfce01d8c93dbd86e6ab04ca1afb844e0cbc8078 (diff) |
igt/pm_rpm: Reload the module with full mmio debugging
Our unclaimed mmio access debugging is lazy, doing cheap checks
periodically and only if they fail do a full check around every mmio
access. When testing for runtime pm, enable the full mmio debugging from
the initial load.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
-rw-r--r-- | tests/pm_rpm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index e3bb6227..c24fd95b 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -2058,7 +2058,7 @@ int main(int argc, char *argv[]) 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_eq(igt_i915_driver_load("disable_display=1 mmio_debug=-1"), 0); igt_assert(setup_environment()); igt_assert(igt_wait(device_in_pci_d3(), 2000, 100)); @@ -2066,13 +2066,16 @@ int main(int argc, char *argv[]) igt_debug("Reload as normal\n"); igt_i915_driver_unload(); - igt_assert_eq(igt_i915_driver_load(NULL), 0); + igt_assert_eq(igt_i915_driver_load("mmio_debug=-1"), 0); igt_assert(setup_environment()); igt_assert(igt_wait(device_in_pci_d3(), 2000, 100)); if (enable_one_screen_with_type(&ms_data, SCREEN_TYPE_ANY)) drm_resources_equal_subtest(); teardown_environment(); + + /* Remove our mmio_debugging module */ + igt_i915_driver_unload(); } igt_exit(); |