]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88fc1e63ebfa6141335af165d1189157f7fefa59
tree1e945ac2620bac5489425125bea2f49c9197aab0
parent3a12be0c229013f29c7a13f05733421f60a8d30e
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