]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86, AMD: Extend support to future families
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 2 Jun 2010 18:29:21 +0000 (20:29 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 9 Jun 2010 22:57:47 +0000 (15:57 -0700)
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: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <20100602182921.GA21557@aftab>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/amd.c

index e485825130d2c8ee9b5d278717deca21ae2116f4..12b9cff047c1c0085f0ac622dd3df5419ace2b36 100644 (file)
@@ -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);
 
        /* get apicid instead of initial apic id from cpuid */
@@ -529,7 +529,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
                        num_cache_leaves = 3;
        }
 
-       if (c->x86 >= 0xf && c->x86 <= 0x11)
+       if (c->x86 >= 0xf)
                set_cpu_cap(c, X86_FEATURE_K8);
 
        if (cpu_has_xmm2) {
@@ -546,7 +546,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
                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;
 
                /*