From: Daniel Vetter Subject: Re: [PATCH 02/71] drm/i915/chv: Add IS_CHERRYVIEW() macro Date: Wed, 9 Apr 2014 17:36:00 +0200 Message-ID: <20140409153600.GH9262@phenom.ffwll.local> References: <1397039349-10639-1-git-send-email-ville.syrjala@linux.intel.com> <1397039349-10639-3-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by gabe.freedesktop.org (Postfix) with ESMTP id D4E7C6E04B for ; Wed, 9 Apr 2014 08:36:03 -0700 (PDT) Received: by mail-ee0-f45.google.com with SMTP id d17so2057932eek.4 for ; Wed, 09 Apr 2014 08:36:02 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1397039349-10639-3-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Apr 09, 2014 at 01:28:00PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > We will treat Cherryview like Valleyview for most parts. Add a macro > for cases when we need to tell the two apart. > = > Signed-off-by: Ville Syrj=E4l=E4 Merged first 2 patches to dinq. -Daniel > --- > drivers/gpu/drm/i915/i915_drv.h | 1 + > 1 file changed, 1 insertion(+) > = > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_= drv.h > index 41cf429..f760803 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -1788,6 +1788,7 @@ struct drm_i915_cmd_table { > (dev)->pdev->device =3D=3D 0x0106 || \ > (dev)->pdev->device =3D=3D 0x010A) > #define IS_VALLEYVIEW(dev) (INTEL_INFO(dev)->is_valleyview) > +#define IS_CHERRYVIEW(dev) (INTEL_INFO(dev)->is_valleyview && IS_GEN8(de= v)) > #define IS_HASWELL(dev) (INTEL_INFO(dev)->is_haswell) > #define IS_BROADWELL(dev) (!INTEL_INFO(dev)->is_valleyview && IS_GEN8(de= v)) > #define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile) > -- = > 1.8.3.2 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch