public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: pranay.samala@intel.com, Jeevan B <jeevan.b@intel.com>
Subject: [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable
Date: Wed, 25 Mar 2026 22:21:38 +0530	[thread overview]
Message-ID: <20260325165140.115520-3-jeevan.b@intel.com> (raw)
In-Reply-To: <20260325165140.115520-1-jeevan.b@intel.com>

Use output instead of NULL in PSR helpers so PSR is disabled only
when supported by the sink, avoiding unnecessary global checks and
ensuring correct behavior on multi-eDP setups.

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_vrr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index ec0692b2f..ec17366c8 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -912,9 +912,9 @@ test_lobf(data_t *data, igt_crtc_t *crtc, igt_output_t *output,
 			igt_skip("%s: Aux-less ALPM not enabled, LOBF not supported.\n",
 				 igt_output_name(output));
 
-		if (psr_sink_support(data->drm_fd, data->debugfs_fd, PSR_MODE_1, NULL) ||
-		    psr_sink_support(data->drm_fd, data->debugfs_fd, PR_MODE, NULL))
-			psr_disable(data->drm_fd, data->debugfs_fd, NULL);
+		if (psr_sink_support(data->drm_fd, data->debugfs_fd, PSR_MODE_1, output) ||
+		    psr_sink_support(data->drm_fd, data->debugfs_fd, PR_MODE, output))
+			psr_disable(data->drm_fd, data->debugfs_fd, output);
 	}
 
 	igt_info("LOBF test execution on %s, PIPE %s with VRR range: (%u-%u) Hz\n",
-- 
2.43.0


  parent reply	other threads:[~2026-03-25 16:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25 16:51 [PATCH i-g-t v2 0/4] Fix PSR handling for multi-eDP systems Jeevan B
2026-03-25 16:51 ` [PATCH i-g-t v2 1/4] tests/intel/kms_fbc_dirty_rect: Use per-output PSR check before disabling Jeevan B
2026-03-26  8:40   ` Samala, Pranay
2026-03-25 16:51 ` Jeevan B [this message]
2026-04-01 12:30   ` [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable Naladala, Ramanaidu
2026-03-25 16:51 ` [PATCH i-g-t v2 3/4] tests/intel/kms_psr_stress_test: Select PSR-capable output Jeevan B
2026-03-26  8:44   ` Samala, Pranay
2026-03-25 16:51 ` [PATCH i-g-t v2 4/4] tests/intel/kms_pm_dc: Scope PSR handling to output Jeevan B
2026-03-26  3:45 ` ✓ i915.CI.BAT: success for Fix PSR handling for multi-eDP systems (rev3) Patchwork
2026-03-26  3:48 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-26 16:10 ` ✓ Xe.CI.FULL: " Patchwork
2026-03-26 18:49 ` ✗ i915.CI.Full: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-04-01  4:46 [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable Naladala, Ramanaidu

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=20260325165140.115520-3-jeevan.b@intel.com \
    --to=jeevan.b@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=pranay.samala@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