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 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed
Date: Fri, 04 Dec 2026 09:38:44 +0000 [thread overview]
Message-ID: <sashiko-outbox-249527@kernel.org> (raw)
In-Reply-To: <20261204085746.391918-8-ankit.k.nautiyal@intel.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/i915/dp: intel_dp_pcon_dsc_configure() skips disable on
sink checks
- [Low] drm/i915/dp: missing Fixes trailer for commit 10fec80b48c5
--
commit 00ba4aeec950179a86038a063b9758f78b472573
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> drm/i915/dp: Disable the PCON DSC encoder unless it is needed
>
> The PCON DSC encoder is only used when the PCON re-encodes the DP stream
> as DSC 1.2 for the HDMI sink. Otherwise the PCON either decodes the
> stream, or there is no DSC at all.
>
> Currently the encoder is enabled with PPS override parameters whenever
> the PCON and the HDMI sink support DSC 1.2, even for streams that do not
> need it, and it is never disabled again.
>
> Program the encoder only for the decode and re-encode operation, and
> explicitly disable it for all the other operations.
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
[Severity: Low]
This fixes the unconditional PCON DSC encoder enablement in
intel_dp_pcon_dsc_configure(). Should this include:
Fixes: 10fec80b48c5 ("drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding")
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 999faf29be458..a469766c0a6b2 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -4610,6 +4610,13 @@ intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
> !hdmi_is_dsc_1_2)
> return;
>
> + if (crtc_state->pcon_config.dsc_op != INTEL_PCON_DSC_DECODE_ENCODE) {
> + ret = drm_dp_pcon_dsc_enc_disable(&intel_dp->aux);
> + if (ret < 0)
> + drm_dbg_kms(display->drm, "Failed to disable pcon DSC encoder\n");
> + return;
> + }
[Severity: Medium]
Can this skip disabling the PCON DSC encoder when the downstream HDMI sink
is swapped to one that does not support HDMI 2.1 or DSC 1.2?
DP_PCON_ENABLE_DSC_ENCODER and DP_PCON_ENCODER_PPS_OVERRIDE_MASK live in
DP_PROTOCOL_CONVERTER_CONTROL_2 on the PCON itself, and neither output
disable nor intel_dp_configure_protocol_converter() clears them.
Because intel_dp_pcon_dsc_configure() returns early on
!intel_dp_is_hdmi_2_1_sink() and !hdmi_is_dsc_1_2, a DSC 1.2-capable PCON
left with its encoder enabled from an earlier modeset will not reach
drm_dp_pcon_dsc_enc_disable(), causing a blank or corrupted display.
Disabling the encoder based on PCON capability before the sink checks (and
clearing intel_dp->pcon_dsc_dpcd in intel_dp_unset_edid()) would avoid
leaving stale encoder state on the PCON.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=7
next prev parent 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
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 [this message]
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-249527@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