From: Chris Wilson Subject: Re: [PATCH 07/11] drm/i915: Clarify irq_lock locking, irq handlers Date: Tue, 16 Sep 2014 11:53:28 +0100 Message-ID: <20140916105328.GC11667@nuc-i3427.alporthouse.com> References: <1410784511-18460-1-git-send-email-daniel.vetter@ffwll.ch> <1410784511-18460-8-git-send-email-daniel.vetter@ffwll.ch> <20140916102152.GB11667@nuc-i3427.alporthouse.com> <20140916102818.GD31703@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id E89CF6E41C for ; Tue, 16 Sep 2014 03:53:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140916102818.GD31703@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter Cc: Daniel Vetter , DRI Development List-Id: dri-devel@lists.freedesktop.org On Tue, Sep 16, 2014 at 12:28:18PM +0200, Daniel Vetter wrote: > On Tue, Sep 16, 2014 at 11:21:52AM +0100, Chris Wilson wrote: > > On Mon, Sep 15, 2014 at 02:35:07PM +0200, Daniel Vetter wrote: > > > irq handlers always run with interrupts locally disabled, so > > > plain spinlocks is all we need. I've also reviewed again that they > > > all follow the _irq_handler postfix convention. > > > > Hmm, we still have the full irq dance inside the reg read/write macros, > > which themselves should never be used from inside the irq handlers. > > > > (Modulo the misgivings in execlists_irq_handler). > > Hm, we still have the ACTHEAD hack to read somewhat coherent-ish seqnos. > Dunno whether open-coding that would make sense really, and whether it's > really beneficial to force register writes to never acquire forcewake from > irq context. Definitely material for different patches though. ATCHD inside the irq handler? I am pretty sure that even -nightly doesn't have the irq-barrier inside the irq handler. And yes, we do want to avoid having a massive delay whilst we apply the forcewake workarounds from inside irq handlers. -Chris -- Chris Wilson, Intel Open Source Technology Centre