From: sashiko-bot@kernel.org
To: "Suraj Kandpal" <suraj.kandpal@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v8 02/14] drm/i915/dp: Limit M/N ratio for DP
Date: Fri, 23 Oct 2026 05:18:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-182308@kernel.org> (raw)
In-Reply-To: <20261023050227.2068466-3-suraj.kandpal@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] drm/i915/dp: intel_dp_test_compute_config() clobbers M/N ratio filter
--
commit 555420da2bc55656b200265b485cbd9bd62d516b
Author: Suraj Kandpal <suraj.kandpal@intel.com>
drm/i915/dp: Limit M/N ratio for DP
This commit restricts DisplayPort link configurations to those where the
ceiling of the Link M/N ratio does not exceed the hardware limit (4 on DG2,
10 on other platforms), enforcing the constraint both in mode_valid and
when computing link configuration limits.
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index d8c0d9381471d..661a863362ad4 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
[ ... ]
> @@ -2772,6 +2886,9 @@ intel_dp_compute_config_limits(struct intel_dp *intel_dp,
> limits->link_config_filter = new_filter;
> }
>
> + if (!intel_dp_compute_m_n_ratio_limits(intel_dp, conn_state, crtc_state, limits))
> + return false;
> +
> if (!intel_dp_test_compute_config(connector, crtc_state, limits))
> return false;
[Severity: Medium]
Can intel_dp_test_compute_config() clobber the M/N ratio filter that was just
computed by intel_dp_compute_m_n_ratio_limits()?
When intel_dp->compliance.test_type == DP_TEST_LINK_TRAINING,
intel_dp_test_compute_config() calls set_filter_for_link_params() ->
set_filter_for_link_config() in drivers/gpu/drm/i915/display/intel_dp_test.c:
static bool set_filter_for_link_config(struct intel_connector *connector,
struct intel_dp_link_caps *link_caps,
const struct intel_dp_link_config *link_params,
struct link_config_limits *limits)
{
struct intel_dp_link_caps_filter new_filter = INTEL_DP_LINK_CAPS_FILTER_NONE;
if (!intel_dp_link_caps_filter_add(link_caps, &new_filter, link_params))
return false;
limits->link_config_filter = new_filter;
return true;
}
Because intel_dp_link_caps_filter_add() only checks
get_allowed_config_filter(link_caps) and ignores limits->link_config_filter,
set_filter_for_link_config() overwrites limits->link_config_filter with a
fresh filter containing the compliance test link configuration even if that
link rate was filtered out by intel_dp_compute_m_n_ratio_limits().
Should intel_dp_compute_m_n_ratio_limits() be called after
intel_dp_test_compute_config(), or should set_filter_for_link_config()
intersect against the existing limits->link_config_filter?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261023050227.2068466-1-suraj.kandpal@intel.com?part=2
next prev parent reply other threads:[~2026-10-23 5:18 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 5:02 [PATCH v8 00/14] Implement Wa_14021768792 to bypass m_n ratio limit Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 01/14] drm/i915/display: Add helper to compute link M/N ratio for reuse Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 02/14] drm/i915/dp: Limit M/N ratio for DP Suraj Kandpal
2026-10-23 5:18 ` sashiko-bot [this message]
2026-10-23 5:02 ` [PATCH v8 03/14] drm/i915/display_wa: Add support for Wa_14014191401 Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 04/14] drm/i915/dp_mst: Limit M/N ratio for MST Suraj Kandpal
2026-10-23 5:29 ` Golani, Mitulkumar Ajitkumar
2026-10-23 5:02 ` [PATCH v8 05/14] drm/i915/dp: Add M/N ratio check for DP link config Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 06/14] drm/i915/display: Add bits for link_n_extended for DISPLAY >= 14 Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 07/14] drm/i915/display_wa: Add support for Wa_14021768792 Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 08/14] drm/i915/display: Add bits for Wa_14021768792 for linkm/n ratio > 10 Suraj Kandpal
2026-10-23 5:09 ` Golani, Mitulkumar Ajitkumar
2026-10-23 5:02 ` [PATCH v8 09/14] drm/i915/display: Program " Suraj Kandpal
2026-10-23 5:11 ` Golani, Mitulkumar Ajitkumar
2026-10-23 5:02 ` [PATCH v8 10/14] drm/i915/display: Read back and compare Wa_14021768792 state Suraj Kandpal
2026-10-23 5:12 ` Golani, Mitulkumar Ajitkumar
2026-10-23 5:02 ` [PATCH v8 11/14] drm/i915/display: Dump bypass_m_n_ratio_limit in the crtc state dump Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 12/14] drm/i915/display: Implement Wa_14021768792 for BMG DP for link_m/n ratio > 10 Suraj Kandpal
2026-10-23 5:02 ` [PATCH v8 13/14] drm/i915/dp: Extend intel_dp_can_support_m_n() for BMG M/N bypass Suraj Kandpal
2026-10-23 5:16 ` Golani, Mitulkumar Ajitkumar
2026-10-23 5:02 ` [PATCH v8 14/14] drm/i915/dp: Bump the max Link M/N ratio to 22 for DISPLAY_VER >= 35 Suraj Kandpal
2026-10-23 5:11 ` ✓ CI.KUnit: success for Implement Wa_14021768792 to bypass m_n ratio limit (rev12) Patchwork
2026-10-23 5:55 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-23 7:48 ` ✓ Xe.CI.FULL: " 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=sashiko-outbox-182308@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