HomeFreeBSD

cpuctl: run amd_ucode_wrmsr only on one CPU and report if it failed

Description

cpuctl: run amd_ucode_wrmsr only on one CPU and report if it failed

The CPUCTL_UPDATE is supposed to be applied only to the CPU the ioctl(2)
was performed on. This is true for Intel CPUs, but for AMD the SMP
rendezvouz of amd_ucode_wrmsr() effectively executed it on all CPUs.
Also, the update failure was not reported.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D52466

Details

Provenance
glebiusAuthored on Sep 18 2025, 3:10 PM
Reviewer
markj
Differential Revision
D52466: cpuctl: run amd_ucode_wrmsr only on one CPU and report if it failed
Parents
rG6b841d70960a: ufshci: revisit controller reset path and add I/O timeout handling
Branches
Unknown
Tags
Unknown