[PATCH 0/8] x86, microcode, intel: fixes and enhancements

Henrique de Moraes Holschuh
2014-09-08T17:47:58Z

This patchset applies on top of:
git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git microcode

It includes a regression fix (patch 2), an architectural requirement
violation fix (patch 7), and several enhancements.

Patch 7 (x86, microcode, intel: guard against misaligned microcode data)
has to align and restore the microcode data for each core that needs an
update. The extra time to align the microcode data was not noticeable
in simple testing: it got lost in the noise of WRMSR 0x79.

FWIW, iucode-tool v1.0.3+ (https://gitorious.org/iucode-tool/pages/Home)
will pre-align the microcode in the early-initramfs, so that the kernel
won't have to do it. Patch 7 documents two hacks to pre-align the
microcode data inside the early-initramfs so that people can write their
own tools to do it, if they want to.

Henrique de Moraes Holschuh (8):
x86, microcode, intel: forbid some incorrect metadata
x86, microcode, intel: don't update each HT core twice
x86, microcode, intel: clarify log messages
x86, microcode, intel: add error logging to early update driver
x86, microcode, intel: don't check extsig entry checksum
x86, microcode, intel: use cpuid explicitly instead of sync_core
x86, microcode, intel: guard against misaligned microcode data
x86, microcode, intel: defend apply_microcode_intel with BUG_ON

Documentation/x86/early-microcode.txt | 10 ++
arch/x86/include/asm/microcode_intel.h | 12 ++
arch/x86/kernel/cpu/microcode/intel.c | 58 ++++++----
arch/x86/kernel/cpu/microcode/intel_early.c | 158 ++++++++++++++++-----------
arch/x86/kernel/cpu/microcode/intel_lib.c | 55 +++++-----
5 files changed, 186 insertions(+), 107 deletions(-)

--
1.7.10.4