Commit a8f78b58 authored by Eugeni Dodonov's avatar Eugeni Dodonov Committed by Daniel Vetter

drm/i915: re-initialize DDI buffer translations after resume

This is necessary for the modesetting to work correctly after a
suspend-resume cycle. Without this, the pipes and clocks got the correct
configuration, but the underlying DDI buffers configuration was lost.
Signed-off-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 40579abe
...@@ -7169,6 +7169,8 @@ static void ivb_pch_pwm_override(struct drm_device *dev) ...@@ -7169,6 +7169,8 @@ static void ivb_pch_pwm_override(struct drm_device *dev)
void intel_modeset_init_hw(struct drm_device *dev) void intel_modeset_init_hw(struct drm_device *dev)
{ {
intel_prepare_ddi(dev);
intel_init_clock_gating(dev); intel_init_clock_gating(dev);
mutex_lock(&dev->struct_mutex); mutex_lock(&dev->struct_mutex);
...@@ -7198,8 +7200,6 @@ void intel_modeset_init(struct drm_device *dev) ...@@ -7198,8 +7200,6 @@ void intel_modeset_init(struct drm_device *dev)
intel_init_pm(dev); intel_init_pm(dev);
intel_prepare_ddi(dev);
intel_init_display(dev); intel_init_display(dev);
if (IS_GEN2(dev)) { if (IS_GEN2(dev)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment