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 06/15] drm/i915/dp: Compute the PCON DSC operation
Date: Fri, 04 Dec 2026 09:38:12 +0000	[thread overview]
Message-ID: <sashiko-outbox-249526@kernel.org> (raw)
In-Reply-To: <20261204085746.391918-7-ankit.k.nautiyal@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/dp: intel_dp_pcon_compute_config() checks sink
  instead of PCON FRL
--

commit de210caf4878edfc0415e925316be92c717fcd9d
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Compute the PCON DSC operation

This commit adds intel_dp_pcon_compute_config() to record
INTEL_PCON_DSC_DECODE in crtc_state->pcon_config.dsc_op when DP DSC is
enabled on an HDMI 2.1 sink, and calls it from
intel_dp_compute_link_for_joined_pipes().

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 2d5f7754eda0c..999faf29be458 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c

[ ... ]

> @@ -3013,6 +3014,19 @@ bool intel_dp_joiner_needs_dsc(struct intel_display *display,
>  		num_joined_pipes == 4;
>  }
>  
> +static int
> +intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
> +			     struct intel_crtc_state *crtc_state)
> +{
> +	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
> +		return 0;
> +
> +	if (crtc_state->dsc.compression_enable)
> +		crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE;
> +
> +	return 0;
> +}

[Severity: Medium]
Should intel_dp_pcon_compute_config() check HDMI 2.1 PCON capability
instead of intel_dp_is_hdmi_2_1_sink()?

intel_dp_is_hdmi_2_1_sink() only checks that a branch device has an HDMI
sink reporting FRL support, without checking
intel_dp->dfp.pcon_max_frl_bw.

With DP DSC enabled, a non-HDMI-2.1 PCON connected to an HDMI 2.1 sink
records INTEL_PCON_DSC_DECODE (contradicting enum intel_pcon_dsc_op),
while an HDMI 2.1 PCON driving an HDMI 2.0 sink leaves dsc_op as
INTEL_PCON_NO_DSC.

This misclassifies crtc_state->pcon_config.dsc_op in CRTC state tracking
and intel_crtc_state_dump().  Checking intel_dp->dfp.pcon_max_frl_bw > 0
(or reusing intel_dp_pcon_sink_support_frl() if both ends must support
FRL) would avoid the mismatch.

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

  reply	other threads:[~2026-12-04  9:38 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
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 [this message]
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-249526@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