HomeFreeBSD

ucode: use wrmsr_early_safe() for early CPU microcode update

Description

ucode: use wrmsr_early_safe() for early CPU microcode update

Use the new method for wrmsr that is able to set up fault handler even at
the very early stage of kernel boot. This prevents panic with new
microcode for some new AMD EPYCs, that requires certain patchlevel of
microcode to be already present in the CPU. If BSP patching failed, we
print the message and we don't try to patch APs.

This has been tested only on AMD booted in EFI mode.

Reviewed by: stas, kib
Differential Revision: https://reviews.freebsd.org/D52643

Details

Provenance
glebiusAuthored on Sep 27 2025, 2:30 PM
Reviewer
stas
Differential Revision
D52643: ucode: use wrmsr_early_safe() for early CPU microcode update
Parents
rGceb5792d1e2e: OptionalObsoleteFiles.inc: Add more ATF libraries
Branches
Unknown
Tags
Unknown