[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080117123613.GA22563@basil.nowhere.org>
Date:	Thu, 17 Jan 2008 13:36:13 +0100
From:	Andi Kleen <andi@...stfloor.org>
To:	mingo@...e.hu, venkatesh.pallipadi@...el.com, tglx@...utronix.de,
	linux-kernel@...r.kernel.org
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@...e.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
