Skip to content

x86/microcode: Merge the early loader

Borislav Petkov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/microcode: Unmodularize driverarch/x86/Kconfig arch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/amd.c +3 more+16 -380 replies
2/6x86/microcode: Merge early loaderarch/x86/Kconfig arch/x86/include/asm/microcode.h arch/x86/include/asm/microcode_amd.h +10 more+1399 -14774 replies
3/6x86/microcode: Remove modularization leftoversarch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/amd.c arch/x86/kernel/cpu/microcode/core.c +2 more+12 -400 replies
4/6x86/microcode/amd: Remove maintainers from commentsarch/x86/kernel/cpu/microcode/amd.c+0 -40 replies
5/6x86/microcode/intel: Move ifdef DEBUG inside the functionarch/x86/kernel/cpu/microcode/intel.c+2 -60 replies
6/6MAINTAINERS: Unify microcode driver sectionMAINTAINERS+5 -110 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/6] x86/microcode: Merge the early loader

From: Borislav Petkov <[email protected]>

Hi all,

so this basically codifies what we're already doing in practice anyway:
the early loader is enabled and the microcode functionality is built-in. So we can make this official and remove all that additional Kconfig complexity of keeping the early and the late loader separate and we can remove the module code glue because it is almost never used as a module.

We still have the unfortunately-named "dis_ucode_ldr" chicken bit to disable it all, if needed.

More details in the individual commit messages.

Borislav Petkov (6):
x86/microcode: Unmodularize driver x86/microcode: Merge early loader
x86/microcode: Remove modularization leftovers x86/microcode/amd: Remove maintainers from comments x86/microcode/intel: Move ifdef DEBUG inside the function
MAINTAINERS: Unify microcode driver section

 MAINTAINERS                                 |  16 +-
 arch/x86/Kconfig                            |  22 +-
 arch/x86/include/asm/microcode.h            |  26 +-
 arch/x86/include/asm/microcode_amd.h        |   2 +-
 arch/x86/include/asm/microcode_intel.h      |  10 +-
 arch/x86/kernel/cpu/microcode/Makefile      |   3 -
 arch/x86/kernel/cpu/microcode/amd.c         | 457 +++++++++++++++-
 arch/x86/kernel/cpu/microcode/amd_early.c   | 444 ---------------
 arch/x86/kernel/cpu/microcode/core.c        | 232 +++++---
 arch/x86/kernel/cpu/microcode/core_early.c  | 170 ------
 arch/x86/kernel/cpu/microcode/intel.c       | 791 ++++++++++++++++++++++++++-
 arch/x86/kernel/cpu/microcode/intel_early.c | 808 ----------------------------
 arch/x86/kernel/cpu/microcode/intel_lib.c   |   1 -
 arch/x86/kernel/head_32.S                   |   5 +-
 arch/x86/kernel/setup.c                     |   3 +
 arch/x86/mm/init.c                          |   2 -
 16 files changed, 1425 insertions(+), 1567 deletions(-)
 delete mode 100644 arch/x86/kernel/cpu/microcode/amd_early.c
 delete mode 100644 arch/x86/kernel/cpu/microcode/core_early.c
 delete mode 100644 arch/x86/kernel/cpu/microcode/intel_early.c
Signature · 1 line
2.3.5