From: Chris Wilson Subject: Re: [PATCH] drm/i915: GFDT support for SNB/IVB Date: Mon, 4 Mar 2013 14:01:33 +0000 Message-ID: <20130304140133.GE5364@cantiga.alporthouse.com> References: <1362162777-21626-1-git-send-email-ville.syrjala@linux.intel.com> <20130303162852.GE9021@phenom.ffwll.local> <20130303173908.GB5364@cantiga.alporthouse.com> <20130304135111.GH4469@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 ECBE2E5D21 for ; Mon, 4 Mar 2013 06:02:33 -0800 (PST) Content-Disposition: inline In-Reply-To: <20130304135111.GH4469@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 =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Mar 04, 2013 at 03:51:11PM +0200, Ville Syrj=E4l=E4 wrote: > On Sun, Mar 03, 2013 at 05:39:09PM +0000, Chris Wilson wrote: > > On Sun, Mar 03, 2013 at 05:28:52PM +0100, Daniel Vetter wrote: > > > The other thing was that I didn't manage to get things to work proper= ly, > > > leaving some random cachline dirt on the screen. Looking at your code= , you > > > add the gfdt flush to every ring_flush, whereas I've tried to be clev= er > > > and only flushed after batches rendering to the frontbuffer. So proba= bly a > > > bug in my code, or a flush on a given ring doesn't flush out caches f= or > > > one of the other engines. > > = > > Right, we have a formalized interface for flushes to scanout rather than > > always flushing GFDT. > = > We do? Where's that? A side-effect of the API for busy_ioctl() is that all caches for the bo are flushed and any outstanding requests queued in order for the bo to become unbusy in the near-future. This semantic was required for GL query objects to eventually complete without futher interaction. It also solved the problem of having to flush the scanout periodically on gen4+ (and on gen3 if we enable the optimisation bit) and is so enshrined into lore. -Chris -- = Chris Wilson, Intel Open Source Technology Centre