drm/i915: fix up ivb plane 3 pageflips
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 May 2012 12:02:00 +0000 (14:02 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 5 Jun 2012 19:05:21 +0000 (21:05 +0200)
commitcb05d8dedefa3066bf5d74ef88c6ca6cf4bd1c87
tree583447e310a90e6e58a58e48427917ae640fab3e
parentb7884eb45ec98c0d34c7f49005ae9d4b4b4e38f6
drm/i915: fix up ivb plane 3 pageflips

Or at least plug another gapping hole. Apparrently hw desingers only
moved the bit field, but did not bother ot re-enumerate the planes
when adding support for a 3rd pipe.

Discovered by i-g-t/flip_test.

This may or may not fix the reference bugzilla, because that one
smells like we have still larger fish to fry.

v2: Fixup the impossible case to catch programming errors, noticed by
Chris Wilson.

References: https://bugs.freedesktop.org/show_bug.cgi?id=50069
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Eugeni Dodonov <eugeni.dodonov@intel.com>
Cc: stable@vger.kernel.org
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c