This will keep the cdclk at boot speed if it's fast enough to drive
the crtc's, and will make init faster.

If this commit causes bugs it's probably a bug related to keeping the
initial mode, because all it does is resetting crtc's.

Signed-off-by: Maarten Lankhorst <maarten.lankho...@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c 
b/drivers/gpu/drm/i915/intel_display.c
index 38334fdfc649..33687af30f6b 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -13189,10 +13189,10 @@ static int intel_atomic_check(struct drm_device *dev,
                if (ret)
                        return ret;
 
-               any_ms = true;
                pipe_config->update_pipe =
                        intel_modeset_calc_update_pipe(crtc, crtc_state);
                pipe_config->base.mode_changed = !pipe_config->update_pipe;
+               any_ms |= pipe_config->base.mode_changed;
 
                intel_dump_pipe_config(to_intel_crtc(crtc),
                                       pipe_config, "[modeset]");
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to