Skip to content

Commit 2477570

Browse files
Muralidhara M KIngo Molnar
authored andcommitted
x86/amd_nb: Add AMD Family MI300 PCI IDs
Add new Root, Device 18h Function 3, and Function 4 PCI IDS for AMD F19h Model 90h-9fh (MI300A). Signed-off-by: Muralidhara M K <[email protected]> Signed-off-by: Suma Hegde <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d9a0195 commit 2477570

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

arch/x86/kernel/amd_nb.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#define PCI_DEVICE_ID_AMD_1AH_M00H_ROOT 0x153a
2828
#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
2929
#define PCI_DEVICE_ID_AMD_MI200_ROOT 0x14bb
30+
#define PCI_DEVICE_ID_AMD_MI300_ROOT 0x14f8
3031

3132
#define PCI_DEVICE_ID_AMD_17H_DF_F4 0x1464
3233
#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F4 0x15ec
@@ -43,6 +44,7 @@
4344
#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F4 0x12fc
4445
#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F4 0x12c4
4546
#define PCI_DEVICE_ID_AMD_MI200_DF_F4 0x14d4
47+
#define PCI_DEVICE_ID_AMD_MI300_DF_F4 0x152c
4648

4749
/* Protect the PCI config register pairs used for SMN. */
4850
static DEFINE_MUTEX(smn_mutex);
@@ -62,6 +64,7 @@ static const struct pci_device_id amd_root_ids[] = {
6264
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M00H_ROOT) },
6365
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_ROOT) },
6466
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI200_ROOT) },
67+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI300_ROOT) },
6568
{}
6669
};
6770

@@ -93,6 +96,7 @@ static const struct pci_device_id amd_nb_misc_ids[] = {
9396
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3) },
9497
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3) },
9598
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI200_DF_F3) },
99+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI300_DF_F3) },
96100
{}
97101
};
98102

@@ -115,6 +119,7 @@ static const struct pci_device_id amd_nb_link_ids[] = {
115119
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CNB17H_F4) },
116120
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M00H_DF_F4) },
117121
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI200_DF_F4) },
122+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI300_DF_F4) },
118123
{}
119124
};
120125

include/linux/pci_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@
579579
#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3 0x12c3
580580
#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
581581
#define PCI_DEVICE_ID_AMD_MI200_DF_F3 0x14d3
582+
#define PCI_DEVICE_ID_AMD_MI300_DF_F3 0x152b
582583
#define PCI_DEVICE_ID_AMD_CNB17H_F3 0x1703
583584
#define PCI_DEVICE_ID_AMD_LANCE 0x2000
584585
#define PCI_DEVICE_ID_AMD_LANCE_HOME 0x2001

0 commit comments

Comments
 (0)