Skip to content

x86/microcode: Fixes for builtin vs initrd loading; cleanups

Borislav Petkov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86/microcode: Fix loading precedencearch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/amd.c arch/x86/kernel/cpu/microcode/intel.c+133 -1020 replies
2/9x86/microcode: Fix suspend to RAM with builtin microcodearch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/core.c arch/x86/mm/init.c+2 -100 replies
3/9lib/cpio: Make find_cpio_data()'s offset arg optionallib/earlycpio.c+4 -10 replies
4/9x86/microcode: Get rid of find_cpio_data()'s dummy offset argarch/x86/kernel/cpu/microcode/amd.c arch/x86/kernel/cpu/microcode/intel.c+2 -40 replies
5/9x86/microcode: Propagate save_microcode_in_initrd() retvalarch/x86/kernel/cpu/microcode/core.c arch/x86/kernel/cpu/microcode/intel.c+5 -50 replies
6/9x86/microcode/intel: Rename load_microcode_early() to find_microcode_patch()arch/x86/kernel/cpu/microcode/intel.c+5 -50 replies
7/9x86/microcode/intel: Unexport save_mc_for_early()arch/x86/include/asm/microcode_intel.h arch/x86/kernel/cpu/microcode/intel.c+6 -140 replies
8/9x86/microcode/AMD: Make amd_ucode_patch staticarch/x86/include/asm/microcode_amd.h arch/x86/kernel/cpu/microcode/amd.c+1 -20 replies
9/9Documentation/microcode: Document some aspects for more clarityDocumentation/x86/early-microcode.txt arch/x86/kernel/cpu/microcode/intel.c+13 -80 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchJim BosGabriel Craciunescu
1/9Reported-and-tested-by
2/9Reported-and-tested-by
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] x86/microcode: Fixes for builtin vs initrd loading; cleanups

From: Borislav Petkov <[email protected]>

Hi,

the first two are fixes resulting from people enabling builtin microcode and reporting issues. The result is a much more robust loading of early microcode by checking for builtin microcode first and then the one supplied by the initrd.

The rest are cleanups.

Pile has been tested on everything here and by the bug reporters.

@tip guys: 2/9 is CC:stable. Please route accordingly.

Please apply,
thanks.

Borislav Petkov (9):
x86/microcode: Fix loading precedence
x86/microcode: Fix suspend to RAM with builtin microcode lib/cpio: Make find_cpio_data()'s offset arg optional x86/microcode: Get rid of find_cpio_data()'s dummy offset arg x86/microcode: Propagate save_microcode_in_initrd() retval x86/microcode/intel: Rename load_microcode_early() to
find_microcode_patch()
x86/microcode/intel: Unexport save_mc_for_early() x86/microcode/AMD: Make amd_ucode_patch static Documentation/microcode: Document some aspects for more clarity

 Documentation/x86/early-microcode.txt  |   5 +-
 arch/x86/include/asm/microcode.h       |  26 ----
 arch/x86/include/asm/microcode_amd.h   |   1 -
 arch/x86/include/asm/microcode_intel.h |   5 -
 arch/x86/kernel/cpu/microcode/amd.c    |  33 ++---
 arch/x86/kernel/cpu/microcode/core.c   |   9 +-
 arch/x86/kernel/cpu/microcode/intel.c  | 227 ++++++++++++++++++++-------------
 arch/x86/mm/init.c                     |   7 -
 lib/earlycpio.c                        |   5 +-
 9 files changed, 169 insertions(+), 149 deletions(-)
Signature · 1 line
2.7.3