drm/i915: Always read pipestat in irq_handler
authorKeith Packard <keithp@keithp.com>
Wed, 19 Nov 2008 22:03:05 +0000 (14:03 -0800)
committerDave Airlie <airlied@redhat.com>
Mon, 24 Nov 2008 23:28:28 +0000 (09:28 +1000)
commit05eff845a28499762075d3a72e238a31f4d2407c
tree72c9700869c065a5432129928d86409dab7d0d6c
parent2678d9d6964b29ecd1975870c7a850242b29bc5c
drm/i915: Always read pipestat in irq_handler

Because we write pipestat before iir, it's possible that a pipestat
interrupt will occur between the pipestat write and the iir write. This
leaves pipestat with an interrupt status not visible in iir. This may cause
an interrupt flood as we never clear the pipestat event.

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_irq.c