HomeFreeBSD

cpucontrol: return selected revision from ucode_amd_find()

Description

cpucontrol: return selected revision from ucode_amd_find()

This fixes two printing bugs in cpucontrol(1). First, the utility will
now print "updating from rev X to rev Y", instead of incorrect "updating
to revision X", where X is actually the old revision. This also matches
what Intel updater prints. Second, the utility won't incorrectly warn
that the update failed after reading the new revision post update.

Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D52506

(cherry picked from commit 83804499b72405475027e670690d4cdbada46090)

Details

Provenance
glebiusAuthored on Sep 18 2025, 3:11 PM
Reviewer
kib
Differential Revision
D52506: cpucontrol: return selected revision from ucode_amd_find()
Parents
rG797e92944d11: cpuctl: run amd_ucode_wrmsr only on one CPU and report if it failed
Branches
Unknown
Tags
Unknown