Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2023 08:42:28 -0400
From:      mike tancsa <mike@sentex.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   AMD microcode updates (sysutils/devcpu-data-amd)
Message-ID:  <fe4ee736-b8ac-8e97-e082-6eaf502b8b2d@sentex.net>

next in thread | raw e-mail | index | archive | help
Hi All,

     Was looking to update the handful of AMD based servers I have for 
the Zenbleed patch.  I am used to Intel CPUs where they get updated at 
boot time in /boot/firmware.  But when I install the AMD port, I dont 
see it ever installed there.  If I do a userland start

# /usr/local/etc/rc.d/microcode_update start
Updating CPU Microcode...
Done.
#

it seems to work, in that dmesg shows

CPU: AMD EPYC 7302P 16-Core Processor                (3000.06-MHz 
K8-class CPU)
   Origin="AuthenticAMD"  Id=0x830f10  Family=0x17  Model=0x31 Stepping=0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
   AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
   AMD 
Features2=0x75c237ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX,<b30>>
   Structured Extended 
Features=0x219c91a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
   Structured Extended Features2=0x400004<UMIP,RDPID>
   XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
   AMD Extended Feature Extensions ID 
EBX=0x18cf757<CLZERO,IRPerf,XSaveErPtr>
   SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
   TSC: P-state invariant, performance statistics


But how do I know if the microcode got updated ? The dmesg displaying 
the features are the same. Is there a command to show the microcode 
version before and after  for AMD CPUs ?

Thanks!

     ---Mike




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fe4ee736-b8ac-8e97-e082-6eaf502b8b2d>