]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/skl: Ensure HW is powered during DDB HW state readout
authorImre Deak <imre.deak@intel.com>
Tue, 16 Feb 2016 16:56:46 +0000 (18:56 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 22 Feb 2016 15:44:40 +0000 (17:44 +0200)
commitba0b13d4f0fbec6edea142ccabecb184c7511569
tree3d05806cb97153d98dade972d6c48ea6cff3de6c
parentf740224dd00a0d624e18d070290ac5b21c12f630
drm/i915/skl: Ensure HW is powered during DDB HW state readout

The assumption when adding the intel_display_power_is_enabled() checks
was that if it returns success the power can't be turned off afterwards
during the HW access, which is guaranteed by modeset locks. This isn't
always true, so make sure we hold a dedicated reference for the time of
the access.

Spotted-by: Mika Kuoppala <mika.kuoppala@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93441
CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1455719489-3008-1-git-send-email-imre.deak@intel.com
(cherry picked from commit 4d800030238878c1a98d1d3a37a3d673eea661ce)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_pm.c