drm/i915: Sanitize shared dpll state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Jul 2013 04:55:04 +0000 (06:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Jul 2013 09:49:21 +0000 (11:49 +0200)
commit35c95375f69ceec721fea67a0532bc17ceb5cf64
tree1e945ac2620bac5489425125bea2f49c9197aab0
parent7dcd2677ea912573d9ed4bcd629b0023b2d11505
drm/i915: Sanitize shared dpll state

There seems to be no limit to the amount of gunk the firmware can
leave behind. Some platforms leave pch dplls on which are not in
active use at all. The example in the bug report is a Apple Macbook
Pro.

Note that this escape scrunity of the hw state checker until we've
tried to use this enabled, but unused pll since we did only check for
the inverse case of a in-used, but disabled pll.

v2: Add a WARN in the pll state checker which would have caught this
case.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66952
Reported-and-tested-by: shui yangwei <yangweix.shui@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c