[PATCH i-g-t] tests/intel/xe_pm: Disable display for mocs-rpm test

janga.rahul.kumar at intel.com janga.rahul.kumar at intel.com
Thu May 16 10:45:13 UTC 2024


From: Janga Rahul Kumar <janga.rahul.kumar at intel.com>

If display is enabled, the always-on components will always keeps
runtime pm references, unless you put DPMS_OFF.

Cc: Badal Nilawar <badal.nilawar at intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar at intel.com>
---
 tests/intel/xe_pm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_pm.c b/tests/intel/xe_pm.c
index 9cb00c7f1..b4a8c4d15 100644
--- a/tests/intel/xe_pm.c
+++ b/tests/intel/xe_pm.c
@@ -835,8 +835,11 @@ igt_main
 			igt_pm_set_autosuspend_delay(device.pci_xe, delay_ms);
 		}
 
-		igt_subtest("mocs-rpm")
+		igt_subtest("mocs-rpm") {
+			dpms_on_off(device, DRM_MODE_DPMS_OFF);
 			test_mocs_suspend_resume(device, NO_SUSPEND);
+			dpms_on_off(device, DRM_MODE_DPMS_ON);
+		}
 	}
 
 	igt_fixture {
-- 
2.25.1



More information about the igt-dev mailing list