public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/kms_pm_dc: Skip runtime PM active check on headless systems
@ 2026-03-31 18:16 Mohammed Thasleem
  2026-04-01  0:01 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mohammed Thasleem @ 2026-03-31 18:16 UTC (permalink / raw)
  To: igt-dev; +Cc: Mohammed Thasleem

Skip runtime PM active check on disconnected displays in DPMS_ON.
On headless systems, DPMS_ON operations don't enable CRTCs or acquire
RPM wakerefs, leaving the device suspended.
Skip the active state wait when no outputs are connected.

Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com>
---
 tests/intel/kms_pm_dc.c | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 39e94f36b..39d00bb6e 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -385,6 +385,17 @@ static void setup_dc_dpms(data_t *data)
 	}
 }
 
+static bool has_connected_outputs(data_t *data)
+{
+	igt_display_t *display = &data->display;
+	igt_output_t *output;
+
+	for_each_connected_output(display, output)
+		return true;
+
+	return false;
+}
+
 static void dpms_off(data_t *data)
 {
 	for (int i = 0; i < data->display.n_outputs; i++) {
@@ -406,7 +417,13 @@ static void dpms_on(data_t *data)
 					   DRM_MODE_DPMS_ON);
 	}
 
-	if (!data->runtime_suspend_disabled)
+	/*
+	 * DPMS_ON on disconnected connectors does not enable any pipe
+	 * or acquire a runtime PM wakeref, so the device will never
+	 * transition to active state. Skip the wait when no outputs
+	 * are physically connected.
+	 */
+	if (!data->runtime_suspend_disabled && has_connected_outputs(data))
 		igt_assert(igt_wait_for_pm_status
 			   (IGT_RUNTIME_PM_STATUS_ACTIVE));
 }
-- 
2.48.1


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

end of thread, other threads:[~2026-04-02  8:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 18:16 [PATCH i-g-t] tests/intel/kms_pm_dc: Skip runtime PM active check on headless systems Mohammed Thasleem
2026-04-01  0:01 ` ✓ i915.CI.BAT: success for " Patchwork
2026-04-01  0:10 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-01  7:44 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-01 17:30 ` ✓ i915.CI.Full: " Patchwork
2026-04-02  8:57 ` [PATCH i-g-t] " Dibin Moolakadan Subrahmanian

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