x86: enable pat on amd athlon mode=6

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bernd Schubert
Date: Wednesday, June 25, 2008 - 12:53 pm

Hello,

on my AthlonXP 1700 PAT works fine (I tested it several days). Please accept one of the patches below, I don't know which you refer.


Signed-off-by: Bernd Schubert <bernd-schubert@gmx.de>

Patch to enable PAT specifically on model=6

diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
index c2e1ce3..61a5aa5 100644
--- a/arch/x86/kernel/cpu/addon_cpuid_features.c
+++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
@@ -57,6 +57,8 @@ void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
 	case X86_VENDOR_AMD:
 		if (c->x86 >= 0xf && c->x86 <= 0x11)
 			return;
+		if (c->x86 == 0x6)
+			return;
 		break;
 	case X86_VENDOR_INTEL:
 		if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))


Or maybe PAT on all system >=6 is suitable?


diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
index c2e1ce3..f12c413 100644
--- a/arch/x86/kernel/cpu/addon_cpuid_features.c
+++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
@@ -55,7 +55,7 @@ void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
 {
 	switch (c->x86_vendor) {
 	case X86_VENDOR_AMD:
-		if (c->x86 >= 0xf && c->x86 <= 0x11)
+		if (c->x86 >= 0x6 && c->x86 <= 0x11)
 			return;
 		break;
 	case X86_VENDOR_INTEL:


Thanks,
Bernd
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86: enable pat on amd athlon mode=6, Bernd Schubert, (Wed Jun 25, 12:53 pm)
Re: x86: enable pat on amd athlon mode=6, Rene Herman, (Wed Jun 25, 1:15 pm)
Re: x86: enable pat on amd athlon mode=6, Rene Herman, (Wed Jun 25, 1:20 pm)
Re: x86: enable pat on amd athlon mode=6, Bernd Schubert, (Wed Jun 25, 1:44 pm)