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 3920E606A322 for ; Fri, 4 Dec 2026 09:54:12 +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=iLor9PHe Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F3DEA112E76; Fri, 4 Dec 2026 09:54:06 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2B3D5112E34; Fri, 4 Dec 2026 09:54:01 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 2B7E2621E9; Fri, 4 Dec 2026 09:54:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B75D61F000CE; Fri, 4 Dec 2026 09:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796378039; bh=7zIipvTmC1W4SIvTyz4i8F+ETZaTPawFqdyIi7p0Dq4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=iLor9PHeuyYLd9vhkT9LOGtL8HlcJALId9Txjj5c6yAwJRuMYxErjs+al6sDLxXkW 6bdYeywEBSdxd6lIAUKzXAteW8wW/ANfAaxPTpT89iqyjU3jQteJkAMzm063uvLP83 CzTMHc+X9eGIGeMzDYisaMWeQcRk2Oo93hmcxgrDADbz26cg4VSzP9Nu4VteOMvr3b nzoab0Eu92s8uLC2FwusEuHLLG7JU0V5TLFk8aNp3gUbsi49QMcksKV36a5bxBpven WMwp8AfVtvIypWRCB15QNFvySKubl0oYh1U6mHQPlXAYXZ+63vEzHRXQmgQ/VUNaRr vM/aTFZct/VHw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check To: "Ankit Nautiyal" , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261204085746.391918-16-ankit.k.nautiyal@intel.com> References: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> <20261204085746.391918-16-ankit.k.nautiyal@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 09:53:59 +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=-11.2 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 3 potential issues to consider: - [Medium] drm/i915/dp: PCON DSC mode_valid misses per-mode DP DSC and FEC checks - [Medium] drm/i915/dp: FRL training skips rate reduction for PCON DSC modes - [Medium] drm/i915/dp: PCON DSC compute omits sink/PCON format, bpc, and PPS caps -- commit bc75fbbf3bd6bf6b6b5b7a81601106a79bf3cab6 Author: Ankit Nautiyal drm/i915/dp: Allow PCON DSC modes through the FRL bw check This commit updates intel_dp_mode_valid_downstream() to accept modes that exceed uncompressed HDMI FRL bandwidth when both connector DP DSC and PCON HDMI DSC encoding are available, and removes the corresponding FIXME comment in intel_dp_frl_bw_valid(). > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i9= 15/display/intel_dp.c > index 94744ead1a6e9..be40a882e90da 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c [ ... ] > @@ -1339,12 +1338,22 @@ intel_dp_mode_valid_downstream(struct intel_conne= ctor *connector, > { > struct intel_dp *intel_dp =3D intel_attached_dp(connector); > int bpc =3D 8; /* Assume 8bpc for the DP++/HDMI/DVI TMDS/FRL bw check */ > + enum drm_mode_status status; > =20 > if (intel_dp->dfp.max_dotclock && > target_clock > intel_dp->dfp.max_dotclock) > return MODE_CLOCK_HIGH; > =20 > - return intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_format,= true); > + status =3D intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_for= mat, true); > + if (status !=3D MODE_CLOCK_HIGH) > + return status; > + > + /* The PCON may be able to compress the stream for the HDMI link */ > + if (intel_dp_has_dsc(connector) && > + intel_dp_hdmi_dsc_possible(intel_dp, mode, target_clock, bpc, sink_= format)) > + return MODE_OK; > + > + return status; > } [Severity: Medium] Is checking intel_dp_has_dsc() sufficient here to guarantee that DP DSC can be enabled for the mode? intel_dp_has_dsc() only checks static connector capabilities and skips FEC support, intel_dp_mode_valid_with_dsc(), joiner needs, and DSC bubble dotclock limits. In intel_dp_mode_valid_format(), a mode that fits the DP link uncompressed still reaches here even when local dsc is false. At modeset time, intel_dp_compute_formats() with respect_downstream_limits set requires DP DSC and fails, for example in intel_dp_supports_dsc() witho= ut FEC. intel_dp_compute_config() then falls back to ignoring downstream limi= ts and either fails with -EINVAL or drives an out-of-spec uncompressed FRL lin= k. [Severity: Medium] Does switching from an uncompressed mode to one of these PCON DSC modes lea= ve the HDMI FRL link running above the sink's DSC_Max_FRL_Rate? intel_dp_pcon_compute_config() selects the lower dsc_max_frl_rate for PCON DSC streams, but intel_dp_check_frl_training() skips retraining whenever frl.trained_rate_gbps >=3D pcon_config.frl_rate_gbps. intel_dp_pcon_is_frl_trained() similarly accepts any higher trained mask. On an HDMI 2.1 sink where dsc_max_frl_rate is below max_frl_rate (such as 40 Gbps vs 48 Gbps), switching from an uncompressed mode to a PCON DSC mode leaves the FRL link above the sink's DSC limit, which can cause the sink to reject or corrupt the compressed stream. [Severity: Medium] Can intel_dp_hdmi_dsc_possible() accept YCbCr 4:2:0 or deep-color modes that exceed the HDMI sink's or PCON's DSC encoder capabilities? intel_dp_pcon_dsc_enc_compute() never checks sink_format against hdmi.dsc_cap.native_420 or DP_PCON_DSC_ENC_COLOR_FMT_CAP, nor bpc against hdmi.dsc_cap.bpc_supported or DP_PCON_DSC_ENC_COLOR_DEPTH_CAP. intel_dp_pcon_can_encode_dsc() also omits DP_PCON_DSC_ENCODER_SUPPORTED and DP_PCON_DSC_PPS_ENC_OVERRIDE, even though intel_dp_pcon_dsc_configure() programs PPS override parameters. On a sink that advertises DSC 1.2 without Native 4:2:0 DSC, or only 8 bpc D= SC while supporting 10/12 bpc uncompressed, unsupported modes pass validation and get programmed into the PCON, causing blank or corrupted output. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204085746.3919= 18-1-ankit.k.nautiyal@intel.com?part=3D15