From: sashiko-bot@kernel.org
To: "Chaitanya Kumar Borah" <chaitanya.kumar.borah@intel.com>,
intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 13/14] drm/i915/display: Enable Wa_14027342164 on Xe3p
Date: Mon, 30 Nov 2026 05:12:09 +0000 [thread overview]
Message-ID: <sashiko-outbox-240391@kernel.org> (raw)
In-Reply-To: <20261130043253.2165877-14-chaitanya.kumar.borah@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/dp: zeroed dsc.slice_config in
dsc_compute_link_config() MSA WA check
--
commit edc66f308060144911cfc28d89de19594d986df2
Author: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
drm/i915/display: Enable Wa_14027342164 on Xe3p
This commit enables the MSA placement Data M/N workaround
(Wa_14027342164) on Xe3p for non-eDP 8b/10b SST streams with audio.
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 0f7be06086448..0bd08087a9c42 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -1835,8 +1835,23 @@ int intel_dp_msa_wa_compute_m_n(const struct intel_crtc_state *crtc_state,
> static bool intel_dp_msa_wa_needed(struct intel_dp *intel_dp, bool is_mst,
> int link_rate)
> {
> - /* Wa_14027342164: Enabled by a follow-up change. */
> - return false;
> + struct intel_display *display = to_intel_display(intel_dp);
> +
> + if (!intel_display_wa(display, INTEL_DISPLAY_WA_14027342164))
> + return false;
> +
> + /*
> + * The WA doesn't account for eDP specifics today: the link
> + * configuration may be fixed, with DSC the compressed bpp isn't
> + * lowered and with MSO the link is split into segments. eDP panels
> + * generally don't support audio, so excluding eDP shouldn't leave any
> + * affected configurations unhandled.
> + */
> + if (intel_dp_is_edp(intel_dp))
> + return false;
> +
> + /* The WA applies only to 8b/10b SST */
> + return !is_mst && !drm_dp_is_uhbr_rate(link_rate);
> }
[Severity: Medium]
When validating SST DSC link configurations in dsc_compute_link_config(),
does intel_dp_msa_wa_compute_m_n() evaluate crtc_state->dsc.slice_config
before it has been populated?
In intel_dp_dsc_compute_config(), intel_dp_dsc_compute_pipe_bpp() runs
before intel_dp_dsc_get_slice_config():
drivers/gpu/drm/i915/display/intel_dp.c:intel_dp_dsc_compute_config() {
...
if (!is_mst) {
ret = intel_dp_dsc_compute_pipe_bpp(intel_dp, pipe_config,
conn_state, limits);
if (ret) {
...
return ret;
}
}
if (!intel_dp_dsc_get_slice_config(connector, adjusted_mode->crtc_clock,
adjusted_mode->crtc_hdisplay, num_joined_pipes,
&pipe_config->dsc.slice_config))
return -EINVAL;
...
}
Because pipe_config->dsc.slice_config was zeroed by
intel_dp_dsc_reset_config(), intel_dp_dsc_compute_pipe_bpp() ->
dsc_compute_compressed_bpp() -> dsc_compute_link_config() ->
intel_dp_msa_wa_link_config_valid() -> intel_dp_msa_wa_compute_m_n() gets
dsc_slice_count == 0 and computes active_bits using the uncompressed
formula (omitting DSC slice chunk padding, EOC symbols, and
MSA_WA_DSC_OVRHD_BITS).
Later in intel_dp_compute_config(), intel_dp_msa_wa_compute_config() calls
intel_dp_msa_wa_compute_m_n() again with the populated slice_config. If
the extra DSC overhead bits push the shifted Data M/N ratio over 1.0,
intel_dp_msa_wa_compute_config() hits drm_WARN_ON(display->drm, ret) and
fails the modeset instead of selecting a lower compressed bpp or higher
link rate during link config selection.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130043253.2165877-1-chaitanya.kumar.borah@intel.com?part=13
next prev parent reply other threads:[~2026-11-30 5:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 4:32 [PATCH 00/14] drm/i915/dp: Add the MSA placement Data M/N WA (Wa_14027342164) Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 01/14] drm/i915/dp: Add the MSA placement Data M/N WA computation Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 02/14] drm/i915/kunit: Export the MSA placement WA Data M/N helper for testing Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 03/14] drm/i915/kunit: Add MSA placement WA Data M/N tests Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 04/14] drm/xe/kunit: Build the MSA placement WA display tests Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 05/14] drm/i915/audio: Rename enable_audio_dsc_wa() Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 06/14] drm/i915/audio: Program Hblank Early for the MSA WA shift left Chaitanya Kumar Borah
2026-11-30 5:14 ` sashiko-bot
2026-11-30 4:32 ` [PATCH 07/14] drm/i915/dp: Move intel_dp_has_audio() and intel_dp_port_has_audio() up Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 08/14] drm/i915/dp: Account for the MSA WA in SST link config selection Chaitanya Kumar Borah
2026-11-30 5:06 ` sashiko-bot
2026-11-30 4:32 ` [PATCH 09/14] drm/i915/dp: Prune uncompressed modes failing the MSA WA Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 10/14] drm/i915/dp: Move intel_dp_mode_valid_format() and intel_dp_mode_valid() down Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 11/14] drm/i915/dp: Account for the MSA WA in DSC mode validation Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 12/14] drm/i915/dp: Apply the MSA WA to the Data M/N Chaitanya Kumar Borah
2026-11-30 5:17 ` sashiko-bot
2026-11-30 4:32 ` [PATCH 13/14] drm/i915/display: Enable Wa_14027342164 on Xe3p Chaitanya Kumar Borah
2026-11-30 5:12 ` sashiko-bot [this message]
2026-11-30 4:32 ` [PATCH 14/14] drm/i915/dp: Add a debugfs knob to disable the MSA placement WA Chaitanya Kumar Borah
2026-11-30 5:41 ` ✓ i915.CI.BAT: success for drm/i915/dp: Add the MSA placement Data M/N WA (Wa_14027342164) Patchwork
2026-11-30 7:35 ` ✗ 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=sashiko-outbox-240391@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=chaitanya.kumar.borah@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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