Skip to contentSkip to conversation

drm/i915: FBC needs vblank before enable / disable

PATCH New [email protected] 2 participants 2 messages May 29, 2019

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

PATCH 1/1 drm/i915: FBC needs vblank before enable / disable

From: Kiran Kumar S <[email protected]>

As per the display workaround #1200, FBC needs wait for vblank before enabling and before disabling FBC.

In some cases, depending on whether FBC was compressing in that frame, several control signals in the compression engine also will fail to properly recognize the final segment of the frame as a result of the missing last pixel indication. As a result of this, we're seeing corrupted cache line/compression indicators after FBC re-enables which causes underruns or corruption when they're used to decompress.

WA sequence as below:
1) Display enables plane 1A
2) Wait for 1 vblank
3) FBC gets enabled
4) Wait for 1 VBLANK
5) Turn off FBC

In GLK Chrome OS, if FBC is enabled by default, few top lines on the screen got corrupted. With the above WA, issue was resolved.

v2: Added wait for vblank code in FBC as it will be called if and only if fbc is enabled.

And also, as per the information from hardware team that the above WA is for GLK.

---
 drivers/gpu/drm/i915/intel_fbc.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_fbc.c +6 -1
index 5679f2fffb7c..d4b8cfb8419e 100644
@@ -1094,6 +1094,8 @@ void intel_fbc_enable(struct intel_crtc *crtc,
 		if (fbc->crtc == crtc) {
 			WARN_ON(!crtc_state->enable_fbc);
 			WARN_ON(fbc->active);
+			if (IS_GEMINILAKE(dev_priv))
+				intel_wait_for_vblank(dev_priv, crtc->pipe);
 		}
 		goto out;
 	}
@@ -1134,8 +1136,11 @@ void intel_fbc_disable(struct intel_crtc *crtc)
 		return;
 
 	mutex_lock(&fbc->lock);
-	if (fbc->crtc == crtc)
+	if (fbc->crtc == crtc) {
 		__intel_fbc_disable(dev_priv);
+		if (IS_GEMINILAKE(dev_priv))
+			intel_wait_for_vblank(dev_priv, crtc->pipe);
+	}
 	mutex_unlock(&fbc->lock);
 }
 
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✗ Fi.CI.BAT: failure for drm/i915: FBC needs vblank before enable / disable

== Series Details ==

== Series Details ==

Series: drm/i915: FBC needs vblank before enable / disable
URL : https://patchwork.freedesktop.org/series/61287/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_6159 -> Patchwork_13122
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_13122, 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_13122/

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_module_load@reload-with-fault-injection:
- fi-hsw-4770r: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6159/fi-hsw-4770r/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13122/fi-hsw-4770r/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_cpu_reloc@basic:
- fi-cml-u2: [PASS][3] -> [INCOMPLETE][4] ([fdo#110246] / [fdo#110566])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6159/fi-cml-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13122/fi-cml-u2/igt@[email protected]

* igt@i915_module_load@reload:
- fi-blb-e6850: [PASS][5] -> [INCOMPLETE][6] ([fdo#107718])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6159/fi-blb-e6850/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13122/fi-blb-e6850/igt@[email protected]

[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#110246]: https://bugs.freedesktop.org/show_bug.cgi?id=110246
[fdo#110566]: https://bugs.freedesktop.org/show_bug.cgi?id=110566

Participating hosts (48 -> 40)
------------------------------

Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus fi-snb-2600

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

* Linux: CI_DRM_6159 -> Patchwork_13122

CI_DRM_6159: f280d33ae895624a247d4431ece09b5088e6f021 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5021: 2d64cb6808075b0d0696a89d2ce290220e6eff8e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13122: a78e1aa05bcd29c2d37eb857da9fa402003bb2ff @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

a78e1aa05bcd drm/i915: FBC needs vblank before enable / disable

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13122/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx