drm/i915: Manage PIPESTAT to control vblank interrupts instead of IMR.
authorKeith Packard <keithp@keithp.com>
Tue, 4 Nov 2008 10:03:27 +0000 (02:03 -0800)
committerDave Airlie <airlied@redhat.com>
Mon, 24 Nov 2008 23:27:24 +0000 (09:27 +1000)
commit7c463586427bbbad726ba561bae4ba5acada2481
tree0d646851c4c643fe04cf1be31dbf9d6adfc29149
parented313489badef16d700f5a3be50e8fd8f8294bc8
drm/i915: Manage PIPESTAT to control vblank interrupts instead of IMR.

The pipestat fields affect reporting of all vblank-related interrupts, so we
have to reset them during the irq_handler, and while enabling vblank
interrupts.  Otherwise, if a pipe status field had been set to non-zero
before enabling reporting, we would never see an interrupt again.

This patch adds i915_enable_pipestat and i915_disable_pipestat to abstract
out the steps needed to change the reported interrupts.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_opregion.c