[Intel-gfx] [PATCH] drm/i915: limit PM related interrupt enable to those we handle

2011-08-11 Thread Jesse Barnes
Set both the PM core interrupt regs and the PM specific interrupt maks to only allow interrupts we handle. This prevents spurious interrupts and just makes more sense. v2: use a mask for the mask reg Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_reg.h |6 ++ drivers/gp

Re: [Intel-gfx] [PATCH] drm/i915: limit PM related interrupt enable to those we handle

2011-08-09 Thread Jesse Barnes
On Tue, 09 Aug 2011 10:02:54 -0700 Keith Packard wrote: > On Tue, 9 Aug 2011 09:29:20 -0700, Jesse Barnes > 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 *

Re: [Intel-gfx] [PATCH] drm/i915: limit PM related interrupt enable to those we handle

2011-08-09 Thread Keith Packard
On Tue, 9 Aug 2011 09:29:20 -0700, Jesse Barnes 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

[Intel-gfx] [PATCH] drm/i915: limit PM related interrupt enable to those we handle

2011-08-09 Thread Jesse Barnes
Set both the PM core interrupt regs and the PM specific interrupt maks to only allow interrupts we handle. This prevents spurious interrupts and just makes more sense. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_reg.h |6 ++ drivers/gpu/drm/i915/intel_display.c | 12