drm/i915: check the power well when redisabling VGA
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 2 Aug 2013 19:22:24 +0000 (16:22 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Aug 2013 11:31:47 +0000 (13:31 +0200)
commit8dc8a27c9733a41cda84e8c70da8313e1d54c4ae
treec3a66bc3b8a05e76a457737ce93d0b8a3da3f5cc
parent4b6d846e9a20ac8c9dd641d0ea875c28f331e241
drm/i915: check the power well when redisabling VGA

If the power well is disabled VGA is guaranteed to be disabled.

This fixes unclaimed register messages that happen on suspend/resume.

v2: Check the actual hw power well state instead of our own tracking
to make sure VGA is _really_ off (in case the BIOS/KVMr has just its
own request bit set). Requested by Ville.

Note: Ville suggested whether it wouldn't be better to just enable the
power well over a slightly longer time in our resume code, since we
already do that. I tend to agree, but there's also the modeset force
code in the lid notifier which _also_ eventually calls redisable_vga.
We shouldn't ever need this on somewhat modern hw (everything with
opregion essentially) but the code to bail out isn't there. Hence
stick with this simple approach here for now.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67517
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
[danvet: Summarize the discussion around the resume sequence and lid
notifier a bit.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
This page took 0.026835 seconds and 5 git commands to generate.