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 6274C606A335 for ; Fri, 4 Dec 2026 09:43:21 +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=AxckJ0XI Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2606610E4C3; Fri, 4 Dec 2026 09:43:16 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D16510E4C3; Fri, 4 Dec 2026 09:43:10 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 005BE43D8C; Fri, 4 Dec 2026 09:43:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B05951F000CE; Fri, 4 Dec 2026 09:43:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796377389; bh=A3ThOHokVV3/VvD5PTy8BIhNFfkbgVihWuxF92b3rEM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=AxckJ0XI1MnYNaUev/oq9BPhcf32t3KJrNaY8uHPc+9uEckIKYA4VVDgvrAkjnFZM B4Tr4lpYSXsdX77QZdRXNxUn06tHB0qtGiOddd4UZFZZz4Y8PcSRmU94bgyU+CawP+ BzBMmRSrco0cL2cKq/1ULwJnScAlkLa6FllTrMUMCIAP6kAKSsQbk/70JDUqdl5SXj iq2UbHTyYQCnE/35yLRqzTwOJyltRkFO9qfjZTYDq+5s6C85O0bBCQoyuHpocvEAfi 3F9PTu5peuXmNP+Uz9S0/gQmcSE+FdOMK59pzX/kt/1yBtXRaQugNTB8pKHewzLTai o0zC3CVwkw52g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state To: "Ankit Nautiyal" , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261204085746.391918-5-ankit.k.nautiyal@intel.com> References: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> <20261204085746.391918-5-ankit.k.nautiyal@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 09:43:09 +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=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 1 potential issue to consider: - [Medium] drm/i915/dp: intel_pipe_config_compare() omits pcon_config on fastset -- commit 11d426d40cc5b9c42754f59b9f85ca99d5db238b Author: Ankit Nautiyal drm/i915/dp: Add PCON DSC state to crtc_state This commit adds pcon_config to struct intel_crtc_state to track DP->HDMI PCON DSC operation and encoder override parameters, resets it in intel_dp_dsc_reset_config(), and prints it in intel_crtc_state_dump(). > diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers= /gpu/drm/i915/display/intel_display_types.h > index 514ca067e1399..0103ac5697276 100644 > --- a/drivers/gpu/drm/i915/display/intel_display_types.h > +++ b/drivers/gpu/drm/i915/display/intel_display_types.h [ ... ] > @@ -1370,6 +1387,16 @@ struct intel_crtc_state { > struct drm_dsc_config config; > } dsc; > =20 > + /* > + * Configuration of a DP->HDMI PCON. Only used for state computation, > + * not read out from the HW. > + */ > + struct { > + enum intel_pcon_dsc_op dsc_op; > + /* Only valid for INTEL_PCON_DSC_DECODE_ENCODE */ > + struct intel_pcon_dsc_enc_config dsc_enc; > + } pcon_config; > + > /* DP tunnel used for BW allocation. */ > struct drm_dp_tunnel_ref dp_tunnel_ref; [Severity: Medium] Should intel_pipe_config_compare() compare pcon_config when fastset is true? Since pcon_config is not read out from hardware, it cannot be checked during state verification. However, intel_crtc_check_fastset() calls intel_pipe_config_compare(..., true) to downgrade modesets to fastsets, and intel_ddi_update_pipe_dp() does not reprogram the PCON. If the HDMI sink behind an active PCON is swapped for one with different capabilities, intel_dp_detect() updates the sink caps in place. A later commit setting mode_changed (such as changing HDR_OUTPUT_METADATA) then computes a new pcon_config while DP-side fields match. intel_crtc_check_fastset() downgrades that commit to a fastset, skipping PCON reprogramming and leaving HDMI output blank or corrupted until a full modeset occurs. Comparing pcon_config under if (fastset) would force a full modeset on changes without affecting state readout verification. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204085746.3919= 18-1-ankit.k.nautiyal@intel.com?part=3D4