aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-09-16 10:38:33 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-01 01:45:08 -0400
commit7d0bc1ea50e7b3fb1c7a52918611baba8750177d (patch)
tree8cafc8591c3ac6f8e5bc52249445f9b1a77e979f /drivers/gpu/drm/i915/intel_display.c
parentce352550327b394f3072a07c9cd9d27af9276f15 (diff)
drm/i915: Redisable VGA before the modeset on resume
The VGA plane needs to be disabled before we start doing any modeset operations on resume. This should also guarantee that the power well will be enabled when we call i915_redisable_vga() since it gets explicitly powered on during resume, and will get powered back off during the modeset operation if no longer needed. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 6aaa84d56624..dd61700a40c1 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -10684,6 +10684,8 @@ void intel_modeset_setup_hw_state(struct drm_device *dev,
10684 } 10684 }
10685 10685
10686 if (force_restore) { 10686 if (force_restore) {
10687 i915_redisable_vga(dev);
10688
10687 /* 10689 /*
10688 * We need to use raw interfaces for restoring state to avoid 10690 * We need to use raw interfaces for restoring state to avoid
10689 * checking (bogus) intermediate states. 10691 * checking (bogus) intermediate states.
@@ -10697,8 +10699,6 @@ void intel_modeset_setup_hw_state(struct drm_device *dev,
10697 } 10699 }
10698 list_for_each_entry(plane, &dev->mode_config.plane_list, head) 10700 list_for_each_entry(plane, &dev->mode_config.plane_list, head)
10699 intel_plane_restore(plane); 10701 intel_plane_restore(plane);
10700
10701 i915_redisable_vga(dev);
10702 } else { 10702 } else {
10703 intel_modeset_update_staged_output_state(dev); 10703 intel_modeset_update_staged_output_state(dev);
10704 } 10704 }