i915: Enable IMR passthrough of vblank events before enabling it in pipestat.
authorEric Anholt <eric@anholt.net>
Fri, 17 Oct 2008 22:41:26 +0000 (15:41 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Oct 2008 03:42:27 +0000 (13:42 +1000)
commit053d7f244a8739d96d316c77a97cd063804c8e35
tree009b443222c13585db343f4ece1a70b0bd28aa42
parent35ad68c18148a18938ff4f40e945c9734e7d2265
i915: Enable IMR passthrough of vblank events before enabling it in pipestat.

Otherwise, if we lost the race, the pipestat bit would be set without being
reflected in IIR, and we would never clear the pipestat bit so the pipe
event would never be generated again, and all vblank waits would time out.

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