Re: [PATCH 1/3] x86, intel: Output microcode revision v7
From: Ingo Molnar
Date: Fri Oct 14 2011 - 03:23:33 EST
* Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> I got a request to make it easier to determine the microcode update level
> on Intel CPUs. This patch adds a new "microcode" field to /proc/cpuinfo.
>
> The microcode level is also outputed on fatal machine checks together
> with the other CPUID model information.
>
> I removed the respective code from the microcode update driver, it
> just reads the field from cpu_data. Also when the microcode is updated
> it fills in the new values too.
>
> I had to add a memory barrier to native_cpuid to prevent it being
> optimized away when the result is not used.
>
> This turns out to clean up further code which already got this
> information manually. This is done in followon patches.
>
> v2: Lots of updates based on feedback.
> v3: Rename cpu_update to microcode. Misc changes from feedback.
> v4: minor updates. rebased.
> v5: move MSR read to early_intel_init()
> v6: Use sync_core() instead of CPUID 1. Drop a white space change.
> v7: Add Acked-bys.
> Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> Acked-by: H. Peter Anvin <hpa@xxxxxxxxx>
> ---
> arch/x86/include/asm/processor.h | 4 +++-
> arch/x86/kernel/cpu/intel.c | 9 +++++++++
> arch/x86/kernel/cpu/mcheck/mce.c | 9 +++++++--
> arch/x86/kernel/cpu/proc.c | 2 ++
> arch/x86/kernel/microcode_intel.c | 14 +++++---------
> 5 files changed, 26 insertions(+), 12 deletions(-)
Applied to tip:x86/microcode,
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/