From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 2/4] drm/i915: don't disable ERR_INT on the IRQ handler Date: Fri, 20 Sep 2013 10:08:45 +0200 Message-ID: <20130920080845.GH32145@phenom.ffwll.local> References: <1379620838-1491-1-git-send-email-przanoni@gmail.com> <1379620838-1491-3-git-send-email-przanoni@gmail.com> <20130919201824.GB7745@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D9E7E68B0 for ; Fri, 20 Sep 2013 01:08:31 -0700 (PDT) Received: by mail-ee0-f41.google.com with SMTP id d17so66804eek.0 for ; Fri, 20 Sep 2013 01:08:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130919201824.GB7745@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson , Paulo Zanoni , intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Thu, Sep 19, 2013 at 09:18:24PM +0100, Chris Wilson wrote: > On Thu, Sep 19, 2013 at 05:00:36PM -0300, Paulo Zanoni wrote: > > From: Paulo Zanoni > > > > We currently disable the ERR_INT interrupts while running the IRQ > > handler because we fear that if we do an unclaimed register access > > from inside the IRQ handler we'll keep triggering the IRQ handler > > forever. > > > > The problem is that since we always disable the ERR_INT interrupts at > > the IRQ handler, when we get a FIFO underrun we'll always print both > > messages: > > - "uncleared fifo underrun on pipe A" > > - "Pipe A FIFO underrun" > > > > Because the "was_enabled" variable from > > ivybridge_set_fifo_underrun_reporting will always be false (since we > > disable ERR int at the IRQ handler!). > > > > Instead of actually fixing ivybridge_set_fifo_underrun_reporting, > > let's just remove the "disable ERR_INT during the IRQ handler" code. > > As far as we know we shouldn't really be triggering ERR_INT interrupts > > from the IRQ handler, so if we ever get stuck in the endless loop of > > interrupts we can git-bisect and revert (and we can even bisect and > > revert this patch in case I'm just wrong). As a bonus, our IRQ handler > > is now simpler and a few nanoseconds faster. > > > > Signed-off-by: Paulo Zanoni > > One could argue that by unmasking the err interrupt we prevent bugs > creeping into the interrupt handler. > > Reviewed-by: Chris Wilson Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch