drm/i915: disable all crtcs at suspend time
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Jul 2012 17:21:47 +0000 (19:21 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Sep 2012 06:21:29 +0000 (08:21 +0200)
commita261b246ebd552fd5d5a8ed84cc931bb821c427f
tree4264fae93788af65075c207280f8555b8521548c
parentea9d758d6ddb9f4bb9639619100743e8f5fa85a0
drm/i915: disable all crtcs at suspend time

We need this to avoid confusing the hw state readout code with the cpt
pch plls at resume time: We'd read the new pipe state (which is
disabled), but still believe that we have a life pll connected to that
pipe (from before the suspend). Hence properly disable pipes to clear
out all the residual state.

This has the neat side-effect that we don't enable ports prematurely
by restoring bogus state from the saved register values.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h