summaryrefslogtreecommitdiff
path: root/lib/intel_device_info.c
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-02-14 13:33:37 +0100
committerZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-02-15 16:05:49 +0100
commitb842aa665d4834a9a91436fb0030670c62002fc8 (patch)
tree25174464aedd28488fa2a0e30d5e684e78df7706 /lib/intel_device_info.c
parent4a18bc7336a88d1ce76510d19d346e4c26b22e9a (diff)
lib/intel_device_info: Introduce i915_pciids_local.h and add DG2 definition
Before pciids will land in the kernel and then is merged to IGT we need to add them locally to unblock compilation and testing staged kernels. We can use some hybrid solution where intel_device_info takes official pciids from i915_pciids.h and not official from i915_pciids_local.h. Such strategy allows us to decrease code changes in the libraries/tests especially where IS_GENx() or IS_<machine>() macros are in use. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/intel_device_info.c')
-rw-r--r--lib/intel_device_info.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 40942afe..4aabdafe 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -1,5 +1,6 @@
#include "intel_chipset.h"
#include "i915_pciids.h"
+#include "i915_pciids_local.h"
#include <strings.h> /* ffs() */
@@ -389,6 +390,13 @@ 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 = 13,
+ .is_dg2 = true,
+ .codename = "dg2",
+};
+
static const struct intel_device_info intel_alderlake_s_info = {
.graphics_ver = 12,
.display_ver = 12,
@@ -506,6 +514,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),