Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/cri: Add CRI platform definition

Add platform definition and PCI IDs for Crescent Island.

Other platforms use INTEL_VGA_DEVICE since they have a
PCI_BASE_CLASS_DISPLAY class. This is not the case for CRI, so just
match on devid, which should be sufficient.

Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
Link: https://lore.kernel.org/r/20251021-cri-v1-1-bf11e61d9f49@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>

authored by

Balasubramani Vivekanandan and committed by
Lucas De Marchi
5e0de2df f558630a

+20
+15
drivers/gpu/drm/xe/xe_pci.c
··· 400 400 .vm_max_level = 4, 401 401 }; 402 402 403 + static const struct xe_device_desc cri_desc = { 404 + DGFX_FEATURES, 405 + PLATFORM(CRESCENTISLAND), 406 + .dma_mask_size = 52, 407 + .has_display = false, 408 + .has_flat_ccs = false, 409 + .has_mbx_power_limits = true, 410 + .has_sriov = true, 411 + .max_gt_per_tile = 2, 412 + .require_force_probe = true, 413 + .va_bits = 57, 414 + .vm_max_level = 4, 415 + }; 416 + 403 417 #undef PLATFORM 404 418 __diag_pop(); 405 419 ··· 441 427 INTEL_BMG_IDS(INTEL_VGA_DEVICE, &bmg_desc), 442 428 INTEL_PTL_IDS(INTEL_VGA_DEVICE, &ptl_desc), 443 429 INTEL_NVLS_IDS(INTEL_VGA_DEVICE, &nvls_desc), 430 + INTEL_CRI_IDS(INTEL_PCI_DEVICE, &cri_desc), 444 431 { } 445 432 }; 446 433 MODULE_DEVICE_TABLE(pci, pciidlist);
+1
drivers/gpu/drm/xe/xe_platform_types.h
··· 25 25 XE_BATTLEMAGE, 26 26 XE_PANTHERLAKE, 27 27 XE_NOVALAKE_S, 28 + XE_CRESCENTISLAND, 28 29 }; 29 30 30 31 enum xe_subplatform {
+4
include/drm/intel/pciids.h
··· 893 893 MACRO__(0xD744, ## __VA_ARGS__), \ 894 894 MACRO__(0xD745, ## __VA_ARGS__) 895 895 896 + /* CRI */ 897 + #define INTEL_CRI_IDS(MACRO__, ...) \ 898 + MACRO__(0x674C, ## __VA_ARGS__) 899 + 896 900 #endif /* __PCIIDS_H__ */