From: bugzilla-daemon@freedesktop.org Subject: [Bug 105359] kms_frontbuffer_tracking - FBC disabled Date: Tue, 06 Mar 2018 12:40:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0121541690==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id CE2926E6A8 for ; Tue, 6 Mar 2018 12:40:00 +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 --===============0121541690== Content-Type: multipart/alternative; boundary="15203400001.f3714d9b5.19450" Content-Transfer-Encoding: 7bit --15203400001.f3714d9b5.19450 Date: Tue, 6 Mar 2018 12:40:00 +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 #4 from Marta L=C3=B6fstedt --- https://patchwork.freedesktop.org/patch/208170/ This caused some discussion. I appears as if devs want a way for user space= to reset the "fbc state". I am assuming this also applies for FIFO underrun ca= used FBC disabled. I guess that is OK, the only one calling: intel_fbc_handle_fifo_underrun_irq(dev_priv); is:=20 void intel_cpu_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv, enum pipe pipe) However, this comment in above function: /* There's no guarantee that underrun_detected won't be set to true * right after this check and before the work is scheduled, but tha= t's * not a problem since we'll check it again under the work function * while FBC is locked. This check here is just to prevent us from * unnecessarily scheduling the work, and it relies on the fact tha= t we * never switch underrun_detect back to false after it's true. */ so maybe not totally straight forward to implement. Also, I believe that the massive hit from "FBC disabled" on kasan and shard testlist on BAT is due to this FBC banned by FIFO underrun thing. --=20 You are receiving this mail because: You are the assignee for the bug.= --15203400001.f3714d9b5.19450 Date: Tue, 6 Mar 2018 12:40:00 +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 # 4 on bug 10535= 9 from Marta L=C3=B6fstedt
ht=
tps://patchwork.freedesktop.org/patch/208170/

This caused some discussion. I appears as if devs want a way for user space=
 to
reset the "fbc state". I am assuming this also applies for FIFO u=
nderrun caused
FBC disabled.

I guess that is OK, the only one calling:
intel_fbc_handle_fifo_underrun_irq(dev_priv);

is:=20
void intel_cpu_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,
                                         enum pipe pipe)

However, this comment in above function:

        /* There's no guarantee that underrun_detected won't be set to true
         * right after this check and before the work is scheduled, but tha=
t's
         * not a problem since we'll check it again under the work function
         * while FBC is locked. This check here is just to prevent us from
         * unnecessarily scheduling the work, and it relies on the fact tha=
t we
         * never switch underrun_detect back to false after it's true. */

so maybe not totally straight forward to implement.

Also, I believe that the massive hit from "FBC disabled" on kasan=
 and shard
testlist on BAT is due to this FBC banned by FIFO underrun thing.


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