From: Lee Shawn C <shawn.c.lee@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Lee Shawn C <shawn.c.lee@intel.com>,
Naladala Ramanaidu <ramanaidu.naladala@intel.com>
Subject: [i-g-t, v6, 1/2] Revert "tests/kms_vrr: Start virtual RR test above midpoint to avoid mode fallback"
Date: Fri, 15 May 2026 06:32:50 +0000 [thread overview]
Message-ID: <20260515063251.2239524-2-shawn.c.lee@intel.com> (raw)
In-Reply-To: <20260515063251.2239524-1-shawn.c.lee@intel.com>
This reverts commit 862eb176244feac8ee711f381fe1be1fdc6a7ede.
The following patch will do full range testing. So no need to start at midpoint.
Cc: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
---
tests/kms_vrr.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index 6043d40f1d74..8f5c4a7c1501 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -786,16 +786,7 @@ test_seamless_virtual_rr_basic(data_t *data, igt_crtc_t *crtc,
/* Switch to Virtual RR */
virtual_mode = *igt_output_get_mode(output);
- /*
- * Start virtual RR testing from above the midpoint of the VRR range when multiple
- * modes are available. This avoids the driver mode adjustment. which can cause an
- * unintended clock change.
- */
- vrefresh = (output->config.connector->count_modes > 1) ?
- (((data->range.max + data->range.min) / 2) + step_size) :
- data->range.min + step_size;
-
- for ( ; vrefresh < data->range.max; vrefresh += step_size) {
+ for (vrefresh = data->range.min + step_size; vrefresh < data->range.max; vrefresh += step_size) {
virtual_rr_vrr_range_mode(&virtual_mode, vrefresh);
igt_info("Requesting Virtual Mode with Refresh Rate (%u Hz): \n", vrefresh);
--
2.34.1
next prev parent reply other threads:[~2026-05-15 6:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 6:32 [i-g-t,v6, 0/2] *** SUBJECT HERE *** Lee Shawn C
2026-05-15 6:32 ` Lee Shawn C [this message]
2026-05-15 6:32 ` [i-g-t, v6, 2/2] tests/kms_vrr: add support for full range refresh rate testing Lee Shawn C
2026-05-15 15:08 ` [i-g-t,v6, 0/2] *** SUBJECT HERE *** Kamil Konieczny
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=20260515063251.2239524-2-shawn.c.lee@intel.com \
--to=shawn.c.lee@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ramanaidu.naladala@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