]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: synchronize_irq() before turning off disp2d power well on VLV/CHV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Feb 2016 16:41:52 +0000 (18:41 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 22 Feb 2016 17:28:08 +0000 (19:28 +0200)
commit5eb1db4d05195d78f2687927903272ea1a100c56
tree9af7a788819594419d997a801f05fb574d912fb1
parenta713bf9c2402f42c9a7abfa745162e674f7d8409
drm/i915: synchronize_irq() before turning off disp2d power well on VLV/CHV

After we've told the irq code we don't want to handle display irqs
anymore, we must make sure any display irq handling already
kicked off has finished before we actually turn off the power well.

I wouldn't expect PIPESTAT based interrupts to occur anymore since
vblanks/page flips/gmbus/etc should all be quiescent at this point.
But at least hotplug interrupts could still occur. Hotplug
interrupts may also kick off the workqueue based hotplug processing,
but that code should take the required power domain references
itself, so there shouldn't be any need to synchronize with the
hotplug processing from the power well code.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1455900112-15387-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/intel_runtime_pm.c