[Intel-gfx,2/3] intel: PCI Ids for H SKU in CFL

Submitted by Srivatsa, Anusha on June 21, 2017, 4:39 p.m.

Details

Message ID 1498063146-10802-2-git-send-email-anusha.srivatsa@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in libdrm - Intel

Not browsing as part of any series.

Commit Message

Srivatsa, Anusha June 21, 2017, 4:39 p.m.
Add the PCI IDs for H SKU IN CFL by following the spec.

v2: Update IDs

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
---
 intel/intel_chipset.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h
index 36bbec9..4da145c 100644
--- a/intel/intel_chipset.h
+++ b/intel/intel_chipset.h
@@ -226,6 +226,8 @@ 
 #define PCI_CHIP_COFFEELAKE_S_GT2_1     0x3E91
 #define PCI_CHIP_COFFEELAKE_S_GT2_2     0x3E92
 #define PCI_CHIP_COFFEELAKE_S_GT2_3     0x3E96
+#define PCI_CHIP_COFFEELAKE_H_GT2_1     0x3E9B
+#define PCI_CHIP_COFFEELAKE_H_GT2_2     0x3E94
 
 #define IS_MOBILE(devid)	((devid) == PCI_CHIP_I855_GM || \
 				 (devid) == PCI_CHIP_I915_GM || \
@@ -464,7 +466,11 @@ 
                                 (devid) == PCI_CHIP_COFFEELAKE_S_GT2_2 || \
                                 (devid) == PCI_CHIP_COFFEELAKE_S_GT2_3 )
 
-#define IS_COFFEELAKE(devid)   (IS_CFL_S(devid))
+#define IS_CFL_H(devid)         ((devid) == PCI_CHIP_COFFEELAKE_H_GT2_1 || \
+                                 (devid) == PCI_CHIP_COFFEELAKE_H_GT2_2)
+
+#define IS_COFFEELAKE(devid)   (IS_CFL_S(devid) || \
+				IS_CFL_H(devid))
 
 #define IS_GEN9(devid)		(IS_SKYLAKE(devid)  || \
 				 IS_BROXTON(devid)  || \

Comments

On 06/21/2017 09:39 AM, Anusha Srivatsa wrote:
> Add the PCI IDs for H SKU IN CFL by following the spec.
>
> v2: Update IDs
>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
> ---
>   intel/intel_chipset.h | 8 +++++++-
>   1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h
> index 36bbec9..4da145c 100644
> --- a/intel/intel_chipset.h
> +++ b/intel/intel_chipset.h
> @@ -226,6 +226,8 @@
>   #define PCI_CHIP_COFFEELAKE_S_GT2_1     0x3E91
>   #define PCI_CHIP_COFFEELAKE_S_GT2_2     0x3E92
>   #define PCI_CHIP_COFFEELAKE_S_GT2_3     0x3E96
> +#define PCI_CHIP_COFFEELAKE_H_GT2_1     0x3E9B
> +#define PCI_CHIP_COFFEELAKE_H_GT2_2     0x3E94
Matches BSPEC DID2 values
Reviewed-by: Clinton Taylor <clinton.a.taylor@intel.com>

>   
>   #define IS_MOBILE(devid)	((devid) == PCI_CHIP_I855_GM || \
>   				 (devid) == PCI_CHIP_I915_GM || \
> @@ -464,7 +466,11 @@
>                                   (devid) == PCI_CHIP_COFFEELAKE_S_GT2_2 || \
>                                   (devid) == PCI_CHIP_COFFEELAKE_S_GT2_3 )
>   
> -#define IS_COFFEELAKE(devid)   (IS_CFL_S(devid))
> +#define IS_CFL_H(devid)         ((devid) == PCI_CHIP_COFFEELAKE_H_GT2_1 || \
> +                                 (devid) == PCI_CHIP_COFFEELAKE_H_GT2_2)
> +
> +#define IS_COFFEELAKE(devid)   (IS_CFL_S(devid) || \
> +				IS_CFL_H(devid))
>   
>   #define IS_GEN9(devid)		(IS_SKYLAKE(devid)  || \
>   				 IS_BROXTON(devid)  || \