diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-07-24 18:04:55 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-07-26 23:31:04 +0100 |
commit | 6b72caa5056a8baa90584101792324b65773463a (patch) | |
tree | 0af61107a139d5dc50116c6a00d8948a8992d35a | |
parent | 5a37420ee5d19be248cc38fced0bf90212a36e74 (diff) |
lib/i915: Identify Rocketlake
commit a048d54f58dd ("lib: Sync i915 PCI ids") added the ids for
Rocketlake, but no identification tables.
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2217
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
-rw-r--r-- | lib/intel_chipset.h | 2 | ||||
-rw-r--r-- | lib/intel_device_info.c | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 929fac530..aab823a17 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -73,6 +73,7 @@ struct intel_device_info { bool is_icelake : 1; bool is_elkhartlake : 1; bool is_tigerlake : 1; + bool is_rocketlake : 1; const char *codename; }; @@ -172,6 +173,7 @@ void intel_check_pch(void); #define IS_CANNONLAKE(devid) (intel_get_device_info(devid)->is_cannonlake) #define IS_ICELAKE(devid) (intel_get_device_info(devid)->is_icelake) #define IS_TIGERLAKE(devid) (intel_get_device_info(devid)->is_tigerlake) +#define IS_ROCKETLAKE(devid) (intel_get_device_info(devid)->is_rocketlake) #define IS_GEN(devid, x) (intel_get_device_info(devid)->gen & (1u << ((x)-1))) #define AT_LEAST_GEN(devid, x) (intel_get_device_info(devid)->gen & -(1u << ((x)-1))) diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 21f7a9570..6c9ac388c 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -321,6 +321,12 @@ static const struct intel_device_info intel_tigerlake_info = { .codename = "tigerlake" }; +static const struct intel_device_info intel_rocketlake_info = { + .gen = BIT(11), + .is_rocketlake = true, + .codename = "rocketlake" +}; + static const struct pci_id_match intel_device_match[] = { INTEL_I810_IDS(&intel_i810_info), INTEL_I815_IDS(&intel_i815_info), @@ -405,6 +411,7 @@ static const struct pci_id_match intel_device_match[] = { INTEL_EHL_IDS(&intel_elkhartlake_info), INTEL_TGL_12_IDS(&intel_tigerlake_info), + INTEL_RKL_IDS(&intel_rocketlake_info), INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info), }; |