From: sashiko-bot@kernel.org
To: "Suraj Kandpal" <suraj.kandpal@intel.com>
Cc: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 08/10] drm/i915/display: Implement Wa_14021768792 for BMG DP for link_m/n ratio > 10
Date: Fri, 11 Sep 2026 04:30:49 +0000 [thread overview]
Message-ID: <20260911043050.65A871F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260911041449.3699400-9-suraj.kandpal@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The `bypass_m_n_ratio_limit` flag is not reset to `false` when recomputing M/N parameters, causing it to leak across atomic modesets and permanently disable DRRS and seamless M/N fastsets, while incorrectly programming hardware for subsequent modes.
--
commit 1051e6f37ea4e4c3629ed1e93206c237d8286159
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
drm/i915/display: Implement Wa_14021768792 for BMG DP for link_m/n ratio > 10
This commit implements the bypass logic for the M/N ratio limit for DP on
128b/132b links. It calculates the M/N ratio, sets the appropriate flags for
the workaround, and disables DRRS and seamless M/N fastsets when active.
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 585762be07bb2..27ffd937c75f2 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
[ ... ]
> @@ -3385,10 +3389,21 @@ void intel_dp_check_m_n_ratio(struct intel_crtc_state *crtc_state,
>
> m_n_ratio = DIV_ROUND_UP(m_n->link_m, m_n->link_n);
>
> - if (m_n_ratio > max_m_n_ratio)
> - drm_WARN(display->drm, 1,
> - "Link M/N ratio (%d) exceeds max allowed (%d)\n",
> - m_n_ratio, max_m_n_ratio);
> + if (m_n_ratio <= max_m_n_ratio)
> + return;
[Severity: High]
When returning early here, should we explicitly reset the
bypass_m_n_ratio_limit flag to false?
Because atomic modesets duplicate the CRTC state, if a user previously
applied a high-bandwidth UHBR mode that set bypass_m_n_ratio_limit to true,
changing to a lower-resolution mode would carry this true flag over into the
new state.
Neither intel_link_compute_m_n() nor the early return or fall-through paths
in intel_dp_check_m_n_ratio() seem to clear this flag. Could this state leak
permanently disable DRRS and seamless M/N updates for that connector, and
potentially lead to incorrectly programming the hardware for non-UHBR modes?
> +
> + if (intel_dp_is_uhbr(crtc_state) &&
> + intel_display_can_bypass_m_n_limit(display, m_n_ratio, crtc->pipe)) {
> + m_n->bypass_m_n_ratio_limit = true;
> + drm_dbg_kms(display->drm,
> + "Bypassing Link_m/Link_n ratio limit (ratio %d)\n",
> + m_n_ratio);
> + return;
> + }
> +
> + drm_WARN(display->drm, 1,
> + "Link M/N ratio (%d) exceeds max allowed (%d)\n",
> + m_n_ratio, max_m_n_ratio);
> }
>
> static void
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260911041449.3699400-1-suraj.kandpal@intel.com?part=8
next prev parent reply other threads:[~2026-09-11 4:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 4:14 [PATCH 00/10] Implement Wa_14021768792 to bypass m_n ratio limit Suraj Kandpal
2026-09-11 4:14 ` [PATCH 01/10] drm/i915/display: Add helper to compute link M/N ratio for reuse Suraj Kandpal
2026-09-11 11:24 ` Jani Nikula
2026-09-11 11:28 ` Jani Nikula
2026-09-11 4:14 ` [PATCH 02/10] drm/i915/dp: Limit M/N ratio for DP SST Suraj Kandpal
2026-09-11 4:14 ` [PATCH 03/10] drm/i915/dp_mst: Limit M/N ratio for MST Suraj Kandpal
2026-09-11 4:30 ` sashiko-bot
2026-09-11 4:14 ` [PATCH 04/10] drm/i915/dp: Add M/N ratio check with warning for DP link config Suraj Kandpal
2026-09-11 4:14 ` [PATCH 05/10] drm/i915/display: Add bits for link_n_extended for DISPLAY >= 14 Suraj Kandpal
2026-09-11 4:14 ` [PATCH 06/10] drm/i915/display_wa: Add support for Wa_14021768792 Suraj Kandpal
2026-09-11 4:14 ` [PATCH 07/10] drm/i915/display: Add bits for Wa_14021768792 for linkm/n ratio > 10 Suraj Kandpal
2026-09-11 4:29 ` sashiko-bot
2026-09-11 4:14 ` [PATCH 08/10] drm/i915/display: Implement Wa_14021768792 for BMG DP for link_m/n " Suraj Kandpal
2026-09-11 4:30 ` sashiko-bot [this message]
2026-09-11 4:14 ` [PATCH 09/10] drm/i915/dp: Extend intel_dp_can_support_m_n() for BMG M/N bypass Suraj Kandpal
2026-09-11 4:14 ` [PATCH 10/10] drm/i915/dp: Bump the max Link M/N ratio to 22 for DISPLAY_VER >= 35 Suraj Kandpal
2026-09-11 5:14 ` ✓ i915.CI.BAT: success for Implement Wa_14021768792 to bypass m_n ratio limit (rev6) Patchwork
2026-09-11 23:52 ` ✗ i915.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=20260911043050.65A871F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=suraj.kandpal@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