From: "Kenneth Graunke" Subject: Re: [PATCH 4/4] Add support for Ivybridge chipset. Date: Sat, 7 May 2011 13:17:00 -0700 Message-ID: <84bb849abe76c1fbe68fd4681984855b.squirrel@webmail.whitecape.org> References: <1304726935-8428-1-git-send-email-eric@anholt.net> <1304726935-8428-4-git-send-email-eric@anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from homiemail-a4.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by gabe.freedesktop.org (Postfix) with ESMTP id 1AFEB9E803 for ; Sat, 7 May 2011 13:15:28 -0700 (PDT) In-Reply-To: <1304726935-8428-4-git-send-email-eric@anholt.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: Eric Anholt Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org > This gets display and 2D blit acceleration up and running. No Render > acceleration is provided yet. [snip] > diff --git a/src/intel_driver.h b/src/intel_driver.h > index 2e72177..180281e 100644 > --- a/src/intel_driver.h > +++ b/src/intel_driver.h > @@ -184,6 +184,13 @@ > #define PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS 0x0126 > #define PCI_CHIP_SANDYBRIDGE_BRIDGE_S 0x0108 /* Server */ > #define PCI_CHIP_SANDYBRIDGE_S_GT 0x010A > + > +#define PCI_CHIP_IVYBRIDGE_M_GT1 0x0156 > +#define PCI_CHIP_IVYBRIDGE_M_GT2 0x0166 > +#define PCI_CHIP_IVYBRIDGE_D_GT1 0x0152 > +#define PCI_CHIP_IVYBRIDGE_D_GT1_SERVER 0x015a > +#define PCI_CHIP_IVYBRIDGE_D_GT2 0x0162 > + I think I'd prefer PCI_CHIP_IVYBRIDGE_S_GT1 - I think that's more consistent - but up to you. It's rather annoying that we have these PCI ID defines in the kernel, 2D driver, and twice in Mesa. Ditto for the IS_IVYBRIDGE/IS_GEN7/etc. macros. But I'm not sure what to do about it, really. > #endif > > #define I85X_CAPID 0x44 > @@ -209,6 +216,7 @@ > #define IS_GEN4(intel) IS_GENx(intel, 4) > #define IS_GEN5(intel) IS_GENx(intel, 5) > #define IS_GEN6(intel) IS_GENx(intel, 6) > +#define IS_GEN7(intel) IS_GENx(intel, 7) > > /* Some chips have specific errata (or limits) that we need to > workaround. */ > #define IS_I830(intel) (DEVICE_ID((intel)->PciInfo) == PCI_CHIP_I830_M) > @@ -222,6 +230,7 @@ > > /* supports Y tiled surfaces (pre-965 Mesa isn't ready yet) */ > #define SUPPORTS_YTILING(pI810) (INTEL_INFO(intel)->gen >= 40) > +#define HAS_BLT(pI810) (INTEL_INFO(intel)->gen >= 60) > > extern SymTabRec *intel_chipsets; > > diff --git a/src/intel_module.c b/src/intel_module.c > index 6cf5951..13f1635 100644 > --- a/src/intel_module.c > +++ b/src/intel_module.c > @@ -73,6 +73,10 @@ static const struct intel_device_info > intel_sandybridge_info = { > .gen = 60, > }; > > +static const struct intel_device_info intel_ivybridge_info = { > + .gen = 70, > +}; > + > static const SymTabRec _intel_chipsets[] = { > {PCI_CHIP_I810, "i810"}, > {PCI_CHIP_I810_DC100, "i810-dc100"}, > @@ -116,6 +120,11 @@ static const SymTabRec _intel_chipsets[] = { > {PCI_CHIP_SANDYBRIDGE_M_GT2, "Sandybridge" }, > {PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS, "Sandybridge" }, > {PCI_CHIP_SANDYBRIDGE_S_GT, "Sandybridge" }, > + {PCI_CHIP_IVYBRIDGE_M_GT1, "Ivybridge Mobile GT1" }, > + {PCI_CHIP_IVYBRIDGE_M_GT2, "Ivybridge Mobile GT2" }, > + {PCI_CHIP_IVYBRIDGE_D_GT1, "Ivybridge Desktop GT1" }, > + {PCI_CHIP_IVYBRIDGE_D_GT1_SERVER, "Ivybridge Desktop Server GT1" }, > + {PCI_CHIP_IVYBRIDGE_D_GT2, "Ivybridge Desktop GT2" }, > {-1, NULL} > }; > SymTabRec *intel_chipsets = (SymTabRec *) _intel_chipsets; > @@ -173,6 +182,13 @@ static const struct pci_id_match intel_device_match[] > = { > INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS, > &intel_sandybridge_info ), > INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_S_GT, > &intel_sandybridge_info ), > > + > + INTEL_DEVICE_MATCH (PCI_CHIP_IVYBRIDGE_M_GT1, &intel_ivybridge_info > ), > + INTEL_DEVICE_MATCH (PCI_CHIP_IVYBRIDGE_M_GT2, &intel_ivybridge_info > ), > + INTEL_DEVICE_MATCH (PCI_CHIP_IVYBRIDGE_D_GT1, &intel_ivybridge_info > ), > + INTEL_DEVICE_MATCH (PCI_CHIP_IVYBRIDGE_D_GT1_SERVER, > &intel_ivybridge_info ), > + INTEL_DEVICE_MATCH (PCI_CHIP_IVYBRIDGE_D_GT2, &intel_ivybridge_info > ), > + > { 0, 0, 0 }, > }; > > -- > 1.7.4.4 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx >