From: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
To: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>,
<intel-gfx@lists.freedesktop.org>
Cc: <intel-xe@lists.freedesktop.org>, <uma.shankar@intel.com>,
<ankit.k.nautiyal@intel.com>
Subject: Re: [PATCH v6 9/9] drm/i915/vrr: Enable cmrr
Date: Fri, 24 Jul 2026 15:20:23 +0530 [thread overview]
Message-ID: <1c19cb67-bf6a-478a-945a-12523ca6c5a8@intel.com> (raw)
In-Reply-To: <3adf77cc-f716-447f-898f-fd129533ff44@intel.com>
On 7/23/2026 9:51 PM, Borah, Chaitanya Kumar wrote:
>
>
> On 7/22/2026 10:09 AM, Mitul Golani wrote:
>> Enable CMRR during compute config and add related state
>> checker for the same.
>>
>> --v2:
>> - Everything else except enable compute to handle before this patch
>> (Chaitanya)
>>
>> --v3:
>> - Remove redundant return from compute config
>>
>> Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
>> ---
>> drivers/gpu/drm/i915/display/intel_vrr.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/
>> drm/i915/display/intel_vrr.c
>> index 6bc3ccd62513..ed23a03b0d3d 100644
>> --- a/drivers/gpu/drm/i915/display/intel_vrr.c
>> +++ b/drivers/gpu/drm/i915/display/intel_vrr.c
>> @@ -302,6 +302,8 @@ intel_vrr_cmrr_compute_config(struct
>> intel_crtc_state *crtc_state)
>> adjusted_mode->crtc_vtotal = div64_u64_rem(dividend,
>> crtc_state->vrr.cmrr.cmrr_n,
>> &crtc_state->vrr.cmrr.cmrr_m);
>> +
>> + crtc_state->vrr.cmrr.enable = true;
>
> We will also need to clear it (and cmrr_n, cmrr_m ) at the beginning of
> the compute config. If we only have this statement cmrr.enable will
> always remain true once set as it propagates through duplicated crtc
> states.
>
Spoke too soon, intel_crtc_prepare_cleared_state() zeroes the crtc_state
right before intel_modeset_pipe_config() runs compute. So we should be
good at that front.
The problem will still lie with CMRR_ENABLE not getting programmed
during a fastset. It will leave the CMRR registers programmed (to 0s in
disabled case) but CMRR_ENABLE bit in TRANS_VRR_CTL will not be updated
as enable_vrr_tg (except in lrr case) and disable_vrr_tg are called only
on modeset.
>> }
>> static
>
next prev parent reply other threads:[~2026-07-24 9:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 4:39 [PATCH v6 0/9] Enable CMRR in fixed-RR VRR path Mitul Golani
2026-07-22 4:39 ` [PATCH v6 1/9] drm/i915/vrr: Return from PSR2 compute config in case of CMRR enabled Mitul Golani
2026-07-23 16:15 ` Borah, Chaitanya Kumar
2026-07-24 10:22 ` Golani, Mitulkumar Ajitkumar
2026-07-24 10:33 ` Borah, Chaitanya Kumar
2026-07-22 4:39 ` [PATCH v6 2/9] drm/i915/vrr: Restrict CMRR enable condition to VRR-TG-default platforms Mitul Golani
2026-07-23 16:16 ` Borah, Chaitanya Kumar
2026-07-22 4:39 ` [PATCH v6 3/9] drm/i915/vrr: Add per-CRTC vrr/cmrr debugfs control Mitul Golani
2026-07-23 16:16 ` Borah, Chaitanya Kumar
2026-07-22 4:39 ` [PATCH v6 4/9] drm/i915/vrr: Update AS_SDP target_rr_divider based on CMRR config request Mitul Golani
2026-07-23 16:17 ` Borah, Chaitanya Kumar
2026-07-22 4:39 ` [PATCH v6 5/9] drm/i915/display: Move CMRR crtc_state members under VRR Mitul Golani
2026-07-23 16:18 ` Borah, Chaitanya Kumar
2026-07-22 4:39 ` [PATCH v6 6/9] drm/i915/vrr: Compute CMRR fractional timings generically Mitul Golani
2026-07-23 16:19 ` Borah, Chaitanya Kumar
2026-07-22 4:39 ` [PATCH v6 7/9] drm/i915/vrr: Dump CMRR state in the crtc state dump Mitul Golani
2026-07-22 4:39 ` [PATCH v6 8/9] drm/i915/vrr: Program CMRR enable/disable from transcoder timings Mitul Golani
2026-07-23 16:21 ` Borah, Chaitanya Kumar
2026-07-28 5:46 ` Golani, Mitulkumar Ajitkumar
2026-07-22 4:39 ` [PATCH v6 9/9] drm/i915/vrr: Enable cmrr Mitul Golani
2026-07-23 16:21 ` Borah, Chaitanya Kumar
2026-07-24 9:50 ` Borah, Chaitanya Kumar [this message]
2026-07-28 11:14 ` Golani, Mitulkumar Ajitkumar
2026-07-22 4:58 ` ✓ CI.KUnit: success for Enable CMRR in fixed-RR VRR path (rev5) Patchwork
2026-07-22 5:32 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-22 19:41 ` ✗ Xe.CI.FULL: failure " Patchwork
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=1c19cb67-bf6a-478a-945a-12523ca6c5a8@intel.com \
--to=chaitanya.kumar.borah@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=mitulkumar.ajitkumar.golani@intel.com \
--cc=uma.shankar@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