From: Vidya Srinivas <vidya.srinivas@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [PATCH i-g-t] tests/kms_vrr: Reset to High refresh rate before begin drrs test
Date: Thu, 25 Jan 2024 14:59:57 +0530 [thread overview]
Message-ID: <20240125092957.9518-1-vidya.srinivas@intel.com> (raw)
In-Reply-To: <0240125055825.8915-1-vidya.srinivas@intel.com>
Sink with DRRS and VRR can be in downclock mode,
so switch to High clock mode as test preparation.
Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
---
tests/kms_vrr.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index 44bc3480d..697697b4e 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -522,6 +522,14 @@ test_seamless_rr_basic(data_t *data, enum pipe pipe, igt_output_t *output, uint3
if (vrr)
set_vrr_on_pipe(data, pipe, false, true);
+ else {
+ /*
+ Sink with DRRS and VRR can be in downclock mode.
+ so switch to High clock mode as test preparation
+ */
+ igt_output_override_mode(output, &data->switch_modes[HIGH_RR_MODE]);
+ igt_assert(igt_display_try_commit_atomic(&data->display, DRM_MODE_PAGE_FLIP_EVENT, NULL) == 0);
+ }
rate = vtest_ns.max;
result = flip_and_measure(data, output, pipe, rate, TEST_DURATION_NS);
--
2.33.0
next parent reply other threads:[~2024-01-25 9:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0240125055825.8915-1-vidya.srinivas@intel.com>
2024-01-25 9:29 ` Vidya Srinivas [this message]
2024-01-25 9:56 ` [PATCH i-g-t] tests/kms_vrr: Reset to High refresh rate before begin drrs test Modem, Bhanuprakash
2024-01-25 9:58 ` Srinivas, Vidya
2024-01-23 4:14 Vidya Srinivas
2024-01-25 5:58 ` Vidya Srinivas
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=20240125092957.9518-1-vidya.srinivas@intel.com \
--to=vidya.srinivas@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