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 6198D606A330 for ; Fri, 4 Dec 2026 09:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=idtn5q1R Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F17F9112E1D; Fri, 4 Dec 2026 09:21:03 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 13DB4112E1B; Fri, 4 Dec 2026 09:20:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796376057; x=1827912057; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wqmaVLuNvzeR3lkVVrlu+4ftnMPJFWNVCoQi5bu+11Q=; b=idtn5q1RVKM57wz7zaVeRKkvcqO/pR1mU4hJOn6raRGaW0D6aPsUNG1b Ru80tYH1MWGuNZiM1fd3Ud4iL9raHo0MD0HmSHN9qKK5XmrK9TOz5aMyk ZKHyyYK5kW52E851Z0xJ/ZN5qITx9cheAAmaazsVDKVJW7MkNsXe3g0+z ytvIYOcOV7Mwa0HxHvqOrVAKuYjf3bUFwD4Sa7KTdhQeLspkKWeJ3lr/P kXhiLD4tkCV2teGnUCnUhxsfG67jiMPt2xEVmMCBEMJGb93x0mV6IrOXy abQ2YpPi7UpJ52nU3EKPbK6z3nxPFM6DE+ub671nayjVCvMvPHOdawSLt A==; X-CSE-ConnectionGUID: b6nBalVGSummF8ei/w3OOw== X-CSE-MsgGUID: iwt5JTUfQ1KUH8NRiy9qvQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="109081" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="109081" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa114.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:13:44 -0800 X-CSE-ConnectionGUID: 8Oj+T3mSRfW0CIMvROAJgA== X-CSE-MsgGUID: SWVZQQ0nTvqKZciEKVFcTA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="13864251" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:13:42 -0800 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, alexander.kaplan@sms-medipool.de, suraj.kandpal@intel.com, Ankit Nautiyal Subject: [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check Date: Fri, 4 Dec 2026 14:27:46 +0530 Message-ID: <20261204085746.391918-16-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> References: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Sender: "Intel-xe" X-Spam-Status: No, score=-19.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,USER_AGENT_GIT 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 Currently the FRL bandwidth check rejects every mode whose uncompressed bandwidth exceeds the FRL rate, even though an HDMI 2.1 PCON can decode the DP stream and encode DSC 1.2 for the HDMI sink. High bandwidth modes (e.g. 4k120, 8k60) get pruned for such PCONs, although the PCON and the sink can carry them. The previous change lets the bpc selection use the DSC encoder of the PCON, but the mode valid check still prunes such modes. Accept such a mode in the mode valid check if the HDMI link can carry it compressed, and the DP stream can be compressed too: the PCON can't encode an uncompressed stream. This is the same check that the bpc selection uses, so a mode that is listed can also be configured. The DP spec defines the decoding and re-encoding only for a DSC v1.1 source, and the pass-through for a DSC v1.2a (or higher) one. The pass-through is not handled here, so a DSC 1.2a stream is re-encoded as well for now. Tested with a BizLink USB-C to DP80 cable (PCON) and an HDMI 2.1 panel This takes care of the FIXME in the FRL bandwidth check. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 94744ead1a6e..be40a882e90d 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1225,7 +1225,6 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock, /* check for MAX FRL BW for both PCON and HDMI2.1 sink */ max_frl_bw = intel_dp_hdmi_frl_payload_bw(intel_dp, false); - /* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */ if (target_bw > max_frl_bw) return MODE_CLOCK_HIGH; @@ -1339,12 +1338,22 @@ intel_dp_mode_valid_downstream(struct intel_connector *connector, { struct intel_dp *intel_dp = intel_attached_dp(connector); int bpc = 8; /* Assume 8bpc for the DP++/HDMI/DVI TMDS/FRL bw check */ + enum drm_mode_status status; if (intel_dp->dfp.max_dotclock && target_clock > intel_dp->dfp.max_dotclock) return MODE_CLOCK_HIGH; - return intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_format, true); + status = intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_format, true); + if (status != MODE_CLOCK_HIGH) + return status; + + /* The PCON may be able to compress the stream for the HDMI link */ + if (intel_dp_has_dsc(connector) && + intel_dp_hdmi_dsc_possible(intel_dp, mode, target_clock, bpc, sink_format)) + return MODE_OK; + + return status; } static enum drm_mode_status -- 2.50.1