From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: IOCTL to query the cache level of a BO. Date: Fri, 23 Sep 2011 10:04:17 +0200 Message-ID: <20110923080417.GA2793@phenom.ffwll.local> References: <1316734033-17228-1-git-send-email-ben@bwidawsk.net> <1316734033-17228-2-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ww0-f43.google.com (mail-ww0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id D72489EFAC for ; Fri, 23 Sep 2011 01:03:50 -0700 (PDT) Received: by wwf27 with SMTP id 27so2849591wwf.12 for ; Fri, 23 Sep 2011 01:03:50 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1316734033-17228-2-git-send-email-ben@bwidawsk.net> 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: Ben Widawsky Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, "Kilarski, Bernard R" List-Id: intel-gfx@lists.freedesktop.org On Thu, Sep 22, 2011 at 04:27:10PM -0700, Ben Widawsky wrote: > Querying a BO's cache level can help clients wishing to map the buffer. > For example, an Ironlake machine could query the buffer to determine it > should use GTT mappings, while a Sandybridge machine running the same > code would prefer to use regular CPU mapped buffers since the cache is > coherent. > > Cc: Daniel Vetter > Cc: Eric Anholt > Cc: "Kilarski, Bernard R" > Signed-off-by: Ben Widawsky Reviewed-by: Daniel Vetter -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48