From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 652FC606A31C for ; Mon, 30 Nov 2026 05:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RWg1T2Yw Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F51B10E238; Mon, 30 Nov 2026 05:12:17 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id BEB2410E238; Mon, 30 Nov 2026 05:12:10 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 7CE2040B77; Mon, 30 Nov 2026 05:12:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41D4F1F000C1; Mon, 30 Nov 2026 05:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796015530; bh=7qq9CnuG+r3TNoNGJoARAmrnuAcAFgeOtML5YsjzBTo=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=RWg1T2YwOR3yUlTUifylfKVecslVziE20rrdizrocjQOhrCezDMMlRvSKKsrR2k6U j3hcaO+rvK2vO4wh2gqwJy1tngoEpxKR8BHA4du1qsj4wCXGF/HtHRSqLunJRznoTl JtNc8yFkCusf90UjpLkn2C62DyPWsUnIBb6xG5t93Ei4cCoCqwHeGt6KFoPDLXMP6/ EaI2+GpQK+T9vVBPvKpiqYmH/Gpug3z/OxZkTzGWk+dHP8n+CNWBdhORZ7pFGbV81e PVKiBpeLPcX+Lzbe5EFu4/Nky1nFm7T9BSzbm1B+KGJiTwZ/G/I6LjWxCLxjj4mboW q5aSdZFbDaGkg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 13/14] drm/i915/display: Enable Wa_14027342164 on Xe3p To: "Chaitanya Kumar Borah" , intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org In-Reply-To: <20261130043253.2165877-14-chaitanya.kumar.borah@intel.com> References: <20261130043253.2165877-1-chaitanya.kumar.borah@intel.com> <20261130043253.2165877-14-chaitanya.kumar.borah@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 05:12:09 +0000 X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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/i9= 15/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_ms= t, > int link_rate) > { > - /* Wa_14027342164: Enabled by a follow-up change. */ > - return false; > + struct intel_display *display =3D 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 =3D 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 =3D=3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130043253.2165= 877-1-chaitanya.kumar.borah@intel.com?part=3D13