Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Naladala, Ramanaidu" <Ramanaidu.naladala@intel.com>
To: "B, Jeevan" <jeevan.b@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Golani,
	Mitulkumar Ajitkumar" <mitulkumar.ajitkumar.golani@intel.com>,
	"Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Subject: Re: [PATCH i-g-t v1] kms/vrr: Trigger modeset for non-preferred override mode
Date: Thu, 16 Jul 2026 22:59:46 +0530	[thread overview]
Message-ID: <a749c4b6-c762-4f0c-880f-4699a6fe8873@intel.com> (raw)
In-Reply-To: <DM4PR11MB6312ED6EB582156C9FE9941790FA2@DM4PR11MB6312.namprd11.prod.outlook.com>

Hi Jevan,

Thanks for the feedback.

On 7/13/2026 9:05 AM, B, Jeevan wrote:
>> -----Original Message-----
>> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Naladala
>> Ramanaidu
>> Sent: Saturday, July 4, 2026 10:49 AM
>> To: igt-dev@lists.freedesktop.org
>> Cc: Golani, Mitulkumar Ajitkumar <mitulkumar.ajitkumar.golani@intel.com>;
>> Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>; Naladala, Ramanaidu
>> <ramanaidu.naladala@intel.com>
>> Subject: [PATCH i-g-t v1] kms/vrr: Trigger modeset for non-preferred override
>> mode
> Need to change kms/vrr to tests/kms_vrr
>> Ensure a modeset is triggered when overriding to a mode that is not marked as
>> PREFERRED or DRIVER. This guarantees that the new refresh rate mode is
>> properly programmed into hardware instead of relying on an existing state.
>>
>> Observed fastset failures when the preferred mode has a low clock and
>> switching to a higher clock mode via fastset, which led to test failures. Forcing
>> an atomic commit in such cases avoids these issues.
>>
>> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/7397
>>
>> Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
>> ---
>>   tests/kms_vrr.c | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c index 82eb8554a..d583d3cc3
>> 100644
>> --- a/tests/kms_vrr.c
>> +++ b/tests/kms_vrr.c
>> @@ -948,6 +948,10 @@ static bool output_constraint(data_t *data,
>> igt_output_t *output, uint32_t flags
>>   	data->range.max = data->switch_modes[HIGH_RR_MODE].vrefresh;
>>   	igt_output_override_mode(output, &data-
>>> switch_modes[HIGH_RR_MODE]);
>> +	if (!(data->switch_modes[HIGH_RR_MODE].type &
>> +	    (DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER)))
>> +			igt_display_commit2(&data->display,
>> COMMIT_ATOMIC);
>> +
> Can the modeset enforcement be moved to the actual mode-switch/commit path instead of committing from output_constraint()?
> That would avoid introducing side effects in what currently appears to be a constraint-discovery helper. ??
Yes possible. I will fix the changes in the next revision.
>
>>   	/* Search for a low refresh rate mode. */
>>   	if (!(flags & (TEST_SEAMLESS_VRR | TEST_SEAMLESS_DRRS |
>> TEST_LINK_OFF)))
>>   		return true;
>> --
>> 2.43.0

      reply	other threads:[~2026-07-16 17:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-04  5:19 [PATCH i-g-t v1] kms/vrr: Trigger modeset for non-preferred override mode Naladala Ramanaidu
2026-07-04  6:40 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-07-04  7:06 ` ✓ i915.CI.BAT: " Patchwork
2026-07-04 11:33 ` ✓ Xe.CI.FULL: " Patchwork
2026-07-04 13:19 ` ✗ i915.CI.Full: failure " Patchwork
2026-07-13  3:35 ` [PATCH i-g-t v1] " B, Jeevan
2026-07-16 17:29   ` Naladala, Ramanaidu [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=a749c4b6-c762-4f0c-880f-4699a6fe8873@intel.com \
    --to=ramanaidu.naladala@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=mitulkumar.ajitkumar.golani@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