]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: vlv: init only needed state during early power well enabling
authorImre Deak <imre.deak@intel.com>
Fri, 25 Apr 2014 10:19:05 +0000 (13:19 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 08:56:51 +0000 (10:56 +0200)
commiteb1119de8c89b0d0cfb35a402fa94864bf89c806
tree6925fcc1ef08dffbd6ecdb2acebf427a8c3df414
parent1dcbcc60e7e86f9e24cf479b181b20fc6a0683d5
drm/i915: vlv: init only needed state during early power well enabling

During the initial power well enabling on the driver init/resume path
we can avoid initialzing part of the HW/SW state that will be
initialized anyway by the subsequent init/resume code. For some steps
like HPD initialization this redundancy is not only an overhead but an
actual problem, since they can't be run this early in the overall init
sequence.

Add a flag marking the init phase and skip reinitialzing state that is
not strictly necessary based on that.

This is also needed by the upcoming HPD init restructuring by Thierry
and Daniel.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c