public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Dibin Moolakadan Subrahmanian <dibin.moolakadan.subrahmanian@intel.com>
To: Mohammed Thasleem <mohammed.thasleem@intel.com>,
	<igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] tests/intel/kms_pm_dc: Skip runtime PM active check on headless systems
Date: Thu, 2 Apr 2026 14:27:22 +0530	[thread overview]
Message-ID: <420ab86f-4ab7-43fa-a636-4c52d4721cc1@intel.com> (raw)
In-Reply-To: <20260331181606.22367-1-mohammed.thasleem@intel.com>


On 31-03-2026 23:46, Mohammed Thasleem wrote:
> 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));
>   }

LGTM,
Reviewed-by: Dibin Moolakadan Subrahmanian <dibin.moolakadan.subrahmanian@intel.com>


      parent reply	other threads:[~2026-04-02  8:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Dibin Moolakadan Subrahmanian [this message]

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=420ab86f-4ab7-43fa-a636-4c52d4721cc1@intel.com \
    --to=dibin.moolakadan.subrahmanian@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=mohammed.thasleem@intel.com \
    /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