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 08/14] drm/i915/dp: Account for the MSA WA in SST link config selection
Date: Mon, 30 Nov 2026 05:06:52 +0000 [thread overview]
Message-ID: <sashiko-outbox-240384@kernel.org> (raw)
In-Reply-To: <20261130043253.2165877-9-chaitanya.kumar.borah@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/i915/dp: unpopulated dsc.slice_config in
dsc_compute_link_config()
--
commit 176a3332a1936ecf21e99d8e8823baf30a8ec05e
Author: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
drm/i915/dp: Account for the MSA WA in SST link config selection
This commit skips SST link configurations where the MSA placement
workaround causes Data M/N to exceed 1.0, for both uncompressed and DSC
link configuration selection.
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 4d871343b902f..4d286fef7748e 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
[ ... ]
> @@ -2590,6 +2625,13 @@ static int dsc_compute_link_config(struct intel_dp *intel_dp,
> dsc_bpp_x16,
> bw_overhead_flags))
> continue;
> +
> + if (!intel_dp_msa_wa_link_config_valid(intel_dp, pipe_config,
> + conn_state,
> + link_config.rate,
> + link_config.lane_count,
> + dsc_bpp_x16, true))
> + continue;
> }
>
> err = 0;
[Severity: High]
Is pipe_config->dsc.slice_config populated when dsc_compute_link_config()
calls intel_dp_msa_wa_link_config_valid()?
intel_dp_dsc_compute_config() runs intel_dp_dsc_compute_pipe_bpp() ->
dsc_compute_compressed_bpp() -> dsc_compute_link_config() before calling
intel_dp_dsc_get_slice_config() to fill pipe_config->dsc.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) {
drm_dbg_kms(display->drm,
"No Valid pipe bpp for given mode ret = %d\n", 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 is still zeroed here,
intel_dp_msa_wa_compute_m_n() computes dsc_slice_count == 0 and
intel_dp_msa_wa_active_bits() takes the uncompressed (!dsc_slice_count)
branch, omitting DSC symbol cycle padding and MSA_WA_DSC_OVRHD_BITS.
dsc_compute_link_config() can then accept a compressed bpp or link
configuration whose actual DSC Data M/N exceeds 1.0 once slice_config is
populated.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130043253.2165877-1-chaitanya.kumar.borah@intel.com?part=8
next prev parent reply other threads:[~2026-11-30 5:07 UTC|newest]
Thread overview: 23+ 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 [this message]
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
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:03 ` ✗ CI.checkpatch: warning for drm/i915/dp: Add the MSA placement Data M/N WA (Wa_14027342164) Patchwork
2026-11-30 5:04 ` ✗ CI.KUnit: failure " Patchwork
2026-11-30 5:41 ` ✓ i915.CI.BAT: success " 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-240384@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.