drm/i915: Clear the vblank status bit before polling for the next vblank
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 5 Sep 2010 19:25:43 +0000 (20:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Sep 2010 22:09:51 +0000 (23:09 +0100)
commit300387c0b57d75e5218e2881d6ad2720657a8bcf
treeb176b0a28513678b6f808737af42415824b96d8d
parent4f233eff6f32745f8894eb513bc59851213c7833
drm/i915: Clear the vblank status bit before polling for the next vblank

The vblank status bit is a sticky bit that must be cleared with a write
of '1' prior to polling for the next vblank.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
jbarnes: I'd still rather see a lock, but I think you're right that
we don't generally wait in code that needs not to miss an interrupt.
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/intel_display.c