Re: [PATCH v2] scripts/x86/intel: Add a script to update the minimum ucode revisions

From: Sohil Mehta
Date: Fri Aug 22 2025 - 17:52:48 EST


On 8/22/2025 12:27 PM, Borislav Petkov wrote:
> On Fri, Aug 22, 2025 at 12:16:59PM -0700, Dave Hansen wrote:
>> Ahh, gotcha. Should we slap something like this in the script?
>>
>> This script is intended to be run in response to releases of the
>> official Intel microcode github repository[link]. Typically,
>> someone at Intel would see a new release, run this script,
>> refresh the intel-ucode-defs.h file and send a patch upstream to
>> update the mainline and stable versions.
>
> Yap, thanks!
>

Thanks! Here is the updated help description in the script:

DESCRIPTION = f"""
For Intel CPUs, update the microcode revisions that determine
X86_BUG_OLD_MICROCODE.

This script is intended to be run in response to releases of the
official Intel microcode GitHub repository:
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git

It takes the Intel microcode files as input and uses iucode-tool to
extract the revision information. It prints the output in the format
expected by intel-ucode-defs.h.

Usage:
./{script} /path/to/microcode/files > /path/to/intel-ucode-defs.h

Typically, someone at Intel would see a new release, run this script,
refresh the intel-ucode-defs.h file, and send a patch upstream to update
the mainline and stable versions.
"""

If there are no other comments, I'll send out a revised version with an
updated commit message early next week.