Skip to content

Commit bb4a1d6

Browse files
Joachim DeguaraIngo Molnar
authored andcommitted
x86: add PCI IDs to k8topology_64.c
This just adds the PCI IDs of AMD's family 10h and 11h CPU's northbridges to k8topology discovery. Signed-off-by: Joachim Deguara <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Acked-by: Yinghai Lu <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent f6df72e commit bb4a1d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

arch/x86/mm/k8topology_64.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@ static __init int find_northbridge(void)
2828
u32 header;
2929

3030
header = read_pci_config(0, num, 0, 0x00);
31-
if (header != (PCI_VENDOR_ID_AMD | (0x1100<<16)))
31+
if (header != (PCI_VENDOR_ID_AMD | (0x1100<<16)) &&
32+
header != (PCI_VENDOR_ID_AMD | (0x1200<<16)) &&
33+
header != (PCI_VENDOR_ID_AMD | (0x1300<<16)))
3234
continue;
3335

3436
header = read_pci_config(0, num, 1, 0x00);
35-
if (header != (PCI_VENDOR_ID_AMD | (0x1101<<16)))
37+
if (header != (PCI_VENDOR_ID_AMD | (0x1101<<16)) &&
38+
header != (PCI_VENDOR_ID_AMD | (0x1201<<16)) &&
39+
header != (PCI_VENDOR_ID_AMD | (0x1301<<16)))
3640
continue;
3741
return num;
3842
}

0 commit comments

Comments
 (0)