From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Imre Deak <imre.deak@intel.com>,
Mika Kahola <mika.kahola@intel.com>,
Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
Sasha Levin <sashal@kernel.org>
Subject: [PATCH 6.18.y 2/2] drm/i915/ptl+: Fix TypeC detection for eDP on port B
Date: Thu, 3 Dec 2026 19:31:39 -0500 [thread overview]
Message-ID: <20261204003011.1451981-2-sashal@kernel.org> (raw)
In-Reply-To: <20261204003011.1451981-1-sashal@kernel.org>
From: Imre Deak <imre.deak@intel.com>
[ Upstream commit b8c29d1e64a712decce01e3671bf7e6ec6bd70a0 ]
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 <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20261029113017.618286-7-imre.deak@intel.com
(cherry picked from commit 20e3d954f70486bf14000fc1a6dac7c34e6e4f07)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
[ sashal: Adjusted context lines to the tree's older comment layout above intel_phy_is_tc() and shifted offsets, with a prerequisite commit pulled in to split out intel_tc_phy_port_to_tc(). ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/i915/display/intel_display.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 95bca3473ffa8..3dee634b4706b 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -1837,6 +1837,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;
+}
+
/* Prefer intel_encoder_is_tc() */
bool intel_phy_is_tc(struct intel_display *display, enum phy phy)
{
@@ -1847,6 +1852,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)
@@ -1893,6 +1901,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
--
2.53.0
prev parent reply other threads:[~2026-12-04 0:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 10:28 FAILED: patch "[PATCH] drm/i915/ptl+: Fix TypeC detection for eDP on port B" failed to apply to 6.18-stable tree gregkh
2026-12-04 0:31 ` [PATCH 6.18.y 1/2] drm/i915/tc: Add separate intel_tc_phy_port_to_tc() for TC DDI/PHY ports Sasha Levin
2026-12-04 0:31 ` Sasha Levin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204003011.1451981-2-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=imre.deak@intel.com \
--cc=joonas.lahtinen@linux.intel.com \
--cc=mika.kahola@intel.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.