Skip to contentSkip to conversation

drm/i915/dp: Check for Low voltage IO only for eDP

PATCH In review Ankit Nautiyal 3 participants 5 messages Jun 24, 2022 – Jun 29, 2022

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

PATCH 1/1 drm/i915/dp: Check for Low voltage IO only for eDP

The low voltage sku check can be ignored as OEMs need to consider that when designing the board and then put any limits in VBT.

Due to this check many DP sink that can be run with higher link rate, are run at lower link rate, thereby pruning the resolutions that are intended to be working as per bspec.

However, some eDP panels are getting issues [1] with higher link rate. So keep the low voltage check for eDP, but ignore for DP sinks.
[1] https://gitlab.freedesktop.org/drm/intel/-/issues/6205

---
 drivers/gpu/drm/i915/display/intel_dp.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +6 -7
index 32292c0be2bd..c31ea2b418cf 100644
@@ -405,7 +405,8 @@ static int icl_max_source_rate(struct intel_dp *intel_dp)
 	enum phy phy = intel_port_to_phy(dev_priv, dig_port->base.port);
 
 	if (intel_phy_is_combo(dev_priv, phy) &&
-	    (is_low_voltage_sku(dev_priv, phy) || !intel_dp_is_edp(intel_dp)))
+	    intel_dp_is_edp(intel_dp) &&
+	    is_low_voltage_sku(dev_priv, phy))
 		return 540000;
 
 	return 810000;
@@ -413,11 +414,7 @@ static int icl_max_source_rate(struct intel_dp *intel_dp)
 
 static int ehl_max_source_rate(struct intel_dp *intel_dp)
 {
-	struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
-	struct drm_i915_private *dev_priv = to_i915(dig_port->base.base.dev);
-	enum phy phy = intel_port_to_phy(dev_priv, dig_port->base.port);
-
-	if (intel_dp_is_edp(intel_dp) || is_low_voltage_sku(dev_priv, phy))
+	if (intel_dp_is_edp(intel_dp))
 		return 540000;
 
 	return 810000;
@@ -429,7 +426,9 @@ static int dg1_max_source_rate(struct intel_dp *intel_dp)
 	struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev);
 	enum phy phy = intel_port_to_phy(i915, dig_port->base.port);
 
-	if (intel_phy_is_combo(i915, phy) && is_low_voltage_sku(i915, phy))
+	if (intel_phy_is_combo(i915, phy) &&
+	    intel_dp_is_edp(intel_dp) &&
+	    is_low_voltage_sku(i915, phy))
 		return 540000;
 
 	return 810000;
Signature · 1 line
2.25.1
#1 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/dp: Check for Low voltage IO only for eDP

== Series Details ==

== Series Details ==

Series: drm/i915/dp: Check for Low voltage IO only for eDP
URL : https://patchwork.freedesktop.org/series/105573/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11802 -> Patchwork_105573v1
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_105573v1 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_105573v1, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

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

Participating hosts (36 -> 38)
------------------------------

Additional (3): fi-tgl-u2 bat-adlm-1 fi-pnv-d510
Missing (1): fi-bdw-samus

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_105573v1:

### IGT changes ###

#### Possible regressions ####

