From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 9/9] drm/i915: Flush caches for scanout during cpu->gtt move Date: Mon, 25 Nov 2013 09:47:28 +0100 Message-ID: <20131125084728.GU27344@phenom.ffwll.local> References: <1385062193-19466-1-git-send-email-ville.syrjala@linux.intel.com> <1385062193-19466-10-git-send-email-ville.syrjala@linux.intel.com> <20131121232058.GB4166@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by gabe.freedesktop.org (Postfix) with ESMTP id A3F24FA6C6 for ; Mon, 25 Nov 2013 00:46:48 -0800 (PST) Received: by mail-wg0-f46.google.com with SMTP id m15so3434902wgh.1 for ; Mon, 25 Nov 2013 00:46:47 -0800 (PST) Content-Disposition: inline In-Reply-To: <20131121232058.GB4166@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Chris Wilson , ville.syrjala@linux.intel.com, intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Nov 21, 2013 at 11:20:58PM +0000, Chris Wilson wrote: > On Thu, Nov 21, 2013 at 09:29:53PM +0200, ville.syrjala@linux.intel.com w= rote: > > From: Ville Syrj=E4l=E4 > > = > > Flush the caches when moving a scanout buffer from CPU to GTT domain. > > This allows us to move a scanout buffer to CPU write domain, do some > > writes, and move it back to the GTT read domain. The display will then > > see the correct data. In addition we still need to do the dirtyfb > > ioctl to nuke FBC if that's enabled. > > = > > Signed-off-by: Ville Syrj=E4l=E4 > Reviewed-by: Chris Wilson Isn't this what sw_finish is for? > = > But we could actually rework flush_cpu_write_domain to drop the force > parameter now that we have obj->pin_display. Although it doesn't really fit into the new world any longer ... -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch