lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 20 Dec 2010 08:54:54 +0100 From: Borislav Petkov <borislav.petkov@....com> To: Benjamin <masterme120@...il.com> CC: <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] x86: add optimisation option for k10 processors On Sun, Dec 19, 2010 at 04:45:32PM -0500, Benjamin wrote: > From: Benjamin Fair <masterme120@...il.com> > > This adds a config option to optimise for AMD family-k10 processors. They're called AMD F10h processors, no more K*. > Signed-off-by: Benjamin Fair <masterme120@...il.com> > > diff -uNr linux-2.6.37-rc6.vanilla/arch/x86/Kconfig.cpu > linux-2.6.37-rc6/arch/x86/Kconfig.cpu > --- linux-2.6.37-rc6.vanilla/arch/x86/Kconfig.cpu 2010-12-15 > 20:24:48.000000000 -0500 > +++ linux-2.6.37-rc6/arch/x86/Kconfig.cpu 2010-12-19 14:31:59.034429012 > -0500 > @@ -171,6 +171,13 @@ > Enables use of some extended instructions, and passes appropriate > optimization flags to GCC. > > +config MK10 config MF10H > + bool "Phenom/Phenom-II/Athlon-II/K10/10h" bool "Phenom/Phenom-II/Athlon-II, i.e. all F10h CPUs" > + ---help--- > + Select this for an AMD K10-family processor. Also known as Family > + 10h. Enables use of some extended instructions, and passes > + appropriate optimization flags to GCC. > + ditto, no more K's. [.. ] > diff -uNr linux-2.6.37-rc6.vanilla/arch/x86/Makefile > linux-2.6.37-rc6/arch/x86/Makefile > --- linux-2.6.37-rc6.vanilla/arch/x86/Makefile 2010-12-15 > 20:24:48.000000000 -0500 > +++ linux-2.6.37-rc6/arch/x86/Makefile 2010-12-19 15:42:01.041429011 > -0500 > @@ -51,6 +51,7 @@ > > # FIXME - should be integrated in Makefile.cpu > (Makefile_32.cpu) > cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) > + cflags-$(CONFIG_MK10) += $(call cc-option,-march=amdfam10) But before we do that, let me talk to the compiler guys first. Thanks. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists