drm/i915: Use pipe state to tell when pipe is off
commitab7ad7f6451580aa7eccc0ba62807c872088a8f9
authorKeith Packard <keithp@keithp.com>
Sun, 3 Oct 2010 07:33:06 +0000 (3 00:33 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 3 Oct 2010 09:23:26 +0000 (3 10:23 +0100)
tree3db4739a40c0276e2c8ee99a9465317360769e90
parentb99a9d9bb62a984bdfcb6c973dfe180bd776abbe
drm/i915: Use pipe state to tell when pipe is off

Instead of waiting for the display line value to settle, we can simply
wait for the pipe configuration register 'state' bit to turn off.

Contrarywise, disabling the plane will not cause the display line
value to stop changing, so instead we wait for the vblank interrupt
bit to get set. And, we only do this when we're not about to wait for
the pipe to turn off.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h