Messages in this thread Patch in this message |  | | | Date | Thu, 08 May 2008 04:04:05 +0200 | | From | Rene Herman <> | | Subject | [PATCH] x86: enable PAT support on AMD Duron model 7 | |
On 08-05-08 03:57, Rene Herman wrote:
> Okay, so how's this? Seem to work well for me and makes me happy. Only
> tested on UP.
With this on top, I'm ecstatic:
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
x86: enable PAT support on AMD Duron model 7
PAT support seems to work well on AMD Duron model 7. Enable it.
Signed-off-by: Rene Herman <rene.herman@gmail.com>
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 7bec5e0..39b308b 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -312,6 +312,8 @@ static void __cpuinit early_get_cap(struct cpuinfo_x86 *c)
case X86_VENDOR_AMD:
if (c->x86 >= 0xf && c->x86 <= 0x11)
set_cpu_cap(c, X86_FEATURE_PAT_GOOD);
+ if (c->x86 == 6 && c->x86_model == 7)
+ set_cpu_cap(c, X86_FEATURE_PAT_GOOD);
break;
case X86_VENDOR_INTEL:
if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))
@@ -411,6 +413,8 @@ static void __cpuinit generic_identify(struct cpuinfo_x86 *c)
case X86_VENDOR_AMD:
if (c->x86 >= 0xf && c->x86 <= 0x11)
set_cpu_cap(c, X86_FEATURE_PAT_GOOD);
+ if (c->x86 == 6 && c->x86_model == 7)
+ set_cpu_cap(c, X86_FEATURE_PAT_GOOD);
break;
case X86_VENDOR_INTEL:
if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))
|  |