From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207302; b=Vo4KSc8lxYfQu5ZK8Kbmb0ed3RrL+vnWbRT3/3ibdtoMYpgc1SHvlDAzLriIKfE7bVjJ JKoHiFLVkmnkvQKAV2MvU2N7SuOvUr4oruoSmLjJQtBOxlcKzO7cuJ7RpHufTTNok1ZXJ 5xT2sflCc4scOIFd9pGq+8x1nd68PN8ZbzDhv7Xwcl//Nz0zwxq6Fw0R3kWMSeyL9RDib IXBJw3G0bY1+4UrhM4oIgXGuNRcmB+CECsqMjHk+Hn9PM9vbMw0e67J2ZS+zKdytmdP12 vQe9IJJenOHionPZKDXMZ5MX8kVg5XeKEgCGVQO31RLcDhdyhD6qVPVoE9UI6fIK+1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207302; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Le3hLeyQUL36gz9NPncuBA2YSIvDBI7ZeQCTUBST9+Y=; b=X6uzLyxIZdvqcZFXLW+ro8rx8YCLcWfgPYLcHzY3zDIevrCnT/WsWUxsiw1Wp+oHmywJ 3A29CpLTRPSwaVUMExpRpBNX1pIx4kRNJYBCEWe7oWP9+FvAliB1gg7V+5uXP/mo5xnkr Ps4U/a1B197y2SoeOQNfmrvz9L2VJ3okRkPHRqZmslaL9xQD5mB9vtCxLMjMtKX663FUW CuM/dC+66tp+0T1QjML1jYX/C4tk5ClRLqvQuFKf9yeoqrpT1T64UIV5x9Te2j4rbyTv9 WboQ3rpLQKoBIHNwcNRCGgybOM3g9XsSg47OQPdC1NTmeCjBxT1cdIC5bzlvYRDrJYA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2aPWzM7l; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6F12606A327 for ; Wed, 2 Dec 2026 10:28:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2aPWzM7l Received: by smtp.kernel.org (Postfix) with ESMTPSA id B673B1F00A1D; Wed, 2 Dec 2026 10:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796207302; bh=Le3hLeyQUL36gz9NPncuBA2YSIvDBI7ZeQCTUBST9+Y=; h=Subject:To:Cc:From:Date; b=2aPWzM7lkHpDmqv427XbIEXfx6KWql0p5Yvy15sVAthoIqA3NUSGgpMTzADGxlZIe pzX4FHus58Sm6t8tGiTYjeM4w77pko+h7zgQvsun2LVbdCBIBQyiiArnszCYYLQP13 CFCIRXaa1ReERlO2FaMgus/0aihpiC2hlPQMB5wA= Subject: FAILED: patch "[PATCH] drm/i915/ptl+: Fix TypeC detection for eDP on port B" failed to apply to 6.18-stable tree To: imre.deak@intel.com,joonas.lahtinen@linux.intel.com,mika.kahola@intel.com Cc: From: Date: Wed, 02 Dec 2026 11:28:19 +0100 Message-ID: <2026120219-reusable-stonewall-4356@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.18-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y git checkout FETCH_HEAD git cherry-pick -x b8c29d1e64a712decce01e3671bf7e6ec6bd70a0 # git commit -s git send-email --to '' --in-reply-to '2026120219-reusable-stonewall-4356@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From b8c29d1e64a712decce01e3671bf7e6ec6bd70a0 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Thu, 29 Oct 2026 13:30:17 +0200 Subject: [PATCH] drm/i915/ptl+: Fix TypeC detection for eDP on port B On PTL+ platforms with eDP on TypeC, port B's DDI is connected to a C20 TypeC PHY. Identify PHY B as TypeC and map port B to TC_PORT_1 when eDP TypeC support is enabled. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/9196 CC: stable@vger.kernel.org # 6.14+ Reviewed-by: Mika Kahola Signed-off-by: Imre Deak Link: https://patch.msgid.link/20261029113017.618286-7-imre.deak@intel.com (cherry picked from commit 20e3d954f70486bf14000fc1a6dac7c34e6e4f07) Signed-off-by: Joonas Lahtinen diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index f79caeb5a82e..b897678a93c0 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -1904,6 +1904,11 @@ bool intel_phy_is_combo(struct intel_display *display, enum phy phy) return false; } +static bool intel_phy_is_edp_on_tc(struct intel_display *display, enum phy phy) +{ + return DISPLAY_RUNTIME_INFO(display)->edp_typec_support && phy == PHY_B; +} + /* * This function returns true if the DDI port respective to the PHY enumeration * is a Type-C capable port. @@ -1924,6 +1929,9 @@ bool intel_phy_is_tc(struct intel_display *display, enum phy phy) if (display->platform.dgfx) return false; + if (intel_phy_is_edp_on_tc(display, phy)) + return true; + if (DISPLAY_VER(display) >= 13) return phy >= PHY_F && phy <= PHY_I; else if (display->platform.tigerlake) @@ -1974,6 +1982,9 @@ enum phy intel_port_to_phy(struct intel_display *display, enum port port) */ enum tc_port intel_port_to_tc(struct intel_display *display, enum port port) { + if (intel_phy_is_edp_on_tc(display, intel_port_to_phy(display, port))) + return TC_PORT_1; + if (DISPLAY_VER(display) >= 12) return TC_PORT_1 + port - PORT_TC1; else