drm/i915/skl: Ensure HW is powered during DDB HW state readout
authorImre Deak <imre.deak@intel.com>
Wed, 17 Feb 2016 14:31:29 +0000 (16:31 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 18 Feb 2016 13:57:04 +0000 (15:57 +0200)
commit4d800030238878c1a98d1d3a37a3d673eea661ce
tree612ac7b98a14096c1c6aca1783a8a5fe7be79a8a
parentdd75619853e4a28776130c78365aab8982abe6e1
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
drivers/gpu/drm/i915/intel_pm.c