]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe/lnl: Add LNL platform definition
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 11 Aug 2023 16:06:16 +0000 (09:06 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:26 +0000 (11:40 -0500)
LNL is an integrated GPU based on the Xe2 architecture.

Bspec: 70821
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_platform_types.h
include/drm/xe_pciids.h

index 8512cd4518877c458a1f857a8b81eadc8dcee69c..6c2c6723b1b263483f3008c5d263c52c26e43444 100644 (file)
@@ -319,6 +319,11 @@ static const struct xe_device_desc mtl_desc = {
        PLATFORM(XE_METEORLAKE),
 };
 
+static const struct xe_device_desc lnl_desc = {
+       PLATFORM(XE_LUNARLAKE),
+       .require_force_probe = true,
+};
+
 #undef PLATFORM
 
 /* Map of GMD_ID values to graphics IP */
@@ -356,6 +361,7 @@ static const struct pci_device_id pciidlist[] = {
        XE_ATS_M_IDS(INTEL_VGA_DEVICE, &ats_m_desc),
        XE_DG2_IDS(INTEL_VGA_DEVICE, &dg2_desc),
        XE_MTL_IDS(INTEL_VGA_DEVICE, &mtl_desc),
+       XE_LNL_IDS(INTEL_VGA_DEVICE, &lnl_desc),
        { }
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);
index abbb8a1f29a8e5d8e8cacdcee2f7a2dd5d973e6a..e378a64a0f8637875fe1734b25d9d7f972c697c3 100644 (file)
@@ -21,6 +21,7 @@ enum xe_platform {
        XE_DG2,
        XE_PVC,
        XE_METEORLAKE,
+       XE_LUNARLAKE,
 };
 
 enum xe_subplatform {
index 0d0cf80eb0ba3b0a13851a4a6698b868a73a06ea..f6ac6d9772ee1a5c73ec501eca397a551be203e9 100644 (file)
        XE_MTL_S_IDS(MACRO__, ## __VA_ARGS__),  \
        XE_ARL_IDS(MACRO__, ## __VA_ARGS__)
 
+#define XE_LNL_IDS(MACRO__, ...) \
+       MACRO__(0x6420, ## __VA_ARGS__), \
+       MACRO__(0x64A0, ## __VA_ARGS__), \
+       MACRO__(0x64B0, ## __VA_ARGS__)
+
 #endif