Skip to contentSkip to conversation

x86: unconditionally enable PAT for AMD CPUs

PATCH Applied Andreas Herrmann 2 participants 2 messages Jun 10, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 x86: unconditionally enable PAT for AMD CPUs

If PAT support is advertised it should just work. No errata known.

---
 arch/x86/kernel/cpu/addon_cpuid_features.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
arch/x86/kernel/cpu/addon_cpuid_features.c +1 -4
index d8b3e4a..0fbd062 100644
@@ -54,14 +54,11 @@ void __cpuinit init_scattered_cpuid_features(struct cpuinfo_x86 *c)
 void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
 {
 	switch (c->x86_vendor) {
-	case X86_VENDOR_AMD:
-		if (c->x86 >= 0xf && c->x86 <= 0x11)
-			return;
-		break;
 	case X86_VENDOR_INTEL:
 		if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))
 			return;
 		break;
+	case X86_VENDOR_AMD:
 	case X86_VENDOR_CENTAUR:
 	case X86_VENDOR_TRANSMETA:
 		return;
Signature · 1 line
1.5.5.3
#1 lore raw
Quoted 1 line · Andreas Herrmann

If PAT support is advertised it should just work. No errata known.

This kills off the remainder of the whitelist (which is good), please actually this; this function doesn't do anything anymore and should be removed.

-hpa