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 3F384606A32C for ; Fri, 4 Dec 2026 09:38:57 +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=UAmt+36y Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CBDF3112E5C; Fri, 4 Dec 2026 09:38:51 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id F390D112E2C; Fri, 4 Dec 2026 09:38:45 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 7919F61CDE; Fri, 4 Dec 2026 09:38:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0ACBC1F0092C; Fri, 4 Dec 2026 09:38:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796377125; bh=4LKZzpx2g4YSDHGjxmv5NFXyfQkxKngavdkhWkOo4pM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=UAmt+36yB5Zs7B/Co9Rme4bRo/Bub/DYiqdvSqNoPdfdRqbwTd7Fw57VshV3l4bAN mroE8iCxZuYrKfe+X7UrvxT2QNFHTEMYaTCBZh4TbM68ROENwOpbdQyNVMGbs0CgBN 6jtvvHwt1gtKVPKEgiY/HlWXxsJL6QWRZIglwnSJfGB8hpGYSw4L6CSo/okAZ09IGx tzovKcgZ6HsR5Ud2dLxluCI6BHE1CwlkmFhnoUO2u6Zku+RVSalCzlusE9Epmya4hr ssHGWgRMlvUlmF3ycC6nDDOxam9ucMQ2KIBZYZxCur+plh6RfXnB3xHOBlRwS9SXDh uETgQbt4AjOdg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed To: "Ankit Nautiyal" , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261204085746.391918-8-ankit.k.nautiyal@intel.com> References: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> <20261204085746.391918-8-ankit.k.nautiyal@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 09:38:44 +0000 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-gfx" 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=unavailable 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: - [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 > 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 [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/i9= 15/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; > =20 > + if (crtc_state->pcon_config.dsc_op !=3D INTEL_PCON_DSC_DECODE_ENCODE) { > + ret =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204085746.3919= 18-1-ankit.k.nautiyal@intel.com?part=3D7