Skip to contentSkip to conversation

Enable PAT for more AMD CPUs

PATCH Applied Andi Kleen 2 participants 2 messages Jan 17, 2008

Subsystems (2)
lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Enable PAT for more AMD CPUs

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.

arch/x86/mm/pat.c +1 -1
Index: 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;
Applied
#1 lore raw
Quoted 4 lines · Andi Kleen

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