]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: fix display power sw state reporting
authorImre Deak <imre.deak@intel.com>
Mon, 2 Jun 2014 11:21:10 +0000 (14:21 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Jun 2014 14:36:08 +0000 (16:36 +0200)
commit546374b25fab58ed862b4d8397ab26d9f57e5f24
treeb526d6148090b16660a67ece11a3ff589f878bff
parentb05b095594108cc1af909f0a4ea2bf8530b7e1b2
drm/i915: fix display power sw state reporting

Atm, we refcount both power domains and power wells and
intel_display_power_enabled_sw() returns the power domain refcount. What
the callers are really interested in though is the sw state of the
underlying power wells. Due to this we will report incorrectly that a
given power domain is off if its power wells were enabled via another
power domain, for example POWER_DOMAIN_INIT which enables all power
wells.

As a fix return instead the state based on the refcount of all power
wells included in the passed in power domain.

References: https://bugs.freedesktop.org/show_bug.cgi?id=79505
References: https://bugs.freedesktop.org/show_bug.cgi?id=79038
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c