drm/i915: Clean conflicting modesetting registers upon init
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Dec 2010 15:37:31 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Dec 2010 17:50:55 +0000 (17:50 +0000)
commit47f1c6c9ffdec0c0e5a2c2709bd63c7380b325c4
treecd3682cfff419c4d15639dbbb0f758c5ca0c91f2
parent5bddd17fec58f253cddd0bc9eab2cd9eb1bbab4a
drm/i915: Clean conflicting modesetting registers upon init

If we leave the registers in a conflicting state then when we attempt
to teardown the active mode, we will not disable the pipes and planes
in the correct order -- leaving a plane reading from a disabled pipe and
possibly leading to undefined behaviour.

Reported-and-tested-by: Andy Whitcroft <apw@canonical.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32078
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
drivers/gpu/drm/i915/intel_display.c