Skip to contentSkip to conversation

x86_64: k8topology add family 10h and 11h PCI IDs

PATCH In review Yinghai Lu 1 participant 1 message Jul 23, 2007

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 10/10 x86_64: k8topology add family 10h and 11h PCI IDs

this one is dropped by Andi wrongly.

From: "Joachim Deguara" <[email protected]>
This just adds the PCI IDs of AMD's family 10h and 11h CPU's northbridges to k8topology discovery.

 arch/x86_64/mm/k8topology.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
arch/x86_64/mm/k8topology.c +6 -2
@@ -28,11 +28,15 @@
 		u32 header;
 		
 		header = read_pci_config(0, num, 0, 0x00);  
-		if (header != (PCI_VENDOR_ID_AMD | (0x1100<<16)))
+		if ((header != (PCI_VENDOR_ID_AMD | (0x1100<<16))) &&
+		    (header != (PCI_VENDOR_ID_AMD | (0x1200<<16))) &&
+		    (header != (PCI_VENDOR_ID_AMD | (0x1300<<16))))
 			continue; 	
 
 		header = read_pci_config(0, num, 1, 0x00); 
-		if (header != (PCI_VENDOR_ID_AMD | (0x1101<<16)))
+		if ((header != (PCI_VENDOR_ID_AMD | (0x1101<<16))) &&
+		    (header != (PCI_VENDOR_ID_AMD | (0x1201<<16))) &&
+		    (header != (PCI_VENDOR_ID_AMD | (0x1301<<16))))
 			continue;	
 		return num; 
 	}