Commit 12d8a961 authored by Borislav Petkov's avatar Borislav Petkov Committed by H. Peter Anvin

x86, AMD: Extend support to future families

Extend support to future families, and in particular:

* extend direct mapping split of Tseg SMM area.
* extend K8 flavored alternatives (NOPS).
* rep movs* prefix is fast in ucode.
Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <20100602182921.GA21557@aftab>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 8cc1176e
...@@ -466,7 +466,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) ...@@ -466,7 +466,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
} }
} }
if (c->x86 == 0x10 || c->x86 == 0x11) if (c->x86 >= 0x10)
set_cpu_cap(c, X86_FEATURE_REP_GOOD); set_cpu_cap(c, X86_FEATURE_REP_GOOD);
/* get apicid instead of initial apic id from cpuid */ /* get apicid instead of initial apic id from cpuid */
...@@ -529,7 +529,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) ...@@ -529,7 +529,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
num_cache_leaves = 3; num_cache_leaves = 3;
} }
if (c->x86 >= 0xf && c->x86 <= 0x11) if (c->x86 >= 0xf)
set_cpu_cap(c, X86_FEATURE_K8); set_cpu_cap(c, X86_FEATURE_K8);
if (cpu_has_xmm2) { if (cpu_has_xmm2) {
...@@ -546,7 +546,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) ...@@ -546,7 +546,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
fam10h_check_enable_mmcfg(); fam10h_check_enable_mmcfg();
} }
if (c == &boot_cpu_data && c->x86 >= 0xf && c->x86 <= 0x11) { if (c == &boot_cpu_data && c->x86 >= 0xf) {
unsigned long long tseg; unsigned long long tseg;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment