Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ankit Nautiyal" <ankit.k.nautiyal@intel.com>,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead
Date: Fri, 04 Dec 2026 09:36:41 +0000	[thread overview]
Message-ID: <sashiko-outbox-249524@kernel.org> (raw)
In-Reply-To: <20261204085746.391918-3-ankit.k.nautiyal@intel.com>

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 <ankit.k.nautiyal@intel.com>

> 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 <ankit.k.nautiyal@intel.com>

[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/i915/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, int target_clock,
>  	max_frl_bw = min(intel_dp->dfp.pcon_max_frl_bw,
>  			 intel_dp_hdmi_sink_max_frl(intel_dp));
>  
> -	/* converting bw from Gbps to Kbps*/
> -	max_frl_bw = 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 = max_frl_bw * 1000000 * 16 / 18;
>  
>  	/* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */
>  	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 kbps.

That causes intel_dp_mode_valid_downstream() to prune standard 1188 MHz modes
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.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=2

  reply	other threads:[~2026-12-04  9:37 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD Ankit Nautiyal
2026-12-04  9:45   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead Ankit Nautiyal
2026-12-04  9:36   ` sashiko-bot [this message]
2026-12-04  8:57 ` [PATCH v5 03/15] drm/i915/hdmi: Clamp the target_bpp only when it equals the link bpp Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state Ankit Nautiyal
2026-12-04  9:43   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 05/15] drm/dp: Add a helper to disable the PCON DSC encoder Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation Ankit Nautiyal
2026-12-04  9:38   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed Ankit Nautiyal
2026-12-04  9:38   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 08/15] drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth Ankit Nautiyal
2026-12-04  9:33   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 09/15] drm/i915/dp: Add a helper for the FRL payload bandwidth Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 10/15] drm/i915/dp: Compute the PCON DSC encoder parameters Ankit Nautiyal
2026-12-04  9:52   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 11/15] drm/i915/dp: Retrain the PCON FRL link from the link check work Ankit Nautiyal
2026-12-04  9:52   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 12/15] drm/i915/dp: Store the PCON FRL rate in the crtc state Ankit Nautiyal
2026-12-04 10:00   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 13/15] drm/i915/dp: Use the FRL rate of the stream on the HDMI link Ankit Nautiyal
2026-12-04  9:58   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 14/15] drm/i915/dp: Pick the bpc for a PCON DSC stream Ankit Nautiyal
2026-12-04  9:58   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check Ankit Nautiyal
2026-12-04  9:53   ` sashiko-bot
2026-12-04 11:05 ` ✗ i915.CI.BAT: failure for DP-HDMI PCON DSC fixes (rev5) 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-249524@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox