Skip to content

Commit 5e0de2d

Browse files
baluvivekLucas De Marchi
authored andcommitted
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>
1 parent f558630 commit 5e0de2d

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

drivers/gpu/drm/xe/xe_pci.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,20 @@ static const struct xe_device_desc nvls_desc = {
400400
.vm_max_level = 4,
401401
};
402402

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+
403417
#undef PLATFORM
404418
__diag_pop();
405419

@@ -427,6 +441,7 @@ static const struct pci_device_id pciidlist[] = {
427441
INTEL_BMG_IDS(INTEL_VGA_DEVICE, &bmg_desc),
428442
INTEL_PTL_IDS(INTEL_VGA_DEVICE, &ptl_desc),
429443
INTEL_NVLS_IDS(INTEL_VGA_DEVICE, &nvls_desc),
444+
INTEL_CRI_IDS(INTEL_PCI_DEVICE, &cri_desc),
430445
{ }
431446
};
432447
MODULE_DEVICE_TABLE(pci, pciidlist);

drivers/gpu/drm/xe/xe_platform_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ enum xe_platform {
2525
XE_BATTLEMAGE,
2626
XE_PANTHERLAKE,
2727
XE_NOVALAKE_S,
28+
XE_CRESCENTISLAND,
2829
};
2930

3031
enum xe_subplatform {

include/drm/intel/pciids.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,4 +893,8 @@
893893
MACRO__(0xD744, ## __VA_ARGS__), \
894894
MACRO__(0xD745, ## __VA_ARGS__)
895895

896+
/* CRI */
897+
#define INTEL_CRI_IDS(MACRO__, ...) \
898+
MACRO__(0x674C, ## __VA_ARGS__)
899+
896900
#endif /* __PCIIDS_H__ */

0 commit comments

Comments
 (0)