From: bugzilla-daemon@freedesktop.org Subject: [Bug 105359] kms_frontbuffer_tracking - FBC disabled Date: Wed, 07 Mar 2018 11:38:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0208368691==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id F2A476E167 for ; Wed, 7 Mar 2018 11:38:17 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0208368691== Content-Type: multipart/alternative; boundary="15204226970.7c20d4.9732" Content-Transfer-Encoding: 7bit --15204226970.7c20d4.9732 Date: Wed, 7 Mar 2018 11:38:17 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D105359 --- Comment #6 from Marta L=C3=B6fstedt --- I now found this to be even stranger than anticipated: checking the i915_FBC_state while running kms tests I have ended up way to = many states for this to be sane: After reboot: FBC enabled Compressing: yes after killing lightdm: FBC disabled: framebuffer not tiled or fenced after running some kms tests: FBC disabled: frontbuffer write or FBC disabled: no suitable CRTC for FBC or FBC disabled: FBC enabled (active or scheduled) FBC worker scheduled on vblank 154675, now 154675 My recent idea was to set a warn on disabled: + if (strstr(buf, "FBC disabled: ")) + { + igt_warn("%s\n", buf); + igt_assert(true); + } This would result in the WARN result if FBC was disabled. This would not sa= ve any runtime, but it should stop the confusion if the test failed due to tim= eout or if due to FBC being disable. However, when testing above on a SKL NUCi5 system I always end up with WARN= on all tests. --=20 You are receiving this mail because: You are the assignee for the bug.= --15204226970.7c20d4.9732 Date: Wed, 7 Mar 2018 11:38:17 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 6 on bug 10535= 9 from Marta L=C3=B6fstedt
I now found this to be even stranger than anticipated:

checking the i915_FBC_state while running kms tests I have ended up way to =
many
states for this to be sane:
After reboot:
FBC enabled
Compressing: yes

after killing lightdm:
FBC disabled: framebuffer not tiled or fenced

after running some kms tests:
FBC disabled: frontbuffer write
or
FBC disabled: no suitable CRTC for FBC
or
FBC disabled: FBC enabled (active or scheduled)
FBC worker scheduled on vblank 154675, now 154675

My recent idea was to set a warn on disabled:
+       if (strstr(buf, "FBC disabled: "))
+         {
+           igt_warn("%s\n", buf);
+           igt_assert(true);
+         }

This would result in the WARN result if FBC was disabled. This would not sa=
ve
any runtime, but it should stop the confusion if the test failed due to tim=
eout
or if due to FBC being disable.

However, when testing above on a SKL NUCi5 system I always end up with WARN=
 on
all tests.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15204226970.7c20d4.9732-- --===============0208368691== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0208368691==--