OSDN Git Service

drm/i915: don't wait for vblank after enabling pipe on HSW
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 19 Dec 2013 21:12:30 +0000 (19:12 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 17:53:07 +0000 (18:53 +0100)
Because on Haswell, the pipe is never running at this point, so we hit
the 50ms timeout waiting for nothing. We already have two other places
where we wait for vblanks on haswell_crtc_enable, so we're safe.

This gets us rid of one instance of "vblank wait timed out" for each
mode set, which means driver init and resume are also 50ms faster.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index c456768..0523419 100644 (file)
@@ -3747,7 +3747,7 @@ static void haswell_crtc_enable(struct drm_crtc *crtc)
 
        intel_update_watermarks(crtc);
        intel_enable_pipe(dev_priv, pipe,
-                         intel_crtc->config.has_pch_encoder, false, true);
+                         intel_crtc->config.has_pch_encoder, false, false);
 
        if (intel_crtc->config.has_pch_encoder)
                lpt_pch_enable(crtc);