]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/lvds: don't restore hw state in the lid notifier for pch platforms
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Oct 2013 08:47:12 +0000 (10:47 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 2 Dec 2013 14:08:41 +0000 (15:08 +0100)
commit95f265dbd24983870b6fcc0d67d438d655b07b24
treed261e206fabc334e449e7c170790ad57ee754bd6
parent2409ada77ad1b5513db031e1f189b7ca7cfd84e0
drm/i915/lvds: don't restore hw state in the lid notifier for pch platforms

It's a pain for two reasons:
- The vga plane redisablign requires actual legacy vgao i/o to pull
  of. The hw engineers really botched this one here :(
- There seem to be some BIOS out there which send out lid events when
  unplugging. Together with our broken DP code, which disables the
  port when the cable is lost, this results in an immediate modeset
  call, which can hang on the wait for outstanding flips.
- Also we don't want to force a modeset on machines where it's not
  really needed, see the referenced bug.

We might want to extend this in general to also all machines that
support opregion, since there the BIOS supposedly should manage the
gfx hardware more cooperatively.

v2: Pimp commit message a bit.

Cc: Roland Dreier <roland@kernel.org>
References: https://bugs.freedesktop.org/show_bug.cgi?id=65486
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lvds.c