drm/i915: sanity check power well sw state against hw state
authorImre Deak <imre.deak@intel.com>
Tue, 4 Mar 2014 17:23:06 +0000 (19:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 21:36:56 +0000 (22:36 +0100)
commit25eaa003bd186e415d94bf0191152f1cd7252d9a
tree5acadb0d3ddc2ceb2b42a7be293c0b92894a2253
parentdd7c0b66e5414c54a9af8f100cc904240bab5102
drm/i915: sanity check power well sw state against hw state

Suggested by Daniel.

v2:
- sanitize the state checking condition, the original was rather
  confusing (partly due to the unfortunate naming of
  i915.disable_power_well) (Ville)
- simpler message+backtrace generation by using WARN instead of WARN_ON
  (Ville)
- check if always-on power wells are truly on all the time

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c