lkml.org 
[lkml]   [2008]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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.

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;

\
 
 \ /
  Last update: 2008-01-17 13:39    [W:0.026 / U:1.988 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site