[Intel-gfx] [PATCH] drm/i915: limit PM related interrupt enable to those we handle
Jesse Barnes
jbarnes at virtuousgeek.org
Tue Aug 9 19:11:40 CEST 2011
On Tue, 09 Aug 2011 10:02:54 -0700
Keith Packard <keithp at keithp.com> wrote:
> On Tue, 9 Aug 2011 09:29:20 -0700, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
>
> > - I915_WRITE(GEN6_PMIMR, 0);
> > + I915_WRITE(GEN6_PMIMR, ~GEN6_PM_DEFERRED_EVENTS);
> > spin_unlock_irq(&dev_priv->rps_lock);
> > - /* enable all PM interrupts */
> > - I915_WRITE(GEN6_PMINTRMSK, 0);
> > + /* Enable only those we respond to in the deferred work handler */
> > + I915_WRITE(GEN6_PMINTRMSK, GEN6_PMINTR_DEFERRED_EVENTS);
>
> I think this is supposed to only enable the DEFERRED_EVENTS, right? In
> which case, I think you want to invert that (as 0 enables and 1 disables):
>
> + I915_WRITE(GEN6_PMINTRMSK, ~GEN6_PMINTR_DEFERRED_EVENTS);
>
> just like you did for the PMIMR register?
Yeah it went from 0 to just a few bits, but it should have been the ~
of that, you're right. Will fix & test and resend.
--
Jesse Barnes, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list