Thomas Zimmermann ebf85e
From e918d79a5d0a1b431e2cac0e6e6ac9452fd9ab32 Mon Sep 17 00:00:00 2001
Thomas Zimmermann ebf85e
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
Thomas Zimmermann ebf85e
Date: Tue, 6 Jun 2017 13:30:32 -0700
Thomas Zimmermann ebf85e
Subject: [PATCH] drm/i915/cnl: Add Cannonlake PCI IDs for U-skus.
Thomas Zimmermann ebf85e
Git-commit: e918d79a5d0a1b431e2cac0e6e6ac9452fd9ab32
Thomas Zimmermann ebf85e
Patch-mainline: v4.13-rc1
Thomas Zimmermann ebf85e
References: FATE#322643 bsc#1055900
Thomas Zimmermann ebf85e
Thomas Zimmermann ebf85e
Platform enabling and its power-on are organized in different
Thomas Zimmermann ebf85e
skus (U x Y x S x H, etc). So instead of organizing it in
Thomas Zimmermann ebf85e
GT1 x GT2 x GT3 let's also use the platform sku.
Thomas Zimmermann ebf85e
Thomas Zimmermann ebf85e
This is also the new Spec style what makes the review much
Thomas Zimmermann ebf85e
more easy and straightforward.
Thomas Zimmermann ebf85e
Thomas Zimmermann ebf85e
V2: Really include the PCI IDs to the picidlist[];
Thomas Zimmermann ebf85e
V3: Remove PCI IDs not present in spec.
Thomas Zimmermann ebf85e
V4: Rebase.
Thomas Zimmermann ebf85e
Thomas Zimmermann ebf85e
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Thomas Zimmermann ebf85e
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Thomas Zimmermann ebf85e
Reviewed-by: Clinton Taylor <clinton.a.taylor@intel.com>
Thomas Zimmermann ebf85e
Link: http://patchwork.freedesktop.org/patch/msgid/1496781040-20888-3-git-send-email-rodrigo.vivi@intel.com
Thomas Zimmermann ebf85e
Acked-by: Takashi Iwai <tiwai@suse.de>
Thomas Zimmermann ebf85e
Thomas Zimmermann ebf85e
---
Thomas Zimmermann ebf85e
 drivers/gpu/drm/i915/i915_pci.c |    1 +
Thomas Zimmermann ebf85e
 include/drm/i915_pciids.h       |   10 ++++++++++
Thomas Zimmermann ebf85e
 2 files changed, 11 insertions(+)
Thomas Zimmermann ebf85e
Thomas Zimmermann ebf85e
--- a/drivers/gpu/drm/i915/i915_pci.c
Thomas Zimmermann ebf85e
+++ b/drivers/gpu/drm/i915/i915_pci.c
Thomas Zimmermann ebf85e
@@ -477,6 +477,7 @@ static const struct pci_device_id pciidl
Thomas Zimmermann ebf85e
 	INTEL_KBL_GT2_IDS(&intel_kabylake_info),
Thomas Zimmermann ebf85e
 	INTEL_KBL_GT3_IDS(&intel_kabylake_gt3_info),
Thomas Zimmermann ebf85e
 	INTEL_KBL_GT4_IDS(&intel_kabylake_gt3_info),
Thomas Zimmermann ebf85e
+	INTEL_CNL_IDS(&intel_cannonlake_info),
Thomas Zimmermann ebf85e
 	{0, 0, 0}
Thomas Zimmermann ebf85e
 };
Thomas Zimmermann ebf85e
 MODULE_DEVICE_TABLE(pci, pciidlist);
Thomas Zimmermann ebf85e
--- a/include/drm/i915_pciids.h
Thomas Zimmermann ebf85e
+++ b/include/drm/i915_pciids.h
Thomas Zimmermann ebf85e
@@ -334,4 +334,14 @@
Thomas Zimmermann ebf85e
 	INTEL_KBL_GT3_IDS(info), \
Thomas Zimmermann ebf85e
 	INTEL_KBL_GT4_IDS(info)
Thomas Zimmermann ebf85e
 
Thomas Zimmermann ebf85e
+/* CNL U 2+2 */
Thomas Zimmermann ebf85e
+#define INTEL_CNL_U_GT2_IDS(info) \
Thomas Zimmermann ebf85e
+	INTEL_VGA_DEVICE(0x5A52, info), \
Thomas Zimmermann ebf85e
+	INTEL_VGA_DEVICE(0x5A5A, info), \
Thomas Zimmermann ebf85e
+	INTEL_VGA_DEVICE(0x5A42, info), \
Thomas Zimmermann ebf85e
+	INTEL_VGA_DEVICE(0x5A4A, info)
Thomas Zimmermann ebf85e
+
Thomas Zimmermann ebf85e
+#define INTEL_CNL_IDS(info) \
Thomas Zimmermann ebf85e
+	INTEL_CNL_U_GT2_IDS(info)
Thomas Zimmermann ebf85e
+
Thomas Zimmermann ebf85e
 #endif /* _I915_PCIIDS_H */