From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 24/24] drm/i915: simplify rps interrupt enabling/disabling sequence Date: Wed, 12 Jun 2013 15:32:37 -0700 Message-ID: <20130612223237.GC17916@bwidawsk.net> References: <1371037046-3732-1-git-send-email-daniel.vetter@ffwll.ch> <1371037046-3732-25-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.localdomain (unknown [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id F2204E5C5E for ; Wed, 12 Jun 2013 15:32:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1371037046-3732-25-git-send-email-daniel.vetter@ffwll.ch> 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: Daniel Vetter Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jun 12, 2013 at 01:37:26PM +0200, Daniel Vetter wrote: > At the moment we have the following interrupt enabling sequence: > 1. irq preinstall hook > 2. enabling the interrupt handler and calling irq postinstall hook > 3. enable rps interrupts from the async work > > And the folliwing disable sequence: > 1. disabling the interrupt handler and calling the uninstall hook > 2. disabling the rps interrupt > > Since the postinstall hook now always sets up PMIIR, PMIER and PMIMR > to known-good states there no way for an interrupt to sneak in in the > enable sequence, so we can reinstate the WARN lost in > > commit eda63ffb906c2fb3b609a0e87aeb63c0f25b9e6b > Author: Ben Widawsky > Date: Tue May 28 19:22:26 2013 -0700 > > drm/i915: Add PM regs to pre/post install > > Note that there's some room for future cleanups since most of the > interrupt register clearing in the disable function is rather > redundant. But that's better done in follow-up patches, if at all. > > Cc: Ben Widawsky > Signed-off-by: Daniel Vetter > Reviewed-by: Ben Widawsky Assuming the first 23 patches fixed it all :-) -- Ben Widawsky, Intel Open Source Technology Center