]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a9e2a5395a2ffcd6ddb1c7cd5ab98222197fd26
tree4264fae93788af65075c207280f8555b8521548c
parent9e9c9c822346f3791ba34061039123ce1dfb9324
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