Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/i915_pm_rpm: Stop setting the i915.mmio_debug modparam
@ 2026-11-16 14:34 Ville Syrjala
  2026-11-17  0:31 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ville Syrjala @ 2026-11-16 14:34 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

The i915.mmio_debug modparam is going first change from an
int to a boolean, and then move to the display mode (once
that split finally happens). The kernel will reject a -1
value for a boolean modparam, so the test would start to
fail when the type changes. Stop setting the modparam on
the i915 module in the test to avoid that. With the modparam
removed the test will work on any version of the driver.

The modparam will anyway default to -1 (as in mmio_debug is
always enabled) if the kernel was built with DRM_I915_DEBUG_MMIO=y,
or I915_DEBUG (which selects the former). So explicitly setting
the modparam in the test would only benefit someone running the
test on a non-debug build of the driver. I915_DEBUG should
be enabled in the i915 CI builds.

If someone really wants to set modparams in the test perhaps igt
should grow a more generic mechanism for doing that eg. via
environment variables...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/intel/i915_pm_rpm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/intel/i915_pm_rpm.c b/tests/intel/i915_pm_rpm.c
index b4da27b21b20..ca4f645c18eb 100644
--- a/tests/intel/i915_pm_rpm.c
+++ b/tests/intel/i915_pm_rpm.c
@@ -1432,7 +1432,7 @@ int igt_main_args("", long_options, help_str, opt_handler, NULL)
 		igt_i915_driver_unload();
 
 		igt_kmsg(KMSG_INFO "Reloading i915 w/o display\n");
-		igt_assert_eq(igt_i915_driver_load("disable_display=1 mmio_debug=-1"), 0);
+		igt_assert_eq(igt_i915_driver_load("disable_display=1"), 0);
 
 		igt_assert(setup_environment(false));
 		pci_dev = igt_device_get_pci_device(drm_fd);
@@ -1443,7 +1443,7 @@ int igt_main_args("", long_options, help_str, opt_handler, NULL)
 		igt_i915_driver_unload();
 
 		igt_kmsg(KMSG_INFO "Reloading i915 as normal\n");
-		igt_assert_eq(igt_i915_driver_load("mmio_debug=-1"), 0);
+		igt_assert_eq(igt_i915_driver_load(""), 0);
 
 		igt_assert(setup_environment(true));
 		pci_dev = igt_device_get_pci_device(drm_fd);
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-18 10:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16 14:34 [PATCH i-g-t] tests/intel/i915_pm_rpm: Stop setting the i915.mmio_debug modparam Ville Syrjala
2026-11-17  0:31 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-11-17  9:57 ` [PATCH i-g-t] " Kamil Konieczny
2026-11-17 13:47 ` ✓ Xe.CI.FULL: success for " Patchwork
2026-11-18 10:18 ` [PATCH i-g-t] " Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox