]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6100971ac2ebc91f49285fe610347c73f61c413
treeb176b0a28513678b6f808737af42415824b96d8d
parent4de5aaf3f6d80048237e0792f14ecf9e8803aa39
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