[PATCH] Enable PAT for more AMD CPUs

From: Andi Kleen
Date: Thu Jan 17 2008 - 07:36:26 EST



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@xxxxxxx>

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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/