Skip to content

Commit cca820d

Browse files
pssatapathy-oracleSaeed Mirzamohammadi
authored andcommitted
Add the new PCI Device IDs to support new generation of AMD 19h processors.
Orabug: 35773822 Signed-off-by: Yazen Ghannam <[email protected]> Signed-off-by: Babu Moger <[email protected]> Acked-by: Krzysztof Wilczyński <[email protected]> Acked-by: Borislav Petkov <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> # pci_ids.h Link: https://lore.kernel.org/r/163640828133.955062.18349019796157170473.stgit@bmoger-ubuntu Signed-off-by: Guenter Roeck <[email protected]> (cherry picked from commit 4fb0abf) Signed-off-by: Partha Sarathi Satapathy <[email protected]> Reviewed-by: Harshit Mogalapalli <[email protected]> Conflicts: arch/x86/kernel/amd_nb.c include/linux/pci_ids.h Direct patch is deleting some pci devices Manually patched to avoid that. Signed-off-by: Saeed Mirzamohammadi <[email protected]>
1 parent 1354cd5 commit cca820d

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
@@ -20,7 +20,9 @@
2020
#define PCI_DEVICE_ID_AMD_17H_DF_F4 0x1464
2121
#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F4 0x15ec
2222
#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F4 0x1494
23+
#define PCI_DEVICE_ID_AMD_19H_M10H_ROOT 0x14a4
2324
#define PCI_DEVICE_ID_AMD_19H_DF_F4 0x1654
25+
#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F4 0x14b1
2426

2527
/* Protect the PCI config register pairs used for SMN and DF indirect access. */
2628
static DEFINE_MUTEX(smn_mutex);
@@ -31,6 +33,7 @@ static const struct pci_device_id amd_root_ids[] = {
3133
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_17H_ROOT) },
3234
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_17H_M10H_ROOT) },
3335
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_17H_M30H_ROOT) },
36+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M10H_ROOT) },
3437
{}
3538
};
3639

@@ -51,6 +54,7 @@ const struct pci_device_id amd_nb_misc_ids[] = {
5154
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_17H_M30H_DF_F3) },
5255
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CNB17H_F3) },
5356
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_DF_F3) },
57+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M10H_DF_F3) },
5458
{}
5559
};
5660
EXPORT_SYMBOL_GPL(amd_nb_misc_ids);
@@ -65,6 +69,7 @@ static const struct pci_device_id amd_nb_link_ids[] = {
6569
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_17H_M10H_DF_F4) },
6670
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_17H_M30H_DF_F4) },
6771
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_DF_F4) },
72+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M10H_DF_F4) },
6873
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CNB17H_F4) },
6974
{}
7075
};

include/linux/pci_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@
545545
#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3 0x15eb
546546
#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3 0x1493
547547
#define PCI_DEVICE_ID_AMD_19H_DF_F3 0x1653
548+
#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F3 0x14b0
548549
#define PCI_DEVICE_ID_AMD_CNB17H_F3 0x1703
549550
#define PCI_DEVICE_ID_AMD_LANCE 0x2000
550551
#define PCI_DEVICE_ID_AMD_LANCE_HOME 0x2001

0 commit comments

Comments
 (0)