]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/ehl: Add EHL platform info and PCI IDs
authorJames Ausmus <james.ausmus@intel.com>
Fri, 22 Mar 2019 17:58:42 +0000 (10:58 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 22 Mar 2019 19:51:08 +0000 (12:51 -0700)
Add known EHL PCI IDs.

v2 (Rodrigo): Removed x86 early quirk. To be sent in a separated
          patch cc'ing the appropriated list and maintainers for
      proper ack.
v3: (Rodrigo): - Removed .num_pipes = 3 that is coming since GEN&_FEATURES.
            - Added ppgtt type and size after rework from Bob and Chris
v4: (Rodrigo): - remove ppgtt type added on v3. Jose pointed it is not
              needed.

Cc: Bob Paauwe <bob.j.paauwe@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: James Ausmus <james.ausmus@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Bob Paauwe <bob.j.paauwe@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190322175847.25707-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/i915_pci.c
include/drm/i915_pciids.h

index 7a6054eadb8e99604140d019086ecc5093c3915a..fa99d68cbe7d5429c387be719f292334b0b665ed 100644 (file)
@@ -730,6 +730,14 @@ static const struct intel_device_info intel_icelake_11_info = {
                BIT(RCS0) | BIT(BCS0) | BIT(VECS0) | BIT(VCS0) | BIT(VCS2),
 };
 
+static const struct intel_device_info intel_elkhartlake_info = {
+       GEN11_FEATURES,
+       PLATFORM(INTEL_ICELAKE),
+       .is_alpha_support = 1,
+       .engine_mask = BIT(RCS0) | BIT(BCS0) | BIT(VCS0),
+       .ppgtt_size = 36,
+};
+
 #undef GEN
 #undef PLATFORM
 
@@ -799,6 +807,7 @@ static const struct pci_device_id pciidlist[] = {
        INTEL_CML_GT2_IDS(&intel_coffeelake_gt2_info),
        INTEL_CNL_IDS(&intel_cannonlake_info),
        INTEL_ICL_11_IDS(&intel_icelake_11_info),
+       INTEL_EHL_IDS(&intel_elkhartlake_info),
        {0, 0, 0}
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);
index 291b5e3fa59ce1189a2502417a2723d92579f4ce..c7cdbfc4d033bc69dd41c703c9905e7e4c1abaaf 100644 (file)
        INTEL_VGA_DEVICE(0x8A70, info), \
        INTEL_VGA_DEVICE(0x8A53, info)
 
+/* EHL */
+#define INTEL_EHL_IDS(info) \
+       INTEL_VGA_DEVICE(0x4500, info), \
+       INTEL_VGA_DEVICE(0x4571, info), \
+       INTEL_VGA_DEVICE(0x4551, info), \
+       INTEL_VGA_DEVICE(0x4541, info)
+
 #endif /* _I915_PCIIDS_H */