From: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org, uma.shankar@intel.com,
ankit.k.nautiyal@intel.com, chaitanya.kumar.borah@intel.com
Subject: [PATCH v4 4/9] drm/i915/vrr: Update AS_SDP target_rr_divider based on CMRR config request
Date: Mon, 20 Jul 2026 14:31:36 +0530 [thread overview]
Message-ID: <20260720090142.2864289-5-mitulkumar.ajitkumar.golani@intel.com> (raw)
In-Reply-To: <20260720090142.2864289-1-mitulkumar.ajitkumar.golani@intel.com>
Compute AS_SDP target_rr_divider based on actual CMRR request
requirement.
Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index b2464a3dac05..ec5ec22f5173 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -3073,6 +3073,7 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp,
struct drm_dp_as_sdp *as_sdp = &crtc_state->infoframes.as_sdp;
const struct drm_display_mode *adjusted_mode =
&crtc_state->hw.adjusted_mode;
+ struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
/*
* #FIXME: SDP/infoframe updates aren’t truly atomic, and with the new
@@ -3093,7 +3094,11 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp,
if (crtc_state->cmrr.enable) {
as_sdp->mode = DP_AS_SDP_FAVT_TRR_REACHED;
as_sdp->target_rr = drm_mode_vrefresh(adjusted_mode);
- as_sdp->target_rr_divider = true;
+
+ if (crtc->force_cmrr.denominator == 1001)
+ as_sdp->target_rr_divider = true;
+ else
+ as_sdp->target_rr_divider = false;
} else if (crtc_state->vrr.enable) {
as_sdp->mode = DP_AS_SDP_AVT_DYNAMIC_VTOTAL;
} else {
--
2.48.1
next prev parent reply other threads:[~2026-07-20 9:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 9:01 [PATCH v4 0/9] Enable CMRR in fixed-RR VRR path Mitul Golani
2026-07-20 9:01 ` [PATCH v4 1/9] drm/i915/vrr: Return from CMRR compute config in case of PSR2 enabled Mitul Golani
2026-07-20 9:01 ` [PATCH v4 2/9] drm/i915/vrr: Restrict CMRR enable condition to VRR-TG-default platforms Mitul Golani
2026-07-20 9:01 ` [PATCH v4 3/9] drm/i915/vrr: Add per-CRTC vrr/cmrr debugfs control Mitul Golani
2026-07-20 9:01 ` Mitul Golani [this message]
2026-07-20 9:01 ` [PATCH v4 5/9] drm/i915/display: Move CMRR crtc_state members under VRR Mitul Golani
2026-07-20 9:01 ` [PATCH v4 6/9] drm/i915/vrr: Compute CMRR fractional timings generically Mitul Golani
2026-07-20 9:01 ` [PATCH v4 7/9] drm/i915/vrr: Dump CMRR state in the crtc state dump Mitul Golani
2026-07-20 9:01 ` [PATCH v4 8/9] drm/i915/vrr: Program CMRR enable/disable from transcoder timings Mitul Golani
2026-07-20 9:01 ` [PATCH v4 9/9] drm/i915/vrr: Enable cmrr Mitul Golani
2026-07-20 19:21 ` ✗ i915.CI.BAT: failure for Enable CMRR in fixed-RR VRR path (rev4) 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=20260720090142.2864289-5-mitulkumar.ajitkumar.golani@intel.com \
--to=mitulkumar.ajitkumar.golani@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=chaitanya.kumar.borah@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--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