public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: add PCI IDs to k8topology_64.c
@ 2008-01-28 20:11 Joachim Deguara
  2008-01-28 20:54 ` Ingo Molnar
  2008-01-29  3:48 ` Andi Kleen
  0 siblings, 2 replies; 12+ messages in thread
From: Joachim Deguara @ 2008-01-28 20:11 UTC (permalink / raw)
  To: tglx, mingo, hpa; +Cc: linux-kernel, Andi Kleen, yinghai.lu, Dean Roe

Quick history, this is a harmless patch that got dropped by Andi as a mixup to 
dropping another patch of mine that was made obsolete by Yinghai.
http://thread.gmane.org/gmane.linux.kernel/559581

-Joachim

--

    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 <joachim.deguara@amd.com>
    Signed-off-by: Andi Kleen <ak@suse.de>
    Acked-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/arch/x86/mm/k8topology_64.c b/arch/x86/mm/k8topology_64.c
index a96006f..b123ea3 100644
--- a/arch/x86/mm/k8topology_64.c
+++ b/arch/x86/mm/k8topology_64.c
@@ -28,11 +28,15 @@ static __init int find_northbridge(void)
 		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; 
 	} 



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-02-01 15:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 20:11 [PATCH] x86: add PCI IDs to k8topology_64.c Joachim Deguara
2008-01-28 20:54 ` Ingo Molnar
2008-01-28 21:49   ` Yinghai Lu
2008-01-29  3:48 ` Andi Kleen
2008-01-29  4:12   ` Yinghai Lu
2008-01-29  4:56     ` Andi Kleen
2008-01-29  6:03       ` H. Peter Anvin
2008-01-29  8:09       ` [PATCH] x86: add PCI IDs to k8topology_64.c II Andi Kleen
2008-01-29  7:39         ` Yinghai Lu
2008-01-29  8:31           ` Andi Kleen
2008-01-29  8:20             ` Yinghai Lu
2008-02-01 15:58         ` dean gaudet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox