From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH 3/9] drm/i915: Update rules for writing through the LLC with the cpu Date: Thu, 8 Aug 2013 18:51:26 +0300 Message-ID: <20130808155126.GA5004@intel.com> References: <1375969271-4331-1-git-send-email-chris@chris-wilson.co.uk> <1375969271-4331-3-git-send-email-chris@chris-wilson.co.uk> <20130808152712.GZ5004@intel.com> <20130808153635.GB30355@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id A6C91E694A for ; Thu, 8 Aug 2013 08:51:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130808153635.GB30355@cantiga.alporthouse.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: Chris Wilson , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Aug 08, 2013 at 04:36:35PM +0100, Chris Wilson wrote: > On Thu, Aug 08, 2013 at 06:27:12PM +0300, Ville Syrj=E4l=E4 wrote: > > On Thu, Aug 08, 2013 at 02:41:05PM +0100, Chris Wilson wrote: > > > if (!needs_clflush_after && > > > obj->base.write_domain !=3D I915_GEM_DOMAIN_CPU) { > > > - i915_gem_clflush_object(obj); > > > + i915_gem_clflush_object(obj, false); > > = > > Shouldn't that be i915_gem_clflush_object(obj, obj->pin_display) ? > = > !needs_clflush_after implies that we cache-coherent and not writing to a > scanout, so obj->pin_display must be false here. But we dropped the lock in the slow path, so couldn't it have changed? -- = Ville Syrj=E4l=E4 Intel OTC