From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [PATCH 6/6] drm/i915: Really wait for pending flips in intel_pipe_set_base() Date: Wed, 13 Feb 2013 10:40:28 +0000 Message-ID: <20130213104028.GF20865@dyon.amr.corp.intel.com> References: <1359476018-31274-1-git-send-email-ville.syrjala@linux.intel.com> <1359476018-31274-7-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 76400E63DA for ; Wed, 13 Feb 2013 02:40:30 -0800 (PST) Content-Disposition: inline In-Reply-To: <1359476018-31274-7-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Jan 29, 2013 at 06:13:38PM +0200, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > Since obj->pending_flips was never set, intel_pipe_set_base() never > actually waited for pending page flips to complete. > = > We really do want to wait for the pending flips, because otherwise the > mmio surface base address update could overtake the flip, and you > could end up with an old frame on the screen once the flip really > completes. > = > Just call intel_crtc_wait_pending_flips_locked() instead of > intel_finish_fb() from intel_pipe_set_base() to achieve the > desired result. > = > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Damien Lespiau -- = Damien