Skip to contentSkip to conversation

drm/i915/dp: Increase idle pattern wait timeout to 2ms

PATCH Superseded Shekhar Chauhan 2 participants 3 messages Mar 4, 2024

Subsystems (3)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/i915/dp: Increase idle pattern wait timeout to 2ms

Currently, the driver is only waiting for 1ms for idle patterns. But starting from LNL and beyond, the MST wants the driver to wait for 1640us before timing out (which we round up to 2ms).

v1: Introduced the 2ms wait timeout.
v2: Segregated the wait timeout for platforms before & after LNL.

BSpec: 68849

---
 drivers/gpu/drm/i915/display/intel_ddi.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +10 -2
index bea441590204..b72bcad60cdc 100644
@@ -3677,12 +3677,20 @@ static void intel_ddi_set_idle_link_train(struct intel_dp *intel_dp,
 	 */
 	if (port == PORT_A && DISPLAY_VER(dev_priv) < 12)
 		return;
-
-	if (intel_de_wait_for_set(dev_priv,
+	if(DISPLAY_VER(dev_priv) >= 20) {
+		if (intel_de_wait_for_set(dev_priv,
+				  dp_tp_status_reg(encoder, crtc_state),
+				  DP_TP_STATUS_IDLE_DONE, 2))
+		drm_err(&dev_priv->drm,
+			"Timed out waiting for DP idle patterns\n");
+	}
+	else {
+		if (intel_de_wait_for_set(dev_priv,
 				  dp_tp_status_reg(encoder, crtc_state),
 				  DP_TP_STATUS_IDLE_DONE, 1))
 		drm_err(&dev_priv->drm,
 			"Timed out waiting for DP idle patterns\n");
+	}
 }
 
 static bool intel_ddi_is_audio_enabled(struct drm_i915_private *dev_priv,
Signature · 1 line
2.34.1
#1 lore raw

✗ Fi.CI.CHECKPATCH: warning for drm/i915/dp: Increase idle pattern wait timeout to 2ms

== Series Details ==

== Series Details ==

Series: drm/i915/dp: Increase idle pattern wait timeout to 2ms
URL : https://patchwork.freedesktop.org/series/130643/
State : warning

== Summary ==

Error: dim checkpatch failed
aee3aa2feba0 drm/i915/dp: Increase idle pattern wait timeout to 2ms -:27: ERROR:SPACING: space required before the open parenthesis '(' #27: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:3681:
+ if(DISPLAY_VER(dev_priv) >= 20) {

-:28: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 16) #28: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:3682:
+ if (intel_de_wait_for_set(dev_priv,
[...]
+ drm_err(&dev_priv->drm,

-:29: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #29: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:3683:
+ if (intel_de_wait_for_set(dev_priv,
+ dp_tp_status_reg(encoder, crtc_state),

-:34: ERROR:ELSE_AFTER_BRACE: else should follow close brace '}' #34: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:3688:
+ }
+ else {

-:34: CHECK:BRACES: Unbalanced braces around else statement #34: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:3688:
+ else {

-:35: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 16) #35: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:3689:
+ if (intel_de_wait_for_set(dev_priv,
[...]
drm_err(&dev_priv->drm,

-:36: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #36: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:3690:
+ if (intel_de_wait_for_set(dev_priv,
dp_tp_status_reg(encoder, crtc_state),

total: 2 errors, 2 warnings, 3 checks, 22 lines checked

#2 lore raw

✗ Fi.CI.BAT: failure for drm/i915/dp: Increase idle pattern wait timeout to 2ms

In reply to Shekhar Chauhan
== Series Details ==

== Series Details ==

Series: drm/i915/dp: Increase idle pattern wait timeout to 2ms
URL : https://patchwork.freedesktop.org/series/130643/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_14379 -> Patchwork_130643v1
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_130643v1, please notify your bug team ([email protected]) 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_130643v1/index.html

Participating hosts (39 -> 36)
------------------------------

Missing (3): bat-kbl-2 bat-arls-2 fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@workarounds:
- bat-dg2-9: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14379/bat-dg2-9/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130643v1/bat-dg2-9/igt@i915_selftest@[email protected]

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

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

### CI changes ###

#### Possible fixes ####

* boot:
- fi-apl-guc: [FAIL][3] ([i915#8293]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14379/fi-apl-guc/boot.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130643v1/fi-apl-guc/boot.html

### IGT changes ###

#### Issues hit ####

* igt@gem_lmem_swapping@basic:
- fi-apl-guc: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#4613]) +3 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130643v1/fi-apl-guc/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-dg2-14: [PASS][6] -> [DMESG-FAIL][7] ([i915#9500])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14379/bat-dg2-14/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130643v1/bat-dg2-14/igt@i915_selftest@[email protected]

* igt@kms_hdmi_inject@inject-audio:
- fi-apl-guc: NOTRUN -> [SKIP][8] ([fdo#109271]) +17 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130643v1/fi-apl-guc/igt@[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
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#8293]: https://gitlab.freedesktop.org/drm/intel/issues/8293
[i915#9500]: https://gitlab.freedesktop.org/drm/intel/issues/9500

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

* Linux: CI_DRM_14379 -> Patchwork_130643v1

CI-20190529: 20190529
CI_DRM_14379: 511ffdbe886328239e946608243048f8296fa095 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7742: 7742
Patchwork_130643v1: 511ffdbe886328239e946608243048f8296fa095 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

f17755932f25 drm/i915/dp: Increase idle pattern wait timeout to 2ms

== Logs ==

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