]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
x86/AMD: Do not enable ARAT feature on AMD processors below family 0x12
authorBoris Ostrovsky <boris.ostrovsky@amd.com>
Thu, 27 Oct 2011 15:22:53 +0000 (16:22 +0100)
committerBoris Ostrovsky <boris.ostrovsky@amd.com>
Thu, 27 Oct 2011 15:22:53 +0000 (16:22 +0100)
Determining whether an AMD processor is affected by erratum 400 may
have some corner cases and handling these cases is somewhat
complicated.
In the interest of simplicity we won't claim ARAT support on processor
families below 0x12.

Mirrors Linux commit e9cdd343a5e42c43bcda01e609fa23089e026470

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen-unstable changeset:   23925:08d6ba4e447d
xen-unstable date:        Fri Oct 07 10:32:15 2011 +0200

xen/arch/x86/cpu/amd.c

index 368a1edad886446be10583a48999964d3191385e..726b5ccf430e33318004a8078caad0a6964630bb 100644 (file)
@@ -608,8 +608,11 @@ static void __devinit init_amd(struct cpuinfo_x86 *c)
        }
 #endif
 
-       /* As a rule processors have APIC timer running in deep C states */
-       if (c->x86 > 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400))
+       /*
+        * Family 0x12 and above processors have APIC timer
+        * running in deep C states.
+        */
+       if (c->x86 > 0x11)
                set_bit(X86_FEATURE_ARAT, c->x86_capability);
 
        /* Prevent TSC drift in non single-processor, single-core platforms. */