* igt@gem_ctx_create@basic-files:
- fi-rkl-11600: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11802/fi-rkl-11600/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-rkl-11600/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_selftest@live@hangcheck:
- {bat-adlm-1}: NOTRUN -> [INCOMPLETE][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/bat-adlm-1/igt@i915_selftest@[email protected]

* igt@kms_pipe_crc_basic@hang-read-crc:
- {bat-adlm-1}: NOTRUN -> [SKIP][4] +8 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/bat-adlm-1/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_huc_copy@huc-copy:
- fi-tgl-u2: NOTRUN -> [SKIP][5] ([i915#2190])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-tgl-u2/igt@[email protected]

* igt@i915_selftest@live@gem:
- fi-pnv-d510: NOTRUN -> [DMESG-FAIL][6] ([i915#4528])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-pnv-d510/igt@i915_selftest@[email protected]

* igt@i915_suspend@basic-s2idle-without-i915:
- bat-dg1-6: NOTRUN -> [INCOMPLETE][7] ([i915#6011])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/bat-dg1-6/igt@[email protected]

* igt@kms_busy@basic@flip:
- fi-tgl-u2: NOTRUN -> [DMESG-WARN][8] ([i915#402])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-tgl-u2/igt@kms_busy@[email protected]

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-hsw-4770: NOTRUN -> [SKIP][9] ([fdo#109271] / [fdo#111827])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-hsw-4770/igt@[email protected]

* igt@kms_chamelium@hdmi-edid-read:
- fi-tgl-u2: NOTRUN -> [SKIP][10] ([fdo#109284] / [fdo#111827]) +7 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-tgl-u2/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- fi-tgl-u2: NOTRUN -> [SKIP][11] ([i915#4103])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-tgl-u2/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- fi-tgl-u2: NOTRUN -> [SKIP][12] ([fdo#109285])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-tgl-u2/igt@[email protected]

* igt@kms_psr@primary_page_flip:
- fi-pnv-d510: NOTRUN -> [SKIP][13] ([fdo#109271]) +42 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-pnv-d510/igt@kms_psr@primary_page_flip.html

* igt@kms_setmode@basic-clone-single-crtc:
- fi-tgl-u2: NOTRUN -> [SKIP][14] ([i915#3555])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-tgl-u2/igt@[email protected]

* igt@runner@aborted:
- fi-pnv-d510: NOTRUN -> [FAIL][15] ([fdo#109271] / [i915#2403] / [i915#4312])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-pnv-d510/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [FAIL][16] ([i915#4312])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-rkl-11600/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@gt_engines:
- bat-dg1-6: [INCOMPLETE][17] ([i915#4418]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11802/bat-dg1-6/igt@i915_selftest@live@gt_engines.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/bat-dg1-6/igt@i915_selftest@live@gt_engines.html

* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: [INCOMPLETE][19] ([i915#3303] / [i915#4785]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11802/fi-hsw-4770/igt@i915_selftest@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105573v1/fi-hsw-4770/igt@i915_selftest@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2403]: https://gitlab.freedesktop.org/drm/intel/issues/2403
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4418]: https://gitlab.freedesktop.org/drm/intel/issues/4418
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5763]: https://gitlab.freedesktop.org/drm/intel/issues/5763
[i915#5903]: https://gitlab.freedesktop.org/drm/intel/issues/5903
[i915#6011]: https://gitlab.freedesktop.org/drm/intel/issues/6011

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

* Linux: CI_DRM_11802 -> Patchwork_105573v1

CI-20190529: 20190529
CI_DRM_11802: a9cd66449a986ed9cd1e90f0dbda3bf1a11619d9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6541: 02153f109bd422d93cfce7f5aa9d7b0e22fab13c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_105573v1: a9cd66449a986ed9cd1e90f0dbda3bf1a11619d9 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

2ac0be80fd95 drm/i915/dp: Check for Low voltage IO only for eDP

== Logs ==

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

#2 lore raw
In reply to Ankit Nautiyal

drivers/gpu/drm/i915/display/intel_dp.c static int icl_max_source_rate(struct intel_dp *intel_dp) · line 418

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
-	if (intel_dp_is_edp(intel_dp) || is_low_voltage_sku(dev_priv, phy))
+	if (intel_dp_is_edp(intel_dp))
 		return 540000;

Shouldn't the low voltage check be for both eDP and is low voltage sku?

Thanks and Regards,
Arun R Murthy
--------------------

#3 lore raw

Hi Arun,

Thanks for the comments. Please find my response inline:

Quoted 4 lines · Arun R

drivers/gpu/drm/i915/display/intel_dp.c static int icl_max_source_rate(struct intel_dp *intel_dp) · line 418

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
-	if (intel_dp_is_edp(intel_dp) || is_low_voltage_sku(dev_priv, phy))
+	if (intel_dp_is_edp(intel_dp))
  		return 540000;

Shouldn't the low voltage check be for both eDP and is low voltage sku?

For JSP/EHL there is SOC PHY restriction for Como phy port with eDP to support only HBR2, 5.4GHz.

But the DP can support HBR3 8.1 GHz. Bspec: 32247

So for eDP for this platform we do not check for low voltage IO port.

Regards,

Ankit

Quoted 4 lines

Thanks and Regards,
Arun R Murthy
--------------------

Reviewed-by
#4 lore raw
Quoted 6 lines · Arun R
Quoted 4 lines

drivers/gpu/drm/i915/display/intel_dp.c static int icl_max_source_rate(struct intel_dp *intel_dp) · line 418

Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
-	if (intel_dp_is_edp(intel_dp) || is_low_voltage_sku(dev_priv, phy))
+	if (intel_dp_is_edp(intel_dp))
  		return 540000;

Shouldn't the low voltage check be for both eDP and is low voltage sku?

Quoted 7 lines

For JSP/EHL there is SOC PHY restriction for Como phy port with eDP to support only HBR2, 5.4GHz.

But the DP can support HBR3 8.1 GHz. Bspec: 32247

So for eDP for this platform we do not check for low voltage IO port.

Its better to add this as a comment in the code.
Upon adding this in comments

Thanks and Regards,
Arun R Murthy
--------------------