* [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable
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 ` Jeevan B
2026-04-01 12:30 ` Naladala, Ramanaidu
0 siblings, 1 reply; 3+ messages in thread
From: Jeevan B @ 2026-03-25 16:51 UTC (permalink / raw)
To: igt-dev; +Cc: pranay.samala, Jeevan B
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable
@ 2026-04-01 4:46 Naladala, Ramanaidu
0 siblings, 0 replies; 3+ messages in thread
From: Naladala, Ramanaidu @ 2026-04-01 4:46 UTC (permalink / raw)
To: jeevan.b, igt-dev, pranay.samala
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
Hi Jeevan,
-----Original Message-----
From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Jeevan B
Sent: Wednesday, March 25, 2026 10:22 PM
To: igt-dev@lists.freedesktop.org
Cc: Samala, Pranay <pranay.samala@intel.com>; B, Jeevan <jeevan.b@intel.com>
Subject: [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable
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 <mailto: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);
}
This patch is to update the debugfs. on that part it is LGTM. But
observed one issue, As per the above psr check logic it is only checking
panel replay and psr1 mode. If psr2 is enabled test will skip due to
lobf and psr2 are mutually exclusive. Better this needs to be fix in
other patch or this patch.
Reviewed-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
igt_info("LOBF test execution on %s, PIPE %s with VRR range: (%u-%u) Hz\n",
--
2.43.0
[-- Attachment #2: Type: text/html, Size: 7712 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable
2026-03-25 16:51 ` [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable Jeevan B
@ 2026-04-01 12:30 ` Naladala, Ramanaidu
0 siblings, 0 replies; 3+ messages in thread
From: Naladala, Ramanaidu @ 2026-04-01 12:30 UTC (permalink / raw)
To: igt-dev
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
Hi Jeevan,
On 3/25/2026 10:21 PM, Jeevan B wrote:
> 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);
> }
This patch updates the debugfs, and that part looks good to me. However,
I noticed one issue: according to the current PSR check logic, it only
checks for panel replay and PSR1 mode. If PSR2 is enabled, the test will
be skipped because LOBF and PSR2 are mutually exclusive. It would be
better to fix this either in a separate patch or as part of this patch.
Reviewed-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
<mailto:ramanaidu.naladala@intel.com>
>
> igt_info("LOBF test execution on %s, PIPE %s with VRR range: (%u-%u) Hz\n",
[-- Attachment #2: Type: text/html, Size: 38267 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-01 12:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 4:46 [PATCH i-g-t v2 2/4] tests/kms_vrr: Avoid unnecessary PSR disable Naladala, Ramanaidu
-- strict thread matches above, loose matches on Subject: below --
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 2/4] tests/kms_vrr: Avoid unnecessary PSR disable Jeevan B
2026-04-01 12:30 ` Naladala, Ramanaidu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox