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 64F5A606A330 for ; Fri, 4 Dec 2026 09:38:26 +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=GgLcSyXM Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EEB61112E65; Fri, 4 Dec 2026 09:38:20 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0FC73112E53; Fri, 4 Dec 2026 09:38:14 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 2E2E360E97; Fri, 4 Dec 2026 09:38:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC34A1F000CE; Fri, 4 Dec 2026 09:38:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796377092; bh=tSe9laIYZCIVeNybD/MOQVfgRmJn4lxskAIJzhp9+PE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=GgLcSyXM8oBpGTdhQaO2MrPXLaC+VuWBMai6Ufy8DXC6ApGlr88vm12n7hXPwlIjt ysa0O2h9ZPq/mA9H+SnZfFUkU6IfD9I7rrMrwWPs73VrNQwQFXu645oRocvoE/b7IM /N14puB2GrTYI9JCULmZAOeK2zpa4ogsTcRW6FGezqKdXfttBVyksphBf7rccidcqt sMlUdXmwzllfwmFz21yk8iHrbtnjsVkQqw3DUiDLJh6geZAw+SeAj8gnsuGiFwrrJK cZfXuNRGcmq1YVime2D89xBdPJiuGKXfvZQjde+hqnylvDl5ClSS6C03+UspwJuEDs Klv+eJpkk6pIw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation To: "Ankit Nautiyal" , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261204085746.391918-7-ankit.k.nautiyal@intel.com> References: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> <20261204085746.391918-7-ankit.k.nautiyal@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 09:38:12 +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=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 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 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/i9= 15/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_displa= y *display, > num_joined_pipes =3D=3D 4; > } > =20 > +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 =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204085746.3919= 18-1-ankit.k.nautiyal@intel.com?part=3D6