Skip to content

x86/microcode: Untangle loader from BLK_DEV_INITRD

Borislav Petkov kernel-janitors lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17x86/microcode: Untangle from BLK_DEV_INITRDarch/x86/Kconfig arch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/intel.c+44 -230 replies
2/17x86/microcode/intel: Make early loader look for builtin microcode tooarch/x86/kernel/cpu/microcode/intel.c+16 -80 replies
3/17x86/microcode: Remove redundant __setup() param parsingarch/x86/kernel/cpu/microcode/core.c+4 -110 replies
4/17x86/microcode: Remove an unneeded NULL checkarch/x86/kernel/cpu/microcode/core.c+1 -10 replies
5/17x86/microcode: Issue update message only oncearch/x86/kernel/cpu/microcode/amd.c arch/x86/kernel/cpu/microcode/intel.c+7 -100 replies
6/17x86/microcode/AMD: Drop redundant printk prefixarch/x86/kernel/cpu/microcode/amd.c+1 -20 replies
7/17x86/microcode/intel: Rename local variables of type struct mc_saved_dataarch/x86/kernel/cpu/microcode/intel.c+27 -310 replies
8/17x86/microcode/intel: Rename mc_saved_count to num_savedarch/x86/kernel/cpu/microcode/intel.c+31 -300 replies
9/17x86/microcode/intel: Rename mc_intel variable to mcarch/x86/kernel/cpu/microcode/intel.c+29 -290 replies
10/17x86/microcode/intel: Move the BUG_ON up and turn it into WARN_ONarch/x86/kernel/cpu/microcode/intel.c+4 -40 replies
11/17x86/microcode/intel: Cleanup apply_microcode_intel()arch/x86/kernel/cpu/microcode/intel.c+7 -50 replies
12/17x86/microcode/intel: Use *wrmsrl variantsarch/x86/kernel/cpu/microcode/intel.c+5 -90 replies
13/17x86/microcode/intel: Rename mc_saved_in_initrdarch/x86/kernel/cpu/microcode/intel.c+28 -240 replies
14/17x86/microcode/intel: Remove unused arg of get_matching_model_microcode()arch/x86/kernel/cpu/microcode/intel.c+2 -20 replies
15/17x86/microcode/intel: Cleanup get_matching_model_microcode()arch/x86/kernel/cpu/microcode/intel.c+11 -140 replies
16/17x86/microcode/AMD: Issue microcode updated message laterarch/x86/kernel/cpu/microcode/amd.c+4 -40 replies
17/17x86/microcode: Document builtin microcode loading methodDocumentation/x86/early-microcode.txt+25 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/17] x86/microcode: Untangle loader from BLK_DEV_INITRD

From: Borislav Petkov <[email protected]>

Hi,

here are a bunch of patches untangling the loader dependency from BLK_DEV_INITRD and fixing the builtin microcode loading on Intel. So we're basically supporting two early-loading methods, one is the builtin microcode in the kernel (CONFIG_EXTRA_FIRMWARE) and the detached initrd. Both are described in Documentation/x86/early-microcode.txt.

First two are CC:stable <#4.4> so that the fallout from the merge of the early and late loader is addressed.

The rest is smallish fixes and more cleanup to the Intel loader, hopefully making it more readable.

Thanks.

Borislav Petkov (16):
x86/microcode: Untangle from BLK_DEV_INITRD x86/microcode/intel: Make early loader look for builtin microcode too x86/microcode: Remove redundant __setup() param parsing x86/microcode: Issue update message only once x86/microcode/AMD: Drop redundant printk prefix x86/microcode/intel: Rename local variables of type struct
mc_saved_data
x86/microcode/intel: Rename mc_saved_count to num_saved x86/microcode/intel: Rename mc_intel variable to mc x86/microcode/intel: Move the BUG_ON up and turn it into WARN_ON x86/microcode/intel: Cleanup apply_microcode_intel() x86/microcode/intel: Use *wrmsrl variants x86/microcode/intel: Rename mc_saved_in_initrd x86/microcode/intel: Remove unused arg of
get_matching_model_microcode()
x86/microcode/intel: Cleanup get_matching_model_microcode() x86/microcode/AMD: Issue microcode updated message later x86/microcode: Document builtin microcode loading method

Dan Carpenter (1):
x86/microcode: Remove an unneeded NULL check

 Documentation/x86/early-microcode.txt |  25 +++
 arch/x86/Kconfig                      |  27 ++--
 arch/x86/include/asm/microcode.h      |  26 ++++
 arch/x86/kernel/cpu/microcode/amd.c   |  11 +-
 arch/x86/kernel/cpu/microcode/core.c  |  17 +-
 arch/x86/kernel/cpu/microcode/intel.c | 281 +++++++++++++++++-----------------
 6 files changed, 213 insertions(+), 174 deletions(-)
Signature · 1 line
2.3.5