From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Prefer setting PTE cache age to 3 Date: Mon, 25 Nov 2013 09:50:49 +0100 Message-ID: <20131125085049.GV27344@phenom.ffwll.local> References: <1385116673-21675-1-git-send-email-chris@chris-wilson.co.uk> <87wqk0gu32.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by gabe.freedesktop.org (Postfix) with ESMTP id B9099FA6C8 for ; Mon, 25 Nov 2013 00:50:10 -0800 (PST) Received: by mail-wg0-f44.google.com with SMTP id a1so1628102wgh.11 for ; Mon, 25 Nov 2013 00:50:10 -0800 (PST) Content-Disposition: inline In-Reply-To: <87wqk0gu32.fsf@eliezer.anholt.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Eric Anholt Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Nov 22, 2013 at 10:38:41AM -0800, Eric Anholt wrote: > Chris Wilson writes: > > > We have conflicting benchmark data that suggest either age 0 or age 3 is > > better. However, the earlier benchmark on which we based the switch to > > age 0 > > > > (commit 0d8ff15e9a15f2b393e53337a107b7a1e5919b6d > > Author: Ben Widawsky > > Date: Thu Jul 4 11:02:03 2013 -0700 > > > > drm/i915/hsw: Set correct Haswell PTE encodings) > > > > actually seems to prefer the default PTE encoding as age 3. Presumably, > > this is in part due to the use of MOCS to override the PTE encodings > > when appropriate. > > This bothered me when reviewing the kernel code for hsw. Thanks. > > Reviewed-by: Eric Anholt > > Note that userspace doesn't currently set MOCS other than the L3 bit. > I'm hoping we end up not having to, since we don't have a WT option in > MOCS other than "just listen to the PTEs". Picked up for -fixes, thanks for the patch&review. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch