From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH] sna: check for LLC support Date: Tue, 17 Jan 2012 18:44:58 +0000 Message-ID: References: <1326823549-18789-1-git-send-email-eugeni.dodonov@intel.com> <1326824197-4553-1-git-send-email-eugeni.dodonov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A86A9E88B for ; Tue, 17 Jan 2012 10:45:09 -0800 (PST) In-Reply-To: <1326824197-4553-1-git-send-email-eugeni.dodonov@intel.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: intel-gfx@lists.freedesktop.org Cc: Eugeni Dodonov List-Id: intel-gfx@lists.freedesktop.org On Tue, 17 Jan 2012 16:16:37 -0200, Eugeni Dodonov wrote: > Instead of checking for CPU generation, use the libdrm-provided > I915_PARAM_HAS_LLC instead. > > v2: use a define check to verify if we have I915_PARAM_HAS_LLC. > > Signed-off-by: Eugeni Dodonov I attacked it slightly so that gem_param reported the lack of support so that we could fallback to guessing by gen for GET_PARAM failure. Thanks, -Chris -- Chris Wilson, Intel Open Source Technology Centre