linux/drivers/gpu
Imre Deak 2d29f7576d drm/i915: fix display power sw state reporting
commit b8c000d9bf upstream.

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>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-07-09 11:18:28 -07:00
..
drm drm/i915: fix display power sw state reporting 2014-07-09 11:18:28 -07:00
host1x gpu: host1x: handle the correct # of syncpt regs 2014-06-07 10:28:09 -07:00
vga vgaswitcheroo: switch the mux to the igp on power down when runpm is enabled 2014-07-09 11:18:24 -07:00
Makefile gpu: host1x: Add host1x driver 2013-04-22 12:32:40 +02:00