Skip to contentSkip to conversation

drm/i915: Fix corruption lines on the screen on Gen9 chromebooks

PATCH New Gaurav K Singh 2 participants 3 messages Sep 4, 2019

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

PATCH 1/1 drm/i915: Fix corruption lines on the screen on Gen9 chromebooks

On Gen9 chromebooks, we are seeing the screen shows several
large blue horizontal stripes over the top. Also, corruption happens when we switch from a chrome browser tab to VT2 mode(by pressing Ctrl+Alt+F2) and then back to chrome tab.

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

---
 drivers/gpu/drm/i915/display/intel_fbc.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_fbc.c +6 -1
index 16ed44bfd734..dd224b82bf02 100644
@@ -1097,6 +1097,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_GEN(dev_priv, 9))
+				intel_wait_for_vblank(dev_priv, crtc->pipe);
 		}
 		goto out;
 	}
@@ -1137,8 +1139,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_GEN(dev_priv, 9))
+			intel_wait_for_vblank(dev_priv, crtc->pipe);
+	}
 	mutex_unlock(&fbc->lock);
 }
 
Signature · 6 lines
1.9.1

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

✗ Fi.CI.CHECKPATCH: warning for drm/i915: Fix corruption lines on the screen on Gen9 chromebooks (rev3)

== Series Details ==

== Series Details ==

Series: drm/i915: Fix corruption lines on the screen on Gen9 chromebooks (rev3)
URL : https://patchwork.freedesktop.org/series/66196/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
3e31641ea606 drm/i915: Fix corruption lines on the screen on Gen9 chromebooks
-:9: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#9: 
when we switch from a chrome browser tab to VT2 mode(by pressing Ctrl+Alt+F2)

total: 0 errors, 1 warnings, 0 checks, 20 lines checked

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

#2 lore raw

✗ Fi.CI.BAT: failure for drm/i915: Fix corruption lines on the screen on Gen9 chromebooks (rev3)

In reply to Gaurav K Singh
== Series Details ==

== Series Details ==

Series: drm/i915: Fix corruption lines on the screen on Gen9 chromebooks (rev3)
URL : https://patchwork.freedesktop.org/series/66196/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_6833 -> Patchwork_14274
====================================================

Summary
-------

**FAILURE**

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

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

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

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

### IGT changes ###

#### Possible regressions ####

* igt@gem_exec_suspend@basic-s3:
- fi-kbl-r: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-kbl-r/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-kbl-r/igt@[email protected]
- fi-skl-lmem: [PASS][3] -> [DMESG-WARN][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-skl-lmem/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-skl-lmem/igt@[email protected]
- fi-whl-u: [PASS][5] -> [DMESG-WARN][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-whl-u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-whl-u/igt@[email protected]
- fi-kbl-x1275: [PASS][7] -> [DMESG-WARN][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-kbl-x1275/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-kbl-x1275/igt@[email protected]
- fi-skl-6600u: [PASS][9] -> [DMESG-WARN][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-skl-6600u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-skl-6600u/igt@[email protected]

* igt@kms_force_connector_basic@force-connector-state:
- fi-kbl-guc: [PASS][11] -> [DMESG-WARN][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-kbl-guc/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-kbl-guc/igt@[email protected]

* igt@runner@aborted:
- fi-whl-u: NOTRUN -> [FAIL][13]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-whl-u/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [FAIL][14]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-bxt-dsi/igt@[email protected]
- fi-apl-guc: NOTRUN -> [FAIL][15]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-apl-guc/igt@[email protected]
- fi-kbl-guc: NOTRUN -> [FAIL][16]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-kbl-guc/igt@[email protected]

#### Suppressed ####

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

* igt@gem_exec_suspend@basic-s3:
- {fi-kbl-soraka}: [PASS][17] -> [DMESG-WARN][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-kbl-soraka/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-kbl-soraka/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s4-devices:
- fi-blb-e6850: [PASS][19] -> [INCOMPLETE][20] ([fdo#107718])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6833/fi-blb-e6850/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14274/fi-blb-e6850/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#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718

Participating hosts (53 -> 46)
------------------------------

Additional (1): fi-icl-u3
Missing (8): fi-ilk-m540 fi-hsw-4200u fi-byt-j1900 fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus

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

* CI: CI-20190529 -> None
* Linux: CI_DRM_6833 -> Patchwork_14274

CI-20190529: 20190529
CI_DRM_6833: b9d119cf9ec2e09a7a21ec0cc72dea1f1ce89f7a @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5168: 04eac35177ba046ce55c495e510bc49443ec7429 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14274: 3e31641ea606ed8c88e4ca2a798aca0e42d34cb4 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

3e31641ea606 drm/i915: Fix corruption lines on the screen on Gen9 chromebooks

== Logs ==

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