Skip to content

x86, microcode, intel: fixes and enhancements

Henrique de Moraes Holschuh lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 46 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86, microcode, intel: forbid some incorrect metadataarch/x86/kernel/cpu/microcode/intel_lib.c+23 -25 replies
2/8x86, microcode, intel: don't update each HT core twicearch/x86/kernel/cpu/microcode/intel.c+26 -137 replies
3/8x86, microcode, intel: clarify log messagesarch/x86/kernel/cpu/microcode/intel.c arch/x86/kernel/cpu/microcode/intel_early.c arch/x86/kernel/cpu/microcode/intel_lib.c+18 -155 replies
4/8x86, microcode, intel: add error logging to early update driverarch/x86/kernel/cpu/microcode/intel_early.c+54 -405 replies
5/8x86, microcode, intel: don't check extsig entry checksumarch/x86/kernel/cpu/microcode/intel_lib.c+2 -183 replies
6/8x86, microcode, intel: use cpuid explicitly instead of sync_corearch/x86/include/asm/microcode_intel.h arch/x86/kernel/cpu/microcode/intel.c arch/x86/kernel/cpu/microcode/intel_early.c+21 -223 replies
7/8x86, microcode, intel: guard against misaligned microcode dataDocumentation/x86/early-microcode.txt arch/x86/kernel/cpu/microcode/intel.c arch/x86/kernel/cpu/microcode/intel_early.c+43 -215 replies
8/8x86, microcode, intel: defend apply_microcode_intel with BUG_ONarch/x86/kernel/cpu/microcode/intel.c arch/x86/kernel/cpu/microcode/intel_early.c+4 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
1.7.10.4