]> www.infradead.org Git - linux.git/commitdiff
drm/xe/ptl: Add PTL platform definition
authorHaridhar Kalvala <haridhar.kalvala@intel.com>
Tue, 8 Oct 2024 01:35:08 +0000 (18:35 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 8 Oct 2024 16:19:50 +0000 (09:19 -0700)
PTL is an integrated GPU based on the Xe3 architecture.

v2: explicitly turn off display until display patches land.

Bspec: 72574
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Haridhar Kalvala <haridhar.kalvala@intel.com>
Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241008013509.61233-6-matthew.s.atwood@intel.com
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_platform_types.h
include/drm/intel/xe_pciids.h

index d99f5ddbc70d7b994c3b13dc25540b8a7b3c601b..64a8336ca43731126ea141d33579215068623091 100644 (file)
@@ -346,6 +346,12 @@ static const struct xe_device_desc bmg_desc = {
        .has_heci_cscfi = 1,
 };
 
+static const struct xe_device_desc ptl_desc = {
+       PLATFORM(PANTHERLAKE),
+       .has_display = false,
+       .require_force_probe = true,
+};
+
 #undef PLATFORM
 __diag_pop();
 
@@ -395,6 +401,7 @@ static const struct pci_device_id pciidlist[] = {
        XE_MTL_IDS(INTEL_VGA_DEVICE, &mtl_desc),
        XE_LNL_IDS(INTEL_VGA_DEVICE, &lnl_desc),
        XE_BMG_IDS(INTEL_VGA_DEVICE, &bmg_desc),
+       XE_PTL_IDS(INTEL_VGA_DEVICE, &ptl_desc),
        { }
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);
index 79b7042c4534edd3dd7ce2934baaafc0eaf24e2e..d08574c4cdb8b0c88022c7c854fc8ab56ab5fec4 100644 (file)
@@ -23,6 +23,7 @@ enum xe_platform {
        XE_METEORLAKE,
        XE_LUNARLAKE,
        XE_BATTLEMAGE,
+       XE_PANTHERLAKE,
 };
 
 enum xe_subplatform {
index 65520a90c17ca83d54a2b38d4c5e07ffca766b87..6d8d013f74e0ab3d0d0638ac89431d109992ee34 100644 (file)
        MACRO__(0xE20D, ## __VA_ARGS__), \
        MACRO__(0xE212, ## __VA_ARGS__)
 
+#define XE_PTL_IDS(MACRO__, ...) \
+       MACRO__(0xB080, ## __VA_ARGS__), \
+       MACRO__(0xB081, ## __VA_ARGS__), \
+       MACRO__(0xB082, ## __VA_ARGS__), \
+       MACRO__(0xB090, ## __VA_ARGS__), \
+       MACRO__(0xB091, ## __VA_ARGS__), \
+       MACRO__(0xB092, ## __VA_ARGS__), \
+       MACRO__(0xB0A0, ## __VA_ARGS__), \
+       MACRO__(0xB0A1, ## __VA_ARGS__), \
+       MACRO__(0xB0A2, ## __VA_ARGS__)
+
 #endif