From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 4/9] drm/i915: add post-flush store dw workaround Date: Tue, 25 Sep 2012 04:07:04 -0700 Message-ID: <20120925040704.46bf38fa@jbarnes-desktop> References: <1348086543-24427-1-git-send-email-jbarnes@virtuousgeek.org> <1348086543-24427-4-git-send-email-jbarnes@virtuousgeek.org> <20120925084928.GE3824@bremse> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy11-pub.bluehost.com (oproxy11-pub.bluehost.com [173.254.64.10]) by gabe.freedesktop.org (Postfix) with SMTP id D8B589EF26 for ; Tue, 25 Sep 2012 04:06:54 -0700 (PDT) In-Reply-To: <20120925084928.GE3824@bremse> 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: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, 25 Sep 2012 10:49:28 +0200 Daniel Vetter wrote: > On Wed, Sep 19, 2012 at 01:28:58PM -0700, Jesse Barnes wrote: > > Several platforms need this to flush the CS write buffers. > > Chris spent quite some effort to dump less crap into the rings on gen6, > and your description here sounds like we only need this when flushing > write caches. Or it might only apply to CS writes (in which case this is > at the wrong spot). In any case, can you please double check where exactly > we need this and only add it there, with a neat comment explaining things > added? "write caches" as in "any time we do a store dw and want to read the result coherently" is my understanding. > I'm bitching because afair the CS stuff the windows driver emits (of which > I've seen some traces) only emits one such 8x MI_WRITE block per batch, > whereas your code here would emit 2 such 2x MI_WRITE blocks. Doing it once should be sufficient, I guess I need to split this out (probably a good idea anyway for comment & naming purposes). -- Jesse Barnes, Intel Open Source Technology Center