From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH] drm/i915: IOCTL to query the cache level of a BO. Date: Fri, 23 Sep 2011 10:00:12 +0100 Message-ID: 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 mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E2619E8EB for ; Fri, 23 Sep 2011 02:00:17 -0700 (PDT) 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: intel-gfx@lists.freedesktop.org Cc: Daniel Vetter , Ben Widawsky , "Kilarski, Bernard R" List-Id: intel-gfx@lists.freedesktop.org On Thu, 22 Sep 2011 16:27:10 -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 This is indeed useful. Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre