mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Borislav Petkov <borislav.petkov@amd.com>
To: Benjamin <masterme120@gmail.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: add optimisation option for k10 processors
Date: Mon, 20 Dec 2010 08:54:54 +0100	[thread overview]
Message-ID: <20101220075454.GB25977@aftab> (raw)
In-Reply-To: <1292795132.14811.10.camel@benjamin-desktop>

On Sun, Dec 19, 2010 at 04:45:32PM -0500, Benjamin wrote:
> From: Benjamin Fair <masterme120@gmail.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@gmail.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


      parent reply	other threads:[~2010-12-20  7:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-19 21:45 Benjamin
2010-12-19 22:16 ` Jesper Juhl
2010-12-20  7:54 ` Borislav Petkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101220075454.GB25977@aftab \
    --to=borislav.petkov@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masterme120@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®