public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib: Add Cometlake platform definition
@ 2019-04-25 13:00 Petri Latvala
  2019-04-25 13:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Petri Latvala @ 2019-04-25 13:00 UTC (permalink / raw)
  To: igt-dev; +Cc: Anusha Srivatsa, Lucas De Marchi, Petri Latvala

Commit a794f28f01f2 ("lib: sync with the newer i915_pciids.h from the
Kernel") added CML PCI IDs but did not update intel_device_info.c

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110514
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
---
 lib/intel_chipset.h     |  1 +
 lib/intel_device_info.c | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 40170b7b..7fc9bd77 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -66,6 +66,7 @@ struct intel_device_info {
 	bool is_kabylake : 1;
 	bool is_geminilake : 1;
 	bool is_coffeelake : 1;
+	bool is_cometlake : 1;
 	bool is_cannonlake : 1;
 	bool is_icelake : 1;
 	const char *codename;
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 2bca5183..3f51211f 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -277,6 +277,21 @@ static const struct intel_device_info intel_coffeelake_gt3_info = {
 	.gt = 3,
 };
 
+#define COMETLAKE_FIELDS \
+	.gen = BIT(8), \
+	.is_cometlake = true, \
+	.codename = "cometlake"
+
+static const struct intel_device_info intel_cometlake_gt1_info = {
+	COMETLAKE_FIELDS,
+	.gt = 1,
+};
+
+static const struct intel_device_info intel_cometlake_gt2_info = {
+	COMETLAKE_FIELDS,
+	.gt = 2,
+};
+
 static const struct intel_device_info intel_cannonlake_info = {
 	.gen = BIT(9),
 	.is_cannonlake = true,
@@ -360,6 +375,9 @@ static const struct pci_id_match intel_device_match[] = {
 	INTEL_WHL_U_GT3_IDS(&intel_coffeelake_gt3_info),
 	INTEL_AML_CFL_GT2_IDS(&intel_coffeelake_gt2_info),
 
+	INTEL_CML_GT1_IDS(&intel_cometlake_gt1_info),
+	INTEL_CML_GT2_IDS(&intel_cometlake_gt2_info),
+
 	INTEL_CNL_IDS(&intel_cannonlake_info),
 
 	INTEL_ICL_11_IDS(&intel_icelake_info),
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-26  0:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-25 13:00 [igt-dev] [PATCH i-g-t] lib: Add Cometlake platform definition Petri Latvala
2019-04-25 13:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-04-25 15:41 ` [igt-dev] [PATCH i-g-t] " Antonio Argenziano
2019-04-26  0:07 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox