From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 17/30] drm/i915: Do not clflush snooped objects Date: Wed, 13 Apr 2011 18:34:57 +0100 Message-ID: <1bdc18$k7696j@fmsmga002.fm.intel.com> References: <1302640318-23165-1-git-send-email-chris@chris-wilson.co.uk> <1302640318-23165-18-git-send-email-chris@chris-wilson.co.uk> <20110413160437.GC3660@viiv.ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 85BD39E9AD for ; Wed, 13 Apr 2011 10:35:00 -0700 (PDT) In-Reply-To: <20110413160437.GC3660@viiv.ffwll.ch> 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 Wed, 13 Apr 2011 18:04:38 +0200, Daniel Vetter wrote: > On Tue, Apr 12, 2011 at 09:31:45PM +0100, Chris Wilson wrote: > > + /* If the GPU is snooping the contents of the CPU cache, > > + * we do not need to clear the CPU cache lines. Instead we need > > + * to be sure to flush/invalidate the RENDER cache when the contents > > + * must be refreshed. > > + */ > > The "Instead we need to be sure to flush the RENDER cache ..." is a bit > confusing to me: There's no instead, we have to do this always when > writing with the cpu. Besides this minor comment-nitpick it makes sense. I changed the comment to: /* If the GPU is snooping the contents of the CPU cache, * we do not need to manually clear the CPU cache lines. Instead, * the caches are only snooped when the render cache is * flushed/invalidated. As we always have to emit invalidations * and flushes when moving into and out of the RENDER domain, correct * snooping behaviour occurs naturally as the result of our domain * tracking. */ -Chris -- Chris Wilson, Intel Open Source Technology Centre