public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable PAT for more AMD CPUs
@ 2008-01-17 12:36 Andi Kleen
  2008-01-17 12:43 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2008-01-17 12:36 UTC (permalink / raw)
  To: mingo, venkatesh.pallipadi, tglx, linux-kernel


I checked some K7 errata files and couldn't find anything related
to PAT.  Also for Fam10h and 11h it should be definitely enabled.

Enable PAT for all AMD CPUs >= 6, which is K7 and newer.

Signed-off-by: Andi Kleen <ak@suse.de>

Index: linux/arch/x86/mm/pat.c
===================================================================
--- linux.orig/arch/x86/mm/pat.c
+++ linux/arch/x86/mm/pat.c
@@ -49,7 +49,7 @@ static int pat_known_cpu(void)
 		return cpu_has_pat;
 
 	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD &&
-					    (boot_cpu_data.x86 == 0xF))
+					    (boot_cpu_data.x86 >= 6))
 		return cpu_has_pat;
 
 	return 0;

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

* Re: [PATCH] Enable PAT for more AMD CPUs
  2008-01-17 12:36 [PATCH] Enable PAT for more AMD CPUs Andi Kleen
@ 2008-01-17 12:43 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-01-17 12:43 UTC (permalink / raw)
  To: Andi Kleen; +Cc: venkatesh.pallipadi, tglx, linux-kernel


* Andi Kleen <andi@firstfloor.org> wrote:

> I checked some K7 errata files and couldn't find anything related to 
> PAT.  Also for Fam10h and 11h it should be definitely enabled.
> 
> Enable PAT for all AMD CPUs >= 6, which is K7 and newer.

thanks, applied.

	Ingo

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

end of thread, other threads:[~2008-01-17 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17 12:36 [PATCH] Enable PAT for more AMD CPUs Andi Kleen
2008-01-17 12:43 ` Ingo Molnar

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