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 B0B1E606A322 for ; Fri, 4 Dec 2026 09:20:46 +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=Ec4jSBZq Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A290A112DCF; Fri, 4 Dec 2026 09:20:40 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6214E112DCF; Fri, 4 Dec 2026 09:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796376035; x=1827912035; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OIeAV2XKI5JWMwVoZZR6wc7WuS80ezi6eapTaBDSzJ0=; b=Ec4jSBZqt6nxcDpqrdx6ErTtxiNnh6RjhJzpaHRDi4WX5xL9NZ4Fvmz3 oCa60BzUD6cB6oc9d/mLTh56qoRE5/S+ycM3z+ZiTntI+AQ4GvG5uHUfu 7B2SiJb+g/oghHVENvRjOpWseBgsMjiQA/Un5HE2VTizcRa23BWuKNQtm RU/7/sbnwIi6xVBylUqFHYgjHUZtZnAvbUqmeBXBzCKMH0X2KNTkf0/3Z IN+peq8oWa50tmxWuF8wtpWi8ZZi6iPvmOrmfRdgBA0hH/RXQicnomKTa y+MYJLyDc0l6x2WOcY5rhsJQJyxDzwZe5KhlegXu2lw/DPBqkwt/WpchF A==; X-CSE-ConnectionGUID: K4v8cPioRc+UjF7klBlt8A== X-CSE-MsgGUID: INmtyt6JSGyEWuLhlYjSxQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="109013" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="109013" 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:26 -0800 X-CSE-ConnectionGUID: TQcaYb+yT9KfXi9Qv0Dplw== X-CSE-MsgGUID: f0TngBTkSsKF8NKKb+rX2g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="13864097" 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:24 -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 06/15] drm/i915/dp: Compute the PCON DSC operation Date: Fri, 4 Dec 2026 14:27:37 +0530 Message-ID: <20261204085746.391918-7-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: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" 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 When the DP stream is compressed and the HDMI link of an HDMI 2.1 PCON carries it uncompressed, the PCON decodes the DSC stream. Record this in the PCON DSC state once the DP link configuration is final. The operations for HDMI links that need DSC are added once such modes can be selected. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 2d5f7754eda0..999faf29be45 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -129,6 +129,7 @@ bool intel_dp_is_edp(struct intel_dp *intel_dp) static void intel_dp_unset_edid(struct intel_dp *intel_dp); static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp); +static bool intel_dp_is_hdmi_2_1_sink(struct intel_dp *intel_dp); /* Is link rate UHBR and thus 128b/132b? */ bool intel_dp_is_uhbr(const struct intel_crtc_state *crtc_state) @@ -3013,6 +3014,19 @@ bool intel_dp_joiner_needs_dsc(struct intel_display *display, num_joined_pipes == 4; } +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 = INTEL_PCON_DSC_DECODE; + + return 0; +} + static int intel_dp_compute_link_for_joined_pipes(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config, @@ -3098,6 +3112,10 @@ intel_dp_compute_link_for_joined_pipes(struct intel_encoder *encoder, return -EINVAL; } + ret = intel_dp_pcon_compute_config(intel_dp, pipe_config); + if (ret) + return ret; + drm_dbg_kms(display->drm, "DP lane count %d clock %d bpp input %d compressed " FXP_Q4_FMT " HDR %s link rate required %d available %d\n", pipe_config->lane_count, pipe_config->port_clock, -- 2.50.1