diff mbox

[v2,20/20] drm/i915: Skip modeset checks when modeset is prevented.

Message ID 1436252911-5703-21-git-send-email-maarten.lankhorst@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Maarten Lankhorst July 7, 2015, 7:08 a.m. UTC
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.lankhorst@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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]");