Skip to contentSkip to conversation

drm/i915: Implement workaround for DP2 UHBR bandwidth check

PATCH In review Stanislav Lisovskiy 3 participants 4 messages Jan 2, 2023 – Jan 9, 2023

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

PATCH 1/1 drm/i915: Implement workaround for DP2 UHBR bandwidth check

According to spec, we should check if output_bpp * pixel_rate is less than DDI clock * 72, if UHBR is used.

---
 drivers/gpu/drm/i915/display/intel_dp.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +11 -0
index bf80f296a8fdb..13baf3cb5f934 100644
@@ -1582,6 +1582,17 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 		drm_dbg_kms(&dev_priv->drm, "DSC: compressed bpp %d slice count %d\n",
 			    pipe_config->dsc.compressed_bpp,
 			    pipe_config->dsc.slice_count);
+
+		/* wa1406899791 */
+		if (intel_dp_is_uhbr(pipe_config)) {
+			int output_bpp = pipe_config->dsc.compressed_bpp;
+
+			if (output_bpp * adjusted_mode->crtc_clock >=
+			    pipe_config->port_clock * 72) {
+				drm_dbg_kms(&dev_priv->drm, "DP2 UHBR check failed\n");
+				return -EINVAL;
+			}
+		}
 	}
 	/*
 	 * VDSC engine operates at 1 Pixel per clock, so if peak pixel rate
Signature · 1 line
2.37.3
#1 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Implement workaround for DP2 UHBR bandwidth check

== Series Details ==

== Series Details ==

Series: drm/i915: Implement workaround for DP2 UHBR bandwidth check
URL : https://patchwork.freedesktop.org/series/112345/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_12536 -> Patchwork_112345v1
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_112345v1, 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_112345v1/index.html

Participating hosts (45 -> 43)
------------------------------

Missing (2): fi-snb-2520m fi-pnv-d510

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@slpc:
- fi-kbl-soraka: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12536/fi-kbl-soraka/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112345v1/fi-kbl-soraka/igt@i915_selftest@[email protected]

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

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

### IGT changes ###

#### Possible fixes ####

* igt@gem_exec_suspend@basic-s3@smem:
- {bat-rpls-1}: [DMESG-WARN][3] ([i915#6687]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12536/bat-rpls-1/igt@gem_exec_suspend@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112345v1/bat-rpls-1/igt@gem_exec_suspend@[email protected]

* igt@i915_module_load@load:
- fi-kbl-soraka: [DMESG-WARN][5] ([i915#1982]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12536/fi-kbl-soraka/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112345v1/fi-kbl-soraka/igt@[email protected]

* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [DMESG-FAIL][7] ([i915#5334]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12536/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112345v1/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
- fi-kbl-soraka: [DMESG-FAIL][9] ([i915#5334]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12536/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112345v1/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html

* igt@kms_cursor_legacy@basic-flip-before-cursor@atomic-transitions-varying-size:
- {bat-adlp-9}: [FAIL][11] ([i915#4289]) -> [PASS][12] +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12536/bat-adlp-9/igt@kms_cursor_legacy@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112345v1/bat-adlp-9/igt@kms_cursor_legacy@[email protected]

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

[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4289]: https://gitlab.freedesktop.org/drm/intel/issues/4289
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6687]: https://gitlab.freedesktop.org/drm/intel/issues/6687
[i915#7554]: https://gitlab.freedesktop.org/drm/intel/issues/7554

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

* Linux: CI_DRM_12536 -> Patchwork_112345v1

CI-20190529: 20190529
CI_DRM_12536: 4c18d8b1c2a1f11e99f865f60fbce9fedd3376fc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7105: 305e8d105abf033cb850d1fb118e5cbfb6c9cd40 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_112345v1: 4c18d8b1c2a1f11e99f865f60fbce9fedd3376fc @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

aa51e97eae11 drm/i915: Implement workaround for DP2 UHBR bandwidth check

== Logs ==

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

maintainer
#2 lore raw
In reply to Stanislav Lisovskiy

on the subject: This is not a hw workaround. Please remove the workaround from the subject and the wrong comment.

"The HSD given is a 'feature' rather than 'bugeco' so no workaround details are present here."

Quoted 13 lines · Stanislav Lisovskiy

According to spec, we should check if output_bpp * pixel_rate is less than DDI clock * 72, if UHBR is used.

---
 drivers/gpu/drm/i915/display/intel_dp.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
index bf80f296a8fdb..13baf3cb5f934 100644

drivers/gpu/drm/i915/display/intel_dp.c int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1586

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_dp.c +2 -0
@@ -1582,6 +1582,17 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 		drm_dbg_kms(&dev_priv->drm, "DSC: compressed bpp %d slice count %d\n",
 			    pipe_config->dsc.compressed_bpp,
 			    pipe_config->dsc.slice_count);
+
+		/* wa1406899791 */

