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 82DE3606A327 for ; Mon, 30 Nov 2026 05:17:27 +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=Dv3NeYhN Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 25A5A10E5D4; Mon, 30 Nov 2026 05:17:22 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C39810E5C7; Mon, 30 Nov 2026 05:17:16 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 9A37A609FB; Mon, 30 Nov 2026 05:17:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D49DF1F0089B; Mon, 30 Nov 2026 05:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796015835; bh=1ioV1KveEHI8r3cy3OnSxiMKbiv6MFwaW8mwjFRkEMc=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=Dv3NeYhNSGZlHuK8mUXT6akJ9w5p7MMjRY1ogw3FKzolVmzjCPh2HyiwaM3xW3onO wpRwgJRickn2vZLmFpseB7WaXegtv1v+PgwLKNP0szM679hEw5cERk2skZ8O+FayP1 kaD4MuMGlXDKPpw0De3lIL7v386NwzY0pWtKox3M5sswHIjqWFrK2dmo5wrNv9lqZO dOj8uEnxd6gLI1+S7vswa90jJjI+K4DulmQSj4Mwe/p+COkziBv2rBfELvjo+l6O1f wIyPscd8U8S2d0D09LiYcQEYpcPLric1y3sw0Y8wX7VKy2jjqWhIEWLIwlJ3MJ7QCX iUJe9yAHG9opg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 12/14] drm/i915/dp: Apply the MSA WA to the Data M/N To: "Chaitanya Kumar Borah" , intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org In-Reply-To: <20261130043253.2165877-13-chaitanya.kumar.borah@intel.com> References: <20261130043253.2165877-1-chaitanya.kumar.borah@intel.com> <20261130043253.2165877-13-chaitanya.kumar.borah@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 05:17:14 +0000 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-gfx" 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=unavailable 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: unpopulated dsc.slice_config causes WARN in intel_dp_msa_wa_compute_config() -- commit d861175d9728b7781f564c9110b32c97237cc2d9 Author: Chaitanya Kumar Borah drm/i915/dp: Apply the MSA WA to the Data M/N This commit adjusts the Data M/N values for the MSA placement workaround during DisplayPort config computation when audio is enabled. > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i9= 15/display/intel_dp.c > index 75ddfa30a3c3e..0f7be06086448 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -1858,6 +1858,46 @@ static bool intel_dp_msa_wa_link_config_valid(stru= ct intel_dp *intel_dp, > link_bpp_x16, dsc, &m_n) =3D=3D 0; > } > =20 > +static int intel_dp_msa_wa_compute_config(struct intel_dp *intel_dp, > + struct intel_crtc_state *crtc_state, > + int link_bpp_x16) > +{ > + struct intel_display *display =3D to_intel_display(intel_dp); > + struct intel_encoder *encoder =3D &dp_to_dig_port(intel_dp)->base; > + struct intel_link_m_n *m_n =3D &crtc_state->dp_m_n; > + u32 data_m =3D m_n->data_m, data_n =3D m_n->data_n; > + int ret; > + > + if (!intel_dp_msa_wa_needed(intel_dp, > + intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST), > + crtc_state->port_clock) || > + !crtc_state->has_audio) > + return 0; > + > + /* > + * The WA requires the Audio SDPs not to be split, as the HW always > + * finishes a split SDP right before transmitting the MSA. SDP > + * splitting is enabled only with 128b/132b, which the WA doesn't > + * apply to. > + */ > + drm_WARN_ON(display->drm, crtc_state->sdp_split_enable); > + > + ret =3D intel_dp_msa_wa_compute_m_n(crtc_state, crtc_state->port_clock, > + crtc_state->lane_count, link_bpp_x16, > + crtc_state->dsc.compression_enable, m_n); > + /* The link configuration selection must have rejected such a config. */ > + if (drm_WARN_ON(display->drm, ret)) > + return ret; [Severity: Medium] Can intel_dp_msa_wa_compute_m_n() fail and trigger this drm_WARN_ON() on SST DSC configurations even after link configuration selection accepted the config? intel_dp_msa_wa_compute_m_n() derives dsc_slice_count from crtc_state->dsc.slice_config: drivers/gpu/drm/i915/display/intel_dp.c:intel_dp_msa_wa_compute_m_n() { ... int dsc_slice_count =3D dsc ? intel_dsc_line_slice_count(&crtc_state->dsc.= slice_config) : 0; int active_bits =3D intel_dp_msa_wa_active_bits(adjusted_mode->crtc_hdispl= ay, link_bpp_x16, lane_count, dsc_slice_count); However, in intel_dp_dsc_compute_config(), intel_dp_dsc_compute_pipe_bpp() = -> ... -> dsc_compute_link_config() calls intel_dp_msa_wa_link_config_valid() before intel_dp_dsc_get_slice_config() populates pipe_config->dsc.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; During link config validation, crtc_state->dsc.slice_config is still zeroed, so dsc_slice_count is 0 and intel_dp_msa_wa_active_bits() omits DSC slice padding, EOC symbols, and MSA_WA_DSC_OVRHD_BITS. When intel_dp_msa_wa_compute_config() later runs with dsc.slice_config populated, the larger active_bits can push Data M above MSA_WA_DATA_N and return -ERANGE, triggering the warning and failing the modeset instead of selecting a lower compressed BPP or higher link rate. Populating pipe_config->dsc.slice_config before intel_dp_dsc_compute_pipe_bpp() in intel_dp_dsc_compute_config() would ensu= re both checks use the same slice count. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130043253.2165= 877-1-chaitanya.kumar.borah@intel.com?part=3D12