]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: enable only the needed power domains during modeset
authorImre Deak <imre.deak@intel.com>
Wed, 16 Oct 2013 14:25:52 +0000 (17:25 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 21 Oct 2013 18:59:55 +0000 (20:59 +0200)
commit51b59fb592c4f0d0f76e98f99845e0028ad6ef41
tree040ba159ca0405d8549a51c9f93fd27357c0e23e
parent59300dc14d7ca7ae3be1a9024ede07d3cf3b8e14
drm/i915: enable only the needed power domains during modeset

So far the modeset code enabled all power domains if it needed any. It
wasn't a problem since HW generations so far only had one always-on
power well and one dynamic power well that can be enabled/disabled. For
domains powered by always-on power wells (panel fitter on pipe A and the
eDP transcoder) we didn't do anything, for all other domains we just
enabled the single dynamic power well.

Future HW generations will change this, as they add multiple dynamic
power wells. Support for these will be added later, this patch prepares
for those by making sure we only enable the required domains.

Note that after this change on HSW we'll enable all power domains even
if it was the domain for the panel fitter on pipe A or the eDP
transcoder. This isn't a problem since the power domain framework
already checks if the domain is on an always-on power well and doesn't
do anything in this case.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h