[igt-dev] [PATCH i-g-t 1/4] FIXME: Add DG2 defs to use in gem-ccs

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Feb 9 23:30:41 UTC 2022


Only for use before kernel defs will land.
---
 lib/i915_pciids.h       | 7 +++++++
 lib/intel_device_info.c | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/lib/i915_pciids.h b/lib/i915_pciids.h
index 533890dc9..24747f462 100644
--- a/lib/i915_pciids.h
+++ b/lib/i915_pciids.h
@@ -635,6 +635,13 @@
 	INTEL_VGA_DEVICE(0x4908, info), \
 	INTEL_VGA_DEVICE(0x4909, info)
 
+/* DG2 */
+#define INTEL_DG2_IDS(info) \
+	INTEL_VGA_DEVICE(0x56A0, info), \
+	INTEL_VGA_DEVICE(0x56A2, info), \
+	INTEL_VGA_DEVICE(0x56A5, info), \
+	INTEL_VGA_DEVICE(0x56A6, info)
+
 /* ADL-S */
 #define INTEL_ADLS_IDS(info) \
 	INTEL_VGA_DEVICE(0x4680, info), \
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 40942afe7..279ae1e56 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -389,6 +389,12 @@ static const struct intel_device_info intel_dg1_info = {
 	.codename = "dg1"
 };
 
+static const struct intel_device_info intel_dg2_info = {
+	.graphics_ver = 12,
+	.display_ver = 12,
+	.codename = "dg2"
+};
+
 static const struct intel_device_info intel_alderlake_s_info = {
 	.graphics_ver = 12,
 	.display_ver = 12,
@@ -506,6 +512,7 @@ static const struct pci_id_match intel_device_match[] = {
 	INTEL_RKL_IDS(&intel_rocketlake_info),
 
 	INTEL_DG1_IDS(&intel_dg1_info),
+	INTEL_DG2_IDS(&intel_dg2_info),
 
 	INTEL_ADLS_IDS(&intel_alderlake_s_info),
 	INTEL_RPLS_IDS(&intel_raptorlake_s_info),
-- 
2.32.0



More information about the igt-dev mailing list