drm/i915/hsw, bdw: Wait for the power well disabled state
authorImre Deak <imre.deak@intel.com>
Thu, 6 Jul 2017 14:40:36 +0000 (17:40 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Jul 2017 07:38:53 +0000 (09:38 +0200)
commit76347c04d879267839337adc2aea6136b58c2ca7
treea2f5b2d3c6f765e58884cfa7bf45035fc37ae7a4
parent001bd2cb17f7df768fb3a5c1e7c3d2cd2cfb3439
drm/i915/hsw, bdw: Wait for the power well disabled state

Similarly to GEN9+ waiting for the power well disabled state is a safer
option and also provides diagnostic info if the disabling didn't succeed
or the power well was forced on by an external requester. While at it
also use the existing GEN9+ helper to wait for the enabled state.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1499352040-8819-15-git-send-email-imre.deak@intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_runtime_pm.c