From: Chris Wilson Subject: Re: [PATCH] drm/i915: set cache sharing policy to max sharing on SNB+ Date: Sat, 02 Jul 2011 11:47:50 +0100 Message-ID: References: <1309563307-5480-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 388DD9E7D2 for ; Sat, 2 Jul 2011 03:47:53 -0700 (PDT) In-Reply-To: <1309563307-5480-1-git-send-email-jbarnes@virtuousgeek.org> 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: Jesse Barnes , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 1 Jul 2011 16:35:07 -0700, Jesse Barnes wrote: > By default, the GPU will only share a very small portion of the CPU > cache. With this change, both the GPU and CPU will have full access to > the cache, which should help (sometimes a lot) in most cases. Joy, this looks to be at best a mixed blessing. For CPU bound games like padman, it degrades performance by about 5% on my desktop SNB. But for nexuiz, there appears to be little change. The ddx shows further regression of the order of 10%. The immediate suspect is that it hurts the use of pixman for trapezoid mask generation, which whilst being less than ideal behaviour and will be fixed in the near future, is indicative of the sort of negative impact this change will have on CPU-memory bound applications. Conversely the equivalent spans-based code is about the only example I found that is sped up by the patch, by about 3%. Having just checked up on 0x900c, I'm even more confused. From my old specs, the register is SNPCR, the snoop control register, which makes more sense than MBC, and that 0<<21 is for the maximum uncore resources, the default setting and the default on my SNB, with 1<<21 being the medium setting. Now, the only reference I have is the register dump with no explanation of what the resource that is actually being controlled... -Chris -- Chris Wilson, Intel Open Source Technology Centre