]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cd2599942fbcc98be1f2e50ef744ab7c96f7de3
tree5acadb0d3ddc2ceb2b42a7be293c0b92894a2253
parent83f9c9f3803f6135640ec90521b3957223a61e3e
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