From: Mohammed Thasleem <mohammed.thasleem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Mohammed Thasleem <mohammed.thasleem@intel.com>
Subject: [PATCH i-g-t] tests/intel/kms_pm_dc: Skip runtime PM active check on headless systems
Date: Tue, 31 Mar 2026 23:46:06 +0530 [thread overview]
Message-ID: <20260331181606.22367-1-mohammed.thasleem@intel.com> (raw)
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
next reply other threads:[~2026-03-31 18:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 18:16 Mohammed Thasleem [this message]
2026-04-01 0:01 ` ✓ i915.CI.BAT: success for tests/intel/kms_pm_dc: Skip runtime PM active check on headless systems 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260331181606.22367-1-mohammed.thasleem@intel.com \
--to=mohammed.thasleem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox