Skip to content

Make microcode late loading more robust

Ashok Raj lkml 2 versions – Applied

Status from this message: The following commit has been merged into the x86/microcode branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 15 repliesApplied
  2. v113 patches 7 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/13x86/microcode/intel: Prevent printing updated microcode rev multiple timesarch/x86/kernel/cpu/microcode/intel.c+2 -212 replies
2/13x86/microcode/intel: Print old and new rev after early microcode updatearch/x86/kernel/cpu/microcode/intel.c+20 -120 replies
3/13x86/microcode/intel: Fix a hang if early loading microcode failsarch/x86/kernel/cpu/microcode/intel.c+11 -13 replies
4/13x86/microcode: Fix microcode_check() compare after a new uCode updatearch/x86/include/asm/processor.h arch/x86/kernel/cpu/common.c arch/x86/kernel/cpu/microcode/core.c+50 -340 replies
5/13x86/microcode: Move late-load warning to earlier where kernel taint happensarch/x86/kernel/cpu/microcode/core.c+3 -30 replies
6/13x86/ipi: Support sending NMI_VECTOR as self ipiarch/x86/kernel/apic/ipi.c arch/x86/kernel/apic/x2apic_phys.c arch/x86/kernel/nmi_selftest.c+42 -20 replies
7/13x86/microcode: Place siblings in NMI loop while update in progressarch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/Makefile arch/x86/kernel/cpu/microcode/core.c +2 more+210 -40 replies
8/13x86/mce: Warn of a microcode update is in progress when MCE arrivesarch/x86/include/asm/microcode.h arch/x86/kernel/cpu/mce/core.c arch/x86/kernel/cpu/microcode/core.c+16 -00 replies
9/13x86/microcode/intel: Add minimum required revision to microcode headerarch/x86/include/asm/microcode_intel.h arch/x86/kernel/cpu/microcode/intel.c+29 -40 replies
10/13x86/microcode: Add a generic mechanism to declare support for minrevarch/x86/Kconfig arch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/core.c +1 more+23 -70 replies
11/13x86/microcode/intel: Drop wbinvd() from microcode loadingarch/x86/kernel/cpu/microcode/intel.c+0 -110 replies
12/13x86/microcode: Display revisions only when update is successfularch/x86/kernel/cpu/microcode/core.c+3 -30 replies
13/13x86/microcode/intel: Add ability to update microcode even if rev is unchangedarch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/amd.c arch/x86/kernel/cpu/microcode/core.c +1 more+23 -80 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchTony LuckWilliam Xie
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13R-b
7/13R-b
8/13R-b
9/13R-b T-b
10/13R-b
11/13R-b
12/13R-b
13/13R-b

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

Read the v2 thread

Cover letter [v2 00/13] Make microcode late loading more robust

Hi Thomas & Boris

This series is based on the recent cleanup series from Boris, here below:

https://lore.kernel.org/lkml/[email protected]/

Previous post here:

https://lore.kernel.org/lkml/[email protected]/

Ashok Raj (12):
x86/microcode/intel: Prevent printing updated microcode rev multiple
times
x86/microcode/intel: Print old and new rev after early microcode
update
x86/microcode/intel: Fix a hang if early loading microcode fails x86/microcode: Fix microcode_check() compare after a new uCode update x86/microcode: Move late-load warning to earlier where kernel taint
happens
x86/microcode: Place siblings in NMI loop while update in progress x86/mce: Warn of a microcode update is in progress when MCE arrives x86/microcode/intel: Add minimum required revision to microcode header x86/microcode: Add a generic mechanism to declare support for minrev x86/microcode/intel: Drop wbinvd() from microcode loading x86/microcode: Display revisions only when update is successful x86/microcode/intel: Add ability to update microcode even if rev is
unchanged

Jacob Pan (1):
x86/ipi: Support sending NMI_VECTOR as self ipi

 arch/x86/include/asm/microcode.h       |  43 ++++++
 arch/x86/include/asm/microcode_intel.h |   4 +-
 arch/x86/include/asm/processor.h       |   1 -
 arch/x86/kernel/apic/ipi.c             |   6 +-
 arch/x86/kernel/apic/x2apic_phys.c     |   6 +-
 arch/x86/kernel/cpu/common.c           |  32 ----
 arch/x86/kernel/cpu/mce/core.c         |   5 +
 arch/x86/kernel/cpu/microcode/amd.c    |   2 +-
 arch/x86/kernel/cpu/microcode/core.c   | 200 +++++++++++++++++++++++--
 arch/x86/kernel/cpu/microcode/intel.c  |  96 ++++++++----
 arch/x86/kernel/cpu/microcode/nmi.c    |  71 +++++++++
 arch/x86/kernel/nmi.c                  |   7 +
 arch/x86/kernel/nmi_selftest.c         |  32 ++++
 arch/x86/Kconfig                       |   7 +-
 arch/x86/kernel/cpu/microcode/Makefile |   1 +
 15 files changed, 427 insertions(+), 86 deletions(-)
 create mode 100644 arch/x86/kernel/cpu/microcode/nmi.c
Signature · 1 line
2.34.1