scripts/x86/intel: Add a script to update the minimum ucode revisions
PATCH v3 1/1 scripts/x86/intel: Add a script to update the minimum ucode revisions
The kernel maintains a table of minimum expected microcode revisions for Intel CPUs in intel-ucode-defs.h. Systems with microcode older than these revisions are flagged with X86_BUG_OLD_MICROCODE.
The static list of microcode revisions needs to be updated periodically in response to releases of the official microcode at:
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git.
Introduce a simple script to extract the revision information from the microcode files and print it in the precise format expected by the microcode header. Having the script in the kernel mainly makes it easier to update the header whenever needed.
Typically, someone at Intel would see a new public release, run this script, refresh the intel-ucode-defs.h file and send a patch upstream to update the mainline and stable versions.
---
v3:
- Include motivation for having the script in the kernel. (Boris)
- Update instructions to clarify typical usage. (Boris)
v2: https://lore.kernel.org/lkml/[email protected]/
- Remove the extra command line arguments. (DaveH)
- Print to stdout instead of directly updating the header file. (DaveH)
- Take multiple directories as input. (DaveH)
--- MAINTAINERS | 1 + scripts/update-intel-ucode-defs.py | 118 +++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100755 scripts/update-intel-ucode-defs.py
MAINTAINERS +1 -0
@@ -27260,6 +27260,7 @@ S: Maintained F: Documentation/admin-guide/hw-vuln/ F: arch/x86/include/asm/nospec-branch.h F: arch/x86/kernel/cpu/bugs.c +F: scripts/update-intel-ucode-defs.py X86 MCE INFRASTRUCTURE M: Tony Luck <[email protected]>
scripts/update-intel-ucode-defs.py new file +118 -0
118 lines not on this page · raw message
Signature · 1 line
2.43.0