[igt-dev] [PATCH i-g-t 1/6] lib/intel_chipset: identify Elkhart Lake

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Feb 17 14:21:50 UTC 2020


We'll need to identify this platform for performance tools.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 lib/intel_chipset.h     | 1 +
 lib/intel_device_info.c | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 2bd57f4f..929fac53 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -71,6 +71,7 @@ struct intel_device_info {
 	bool is_cometlake : 1;
 	bool is_cannonlake : 1;
 	bool is_icelake : 1;
+	bool is_elkhartlake : 1;
 	bool is_tigerlake : 1;
 	const char *codename;
 };
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 4f96577d..07eeb7c5 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -309,6 +309,12 @@ static const struct intel_device_info intel_icelake_info = {
 	.codename = "icelake"
 };
 
+static const struct intel_device_info intel_elkhartlake_info = {
+	.gen = BIT(10),
+	.is_elkhartlake = true,
+	.codename = ""
+};
+
 static const struct intel_device_info intel_tigerlake_info = {
 	.gen = BIT(11),
 	.is_tigerlake = true,
@@ -394,7 +400,7 @@ static const struct pci_id_match intel_device_match[] = {
 
 	INTEL_ICL_11_IDS(&intel_icelake_info),
 
-	INTEL_EHL_IDS(&intel_icelake_info),
+	INTEL_EHL_IDS(&intel_elkhartlake_info),
 
 	INTEL_TGL_12_IDS(&intel_tigerlake_info),
 
-- 
2.25.0



More information about the igt-dev mailing list