From: Chris Wilson Subject: Re: [PATCH 1/2] drm/i915: make CRTC enable/disable asynchronous v2 Date: Fri, 30 May 2014 19:53:28 +0100 Message-ID: <20140530185328.GD10916@nuc-i3427.alporthouse.com> References: <1401473122-3451-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BCB06EB28 for ; Fri, 30 May 2014 11:53:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1401473122-3451-1-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, May 30, 2014 at 11:05:21AM -0700, Jesse Barnes wrote: > @@ -8166,6 +8296,8 @@ static int intel_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) > intel_crtc->cursor_x = clamp_t(int, x, SHRT_MIN, SHRT_MAX); > intel_crtc->cursor_y = clamp_t(int, y, SHRT_MIN, SHRT_MAX); > > + intel_sync_crtcs(crtc->dev->dev_private); > + > if (intel_crtc->active) > intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo != NULL); > Since the pending CRTC enable/disable will set the cursor anyway, this sync could be avoided if intel_crtc->active was accurate. -Chris -- Chris Wilson, Intel Open Source Technology Centre