Re: [Intel-gfx] [PATCH v2 18/21] drm/i915: vlv: factor out valleyview_display_irq_install

2014-03-06 Thread Jesse Barnes
On Tue, 4 Mar 2014 19:23:07 +0200 Imre Deak wrote: > +void valleyview_enable_display_irqs(struct drm_i915_private *dev_priv) > +{ > + assert_spin_locked(&dev_priv->irq_lock); > + > + if (dev_priv->display_irqs_enabled) > + return; > + > + dev_priv->display_irqs_enabled =

[Intel-gfx] [PATCH v2 18/21] drm/i915: vlv: factor out valleyview_display_irq_install

2014-03-04 Thread Imre Deak
We'll need to disable/re-enable the display-side IRQs when turning off/on the VLV display power well. Factor out the helper functions for this. For now keep the display IRQs enabled by default, so the functionality doesn't change. This will be changed to enable/disable the IRQs on-demand when addin