drm/i915: Lock down psr sw/hw state tracking
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Jul 2014 17:30:13 +0000 (10:30 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 05:05:17 +0000 (07:05 +0200)
commit3638379cfe83604f2759399a998fa90ad0fd56ca
tree988708aea6704ef6c2d66a69da7eb0e667096813
parente921bcbfba1f973c60e3c537adeb32e0cdf2eb77
drm/i915: Lock down psr sw/hw state tracking

Make sure we track the sw side (psr.active) correctly and WARN
everywhere it might get out of sync with the hw.

v2: Fixup WARN_ON logic inversion, reported by Rodrigo.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c