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 790AE606A322 for ; Fri, 4 Dec 2026 09:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ehqJzTlK Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 01348112E5F; Fri, 4 Dec 2026 09:36:49 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9610B112E50; Fri, 4 Dec 2026 09:36:42 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 0D4B045755; Fri, 4 Dec 2026 09:36:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C43BB1F0092C; Fri, 4 Dec 2026 09:36:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796377001; bh=yhn+lDLH46P8gslhV+JASPRX2crDyiRP9/RFGOlB2jE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ehqJzTlKttwthjvyaDz+FGKvTXCzKYKPCba4nUDx9W+lBUKj21r9YKJb6A9jXqSkF xwzvVxDWSV8pWNJRe0J0ZsNFhzXlC9TscgVtnZD2HBc5e9pC3eNn2KMN2wrcWym56H Ta2WSs577nF+BKbl+uZbfR+Wn8pYFm8l91Ol3kT7tW4dHmcXhhm7Xnv2E8T/aIWr2O 3mtBA4z4dU3z4rBU1jzzAy96piEXYO2aqBi3IMPO6k6ValWZTc6Pi+NCifoxwTu258 ItXUdCu7eRvVNFtV3GRTExlGqvk4wqMF2wVp/Q2haQvu5x7H6J+72xbv+zNvNgxOWB HeMpDWdWEbA4Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead To: "Ankit Nautiyal" , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261204085746.391918-3-ankit.k.nautiyal@intel.com> References: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> <20261204085746.391918-3-ankit.k.nautiyal@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 09:36:41 +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=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,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 2 potential issues to consider: - [High] drm/i915/dp: 16/18 FRL scaling in intel_dp_frl_bw_valid() rejects valid modes - [Low] drm/i915/dp: missing Fixes trailer for FRL bandwidth fix -- commit 107918ff8c7591551a5888b705f8709b7104d051 Author: Ankit Nautiyal > drm/i915/dp: Account for FRL 16b/18b encoding overhead > > HDMI 2.1 FRL uses 16b/18b line coding, so only 16/18 of the raw FRL > rate carries payload. The FRL bandwidth check compared the required > bandwidth against the raw rate of the PCON and the sink, and so > accepted modes that cannot be carried. > > Use the payload bandwidth for the check. The requirement is still > estimated from the full pixel clock including blanking, so it remains > an upper bound. > > Signed-off-by: Ankit Nautiyal [Severity: Low] This looks like a bug fix for the FRL bandwidth check. Should this include: Fixes: 2f78347e3634 ("drm/i915: Capture max frl rate for PCON in dfp cap = structure") > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i9= 15/display/intel_dp.c > index 179e0d8b89c2c..c0cf0938a7b64 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -1206,8 +1206,11 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, i= nt target_clock, > max_frl_bw =3D min(intel_dp->dfp.pcon_max_frl_bw, > intel_dp_hdmi_sink_max_frl(intel_dp)); > =20 > - /* converting bw from Gbps to Kbps*/ > - max_frl_bw =3D max_frl_bw * 1000000; > + /* > + * Convert the rate from Gbps to kbps. FRL uses 16b/18b line coding, so > + * only 16/18 of the raw rate carries payload. > + */ > + max_frl_bw =3D max_frl_bw * 1000000 * 16 / 18; > =20 > /* #FIXME check bandwidth with DSC if both PCON and HDMI sink support D= SC */ > if (target_bw > max_frl_bw) [Severity: High] Does scaling max_frl_bw by 16/18 without adjusting frl_required_bw() reject valid HDMI 2.1 modes? frl_required_bw() still multiplies the full pixel clock, including blanking, by bpc * 3, whereas FRL carries blanking at much lower overhead than active pixels. For 3840x2160@120Hz (1188 MHz) at 8 bpc on a 32 Gbps FRL link, target_bw is 28,512,000 kbps against a reduced max_frl_bw of 28,444,444 kbp= s. That causes intel_dp_mode_valid_downstream() to prune standard 1188 MHz mod= es on 32 Gbps links, and intel_dp_hdmi_compute_bpc() to downgrade valid 10 bpc to 8 bpc on 40 Gbps links (and 12 bpc to 10 bpc on 24/48 Gbps links). Separately, for reduced-blanking timings such as CVT-RBv2, the full pixel clock estimate is not an upper bound either because FRL also incurs roughly 2% RS-FEC, super-block, and map framing overhead beyond 16b/18b coding. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204085746.3919= 18-1-ankit.k.nautiyal@intel.com?part=3D2