Module Name: src Committed By: cegger Date: Fri Oct 16 12:05:19 UTC 2009
Modified Files: src/sys/arch/x86/pci: amdtemp.c Log Message: Family 10h Errata #319: Attach on Family10h cpu series which have it fixed. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/x86/pci/amdtemp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/pci/amdtemp.c diff -u src/sys/arch/x86/pci/amdtemp.c:1.8 src/sys/arch/x86/pci/amdtemp.c:1.9 --- src/sys/arch/x86/pci/amdtemp.c:1.8 Tue Jun 16 07:34:40 2009 +++ src/sys/arch/x86/pci/amdtemp.c Fri Oct 16 12:05:19 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: amdtemp.c,v 1.8 2009/06/16 07:34:40 cegger Exp $ */ +/* $NetBSD: amdtemp.c,v 1.9 2009/10/16 12:05:19 cegger Exp $ */ /* $OpenBSD: kate.c,v 1.2 2008/03/27 04:52:03 cnst Exp $ */ /* @@ -48,7 +48,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: amdtemp.c,v 1.8 2009/06/16 07:34:40 cegger Exp $ "); +__KERNEL_RCSID(0, "$NetBSD: amdtemp.c,v 1.9 2009/10/16 12:05:19 cegger Exp $ "); #include <sys/param.h> #include <sys/systm.h> @@ -72,6 +72,8 @@ * * Family10h: * http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/31116.PDF + * Family10h Errata: #319 + * http://support.amd.com/de/Processor_TechDocs/41322.pdf * * Family11h: * http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/41256.pdf @@ -207,6 +209,16 @@ if (family == 0xf) family += CPUID2EXTFAMILY(cpu_signature); + /* Errata #319: This has been fixed in Revision C2. */ + if (family == 0x10) { + if (CPUID2MODEL(cpu_signature) < 4) + return 0; + if (CPUID2MODEL(cpu_signature) == 4 + && CPUID2STEPPING(cpu_signature) < 2) + return 0; + } + + /* Not yet supported CPUs */ if (family >= 0x12) return 0;