瀏覽代碼

drm/i915: Use the ilk_disable_lp_wm() return value

ilk_disable_lp_wm() will tell us whether the LP1+ watermarks were
disabled or not, and hence whether we need to for the vblank wait or
not. Let's use that information to eliminate some useless vblank
waits.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1480354637-14209-3-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Ville Syrjälä 9 年之前
父節點
當前提交
ddd2b792cc
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/gpu/drm/i915/intel_display.c

+ 1 - 3
drivers/gpu/drm/i915/intel_display.c

@@ -5114,10 +5114,8 @@ static void intel_pre_plane_update(struct intel_crtc_state *old_crtc_state)
 	 *
 	 *
 	 * WaCxSRDisabledForSpriteScaling:ivb
 	 * WaCxSRDisabledForSpriteScaling:ivb
 	 */
 	 */
-	if (pipe_config->disable_lp_wm) {
-		ilk_disable_lp_wm(dev);
+	if (pipe_config->disable_lp_wm && ilk_disable_lp_wm(dev))
 		intel_wait_for_vblank(dev_priv, crtc->pipe);
 		intel_wait_for_vblank(dev_priv, crtc->pipe);
-	}
 
 
 	/*
 	/*
 	 * If we're doing a modeset, we're done.  No need to do any pre-vblank
 	 * If we're doing a modeset, we're done.  No need to do any pre-vblank