Skip to contentSkip to conversation

drm/i915/xe3: Restrict PTL intel_encoder_is_c10phy() to only PHY A

PATCH Superseded Dnyaneshwar Bhadane 3 participants 3 messages Sep 9, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/xe3: Restrict PTL intel_encoder_is_c10phy() to only PHY A

On PTL, no combo PHY is connected to PORT B. However, PORT B can still be used for Type-C and will utilize the C20 PHY for eDP over Type-C. In such configurations, VBTs also enumerate PORT B.

This leads to issues where PORT B is incorrectly identified as using the C10 PHY, due to the assumption that returning true for PORT B in intel_encoder_is_c10phy() would not cause problems.

From PTL's perspective, only PORT A/PHY A uses the C10 PHY.

Update the helper intel_encoder_is_c10phy() to return true only for PORT A/PHY on PTL.

Bspec: 72571,73944

---
 drivers/gpu/drm/i915/display/intel_cx0_phy.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_cx0_phy.c +2 -7
index 801235a5bc0a..33963ad14cfa 100644
@@ -39,13 +39,8 @@ bool intel_encoder_is_c10phy(struct intel_encoder *encoder)
 	struct intel_display *display = to_intel_display(encoder);
 	enum phy phy = intel_encoder_to_phy(encoder);
 
-	/* PTL doesn't have a PHY connected to PORT B; as such,
-	 * there will never be a case where PTL uses PHY B.
-	 * WCL uses PORT A and B with the C10 PHY.
-	 * Reusing the condition for WCL and extending it for PORT B
-	 * should not cause any issues for PTL.
-	 */
-	if (display->platform.pantherlake && phy < PHY_C)
+	if ((display->platform.pantherlake && phy == PHY_A) ||
+	    ((DISPLAY_VERx100(display) == 3002) && phy == PHY_B))
 		return true;
 
 	if ((display->platform.lunarlake || display->platform.meteorlake) && phy < PHY_C)
Signature · 1 line
2.51.0
#1 lore raw

✓ i915.CI.BAT: success for drm/i915/xe3: Restrict PTL intel_encoder_is_c10phy() to only PHY A

== Series Details ==

== Series Details ==

Series: drm/i915/xe3: Restrict PTL intel_encoder_is_c10phy() to only PHY A
URL : https://patchwork.freedesktop.org/series/154220/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_17155 -> Patchwork_154220v1
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_154220v1/index.html

Participating hosts (42 -> 41)
------------------------------

Missing (1): fi-snb-2520m

Known issues
------------

Here are the changes found in Patchwork_154220v1 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live:
- bat-mtlp-8: [PASS][1] -> [DMESG-FAIL][2] ([i915#12061]) +1 other test dmesg-fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17155/bat-mtlp-8/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_154220v1/bat-mtlp-8/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@workarounds:
- bat-dg2-11: [DMESG-FAIL][3] ([i915#12061]) -> [PASS][4] +1 other test pass
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17155/bat-dg2-11/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_154220v1/bat-dg2-11/igt@i915_selftest@[email protected]
- bat-mtlp-9: [DMESG-FAIL][5] ([i915#12061]) -> [PASS][6] +1 other test pass
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17155/bat-mtlp-9/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_154220v1/bat-mtlp-9/igt@i915_selftest@[email protected]

#### Warnings ####

* igt@i915_selftest@live:
- bat-atsm-1: [DMESG-FAIL][7] ([i915#12061] / [i915#13929]) -> [DMESG-FAIL][8] ([i915#12061] / [i915#14204])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17155/bat-atsm-1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_154220v1/bat-atsm-1/igt@[email protected]

* igt@i915_selftest@live@mman:
- bat-atsm-1: [DMESG-FAIL][9] ([i915#13929]) -> [DMESG-FAIL][10] ([i915#14204])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17155/bat-atsm-1/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_154220v1/bat-atsm-1/igt@i915_selftest@[email protected]

[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#13929]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13929
[i915#14204]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14204

Build changes
-------------

* Linux: CI_DRM_17155 -> Patchwork_154220v1

CI-20190529: 20190529
CI_DRM_17155: ff2a95224a6cbe8bffc709a373038db02ca321cf @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8526: 13cd231d5da440137bc5d1c26fd3f7c170ace253 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_154220v1: ff2a95224a6cbe8bffc709a373038db02ca321cf @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_154220v1/index.html

Reviewed-by on v1 1/1
#2 lore raw
In reply to Dnyaneshwar Bhadane
Quoted 8 lines · Dnyaneshwar Bhadane

On PTL, no combo PHY is connected to PORT B. However, PORT B can still be used for Type-C and will utilize the C20 PHY for eDP over Type-C. In such configurations, VBTs also enumerate PORT B.

This leads to issues where PORT B is incorrectly identified as using the C10 PHY, due to the assumption that returning true for PORT B in intel_encoder_is_c10phy() would not cause problems.

Quoted 7 lines

From PTL's perspective, only PORT A/PHY A uses the C10 PHY.

Update the helper intel_encoder_is_c10phy() to return true only for PORT A/PHY on PTL.

Bspec: 72571,73944

LGTM. Need to send this to [email protected] too.

Quoted 24 lines
---
  drivers/gpu/drm/i915/display/intel_cx0_phy.c | 9 ++-------
  1 file changed, 2 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_cx0_phy.c +2 -7
index 801235a5bc0a..33963ad14cfa 100644
@@ -39,13 +39,8 @@ bool intel_encoder_is_c10phy(struct intel_encoder *encoder)
  	struct intel_display *display = to_intel_display(encoder);
  	enum phy phy = intel_encoder_to_phy(encoder);
 
-	/* PTL doesn't have a PHY connected to PORT B; as such,
-	 * there will never be a case where PTL uses PHY B.
-	 * WCL uses PORT A and B with the C10 PHY.
-	 * Reusing the condition for WCL and extending it for PORT B
-	 * should not cause any issues for PTL.
-	 */
-	if (display->platform.pantherlake && phy < PHY_C)
+	if ((display->platform.pantherlake && phy == PHY_A) ||
+	    ((DISPLAY_VERx100(display) == 3002) && phy == PHY_B))
  		return true;
 
  	if ((display->platform.lunarlake || display->platform.meteorlake) && phy < PHY_C)