lkml.org 
[lkml]   [2011]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] x86, intel: Use cpu_update for Atom errata check
On Wed,  6 Jul 2011 16:57:02 -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> Now that the cpu update level is available the Atom PSE errata
> check can use it directly without reading the MSR again.
>
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
> arch/x86/kernel/cpu/intel.c | 15 ++++-----------
> 1 files changed, 4 insertions(+), 11 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
> index ebedd27..6f75c45 100644
> --- a/arch/x86/kernel/cpu/intel.c
> +++ b/arch/x86/kernel/cpu/intel.c
> @@ -55,17 +55,10 @@ static void __cpuinit early_init_intel(struct cpuinfo_x86 *c)
> * need the microcode to have already been loaded... so if it is
> * not, recommend a BIOS update and disable large pages.
> */
> - if (c->x86 == 6 && c->x86_model == 0x1c && c->x86_mask <= 2) {
> - u32 ucode, junk;
> -
> - wrmsr(MSR_IA32_UCODE_REV, 0, 0);
> - sync_core();
> - rdmsr(MSR_IA32_UCODE_REV, junk, ucode);
> -
> - if (ucode < 0x20e) {
> - printk(KERN_WARNING "Atom PSE erratum detected, BIOS microcode update recommended\n");
> - clear_cpu_cap(c, X86_FEATURE_PSE);
> - }
> + if (c->x86 == 6 && c->x86_model == 0x1c && c->x86_mask <= 2 &&
> + c->microcode < 0x20e) {
> + printk(KERN_WARNING "Atom PSE erratum detected, BIOS microcode update recommended\n");
> + clear_cpu_cap(c, X86_FEATURE_PSE);
> }
>
> #ifdef CONFIG_X86_64

Looks good.

Acked-by: Jean Delvare <khali@linux-fr.org>

--
Jean Delvare


\
 
 \ /
  Last update: 2011-07-11 10:23    [W:0.156 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site