even if it was a bugeco, the notation doesn't follow the standard.

But anyway, as I pointed out, this is not a workaround so you probably just want a

HSDES: 1406899791
BSPEC: 49259

in your commit msg.

Also maybe a "Fixes:" tag pointing to the commit that added the sequence but didn't added this part of the sequence?

drivers/gpu/drm/i915/display/intel_dp.c int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1592

Quoted 6 lines
drivers/gpu/drm/i915/display/intel_dp.c +6 -0
+		if (intel_dp_is_uhbr(pipe_config)) {
+			int output_bpp = pipe_config->dsc.compressed_bpp;
+
+			if (output_bpp * adjusted_mode->crtc_clock >=
+			    pipe_config->port_clock * 72) {
+				drm_dbg_kms(&dev_priv->drm, "DP2 UHBR check failed\n");

some probably dummy question:
do we need to add a check for the DP 2.0 above as well? or it is unecessary/redundant?

Quoted 9 lines
drivers/gpu/drm/i915/display/intel_dp.c +3 -0
+				return -EINVAL;
+			}
+		}
 	}
 	/*
 	 * VDSC engine operates at 1 Pixel per clock, so if peak pixel rate
Signature · 1 line
2.37.3
#3 lore raw
Quoted 30 lines · Rodrigo Vivi

on the subject: This is not a hw workaround. Please remove the workaround from the subject and the wrong comment.

"The HSD given is a 'feature' rather than 'bugeco' so no workaround details are present here."

Quoted 13 lines · Stanislav Lisovskiy

According to spec, we should check if output_bpp * pixel_rate is less than DDI clock * 72, if UHBR is used.

---
 drivers/gpu/drm/i915/display/intel_dp.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +0 -0
index bf80f296a8fdb..13baf3cb5f934 100644

drivers/gpu/drm/i915/display/intel_dp.c int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1586

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_dp.c +2 -0
@@ -1582,6 +1582,17 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
 		drm_dbg_kms(&dev_priv->drm, "DSC: compressed bpp %d slice count %d\n",
 			    pipe_config->dsc.compressed_bpp,
 			    pipe_config->dsc.slice_count);
+
+		/* wa1406899791 */

even if it was a bugeco, the notation doesn't follow the standard.

Quoted 7 lines

But anyway, as I pointed out, this is not a workaround so you probably just want a

HSDES: 1406899791
BSPEC: 49259

in your commit msg.

Ok, will add this thanks.

Quoted 4 lines

Also maybe a "Fixes:" tag pointing to the commit that added the sequence but didn't added this part of the sequence?

Quoted 10 lines

drivers/gpu/drm/i915/display/intel_dp.c int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, · line 1592

Quoted 6 lines
drivers/gpu/drm/i915/display/intel_dp.c +6 -0
+		if (intel_dp_is_uhbr(pipe_config)) {
+			int output_bpp = pipe_config->dsc.compressed_bpp;
+
+			if (output_bpp * adjusted_mode->crtc_clock >=
+			    pipe_config->port_clock * 72) {
+				drm_dbg_kms(&dev_priv->drm, "DP2 UHBR check failed\n");

some probably dummy question:
do we need to add a check for the DP 2.0 above as well? or it is unecessary/redundant?

I think this check is more related to hardware limitation, rather than DP 2.0 standard. I mean if it was even not DP 2.0, but still UHBR I really doubt that this limitation wouldn't be essential still.

Stan

Quoted 10 lines
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dp.c +3 -0
+				return -EINVAL;
+			}
+		}
 	}
 	/*
 	 * VDSC engine operates at 1 Pixel per clock, so if peak pixel rate
Signature · 1 line
2.37.3