NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re[2]: cpuctl(8) - unable to update amd ucode - no such file



Hi All,

What is wrong in that case:

phoenix# cpuctl list
Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    online       intr       Fri Jul 31 18:13:52 2026 11
1    1    online       intr       Fri Jul 31 18:13:52 2026 1
2    2    online       intr       Fri Jul 31 18:13:52 2026 1
3    3    online       intr       Fri Jul 31 18:13:52 2026 1
4    4    online       intr       Fri Jul 31 18:13:52 2026 1
5    5    online       intr       Fri Jul 31 18:13:52 2026 1
6    6    online       intr       Fri Jul 31 18:13:52 2026 1
7    7    online       intr       Fri Jul 31 18:13:52 2026 1

phoenix# cpuctl identify 0
cpu0: highest basic info 0000000d
cpu0: highest extended info 8000001f
cpu0: "AMD Ryzen 5 2400GE with Radeon Vega Graphics   "
cpu0: AMD Family 17h (686-class), 3194.01 MHz
cpu0: family 0x17 model 0x11 stepping 0 (id 0x810f10)
cpu0: features 0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE> cpu0: features 0x178bfbff<MCA,CMOV,PAT,PSE36,CLFSH,MMX,FXSR,SSE,SSE2,HTT> cpu0: features1 0x7ed8320b<SSE3,PCLMULQDQ,MONITOR,SSSE3,FMA,CX16,SSE41,SSE42> cpu0: features1 0x7ed8320b<MOVBE,POPCNT,AES,XSAVE,OSXSAVE,AVX,F16C,RDRAND> cpu0: features2 0x2fd3fbff<SYSCALL/SYSRET,NOX,MMXX,MMX,FXSR,FFXSR,P1GB,RDTSCP>
cpu0: features2 0x2fd3fbff<LONG>
cpu0: features3 0x35c233ff<LAHF,CMPLEGACY,SVM,EAPIC,ALTMOVCR0,LZCNT,SSE4A> cpu0: features3 0x35c233ff<MISALIGNSSE,3DNOWPREFETCH,OSVW,SKINIT,WDT,TCE>
cpu0: features3 0x35c233ff<TopoExt,PCExtC,PCExtNB,DBExt,L2IPERFC,MWAITX>
cpu0: features5 0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP>
cpu0: features5 0x209c01a9<CLFLUSHOPT,SHA>
cpu0: xsave features 0x7<x87,SSE,AVX>
cpu0: xsave instructions 0xf<XSAVEOPT,XSAVEC,XGETBV,XSAVES>
cpu0: xsave area size: current 832, maximum 832, xgetbv enabled
cpu0: enabled xsave 0x7<x87,SSE,AVX>
cpu0: I-cache: 64KB 64B/line 4-way, D-cache: 32KB 64B/line 8-way
cpu0: L2 cache: 512KB 64B/line 8-way
cpu0: L3 cache: 4MB 64B/line 16-way
cpu0: ITLB: 64 4KB entries fully associative, 64 2MB entries fully associative, 64 1GB entries fully associative cpu0: DTLB: 64 4KB entries fully associative, 64 2MB entries fully associative, 64 1GB entries fully associative
cpu0: L2 ITLB: 1024 4KB entries 8-way, 1024 2MB entries 8-way
cpu0: L2 DTLB: 1536 4KB entries 8-way, 1536 2MB entries 2-way
cpu0: Initial APIC ID 0
cpu0: Cluster/Package ID 0
cpu0: Core ID 0
cpu0: SMT ID 0
cpu0: MONITOR/MWAIT extensions 0x3<EMX,IBE>
cpu0: monitor-line size 64
cpu0: C0 substates 1
cpu0: C1 substates 1
cpu0: DSPM-eax 0x4<ARAT>
cpu0: DSPM-ecx 0x1<HWF,NTDC=0>
cpu0: SEF highest subleaf 00000000
cpu0: Power Management features: 0x6599<TS,TTP,HTC,HWP,ITSC,EffFreq,CONNSTBY,RAPL>
cpu0: AMD Extended features 0x1007<CLZERO,IRPERF,XSAVEERPTR,IBPB>
cpu0: RAS features 0x1b<OVFL_RECOV,SUCCOR,MCAX>
cpu0: SVM Rev. 1
cpu0: SVM NASID 32768
cpu0: SVM features 0x1bcff<NP,LbrVirt,SVML,NRIPS,TSCRate,VMCBCleanBits>
cpu0: SVM features 0x1bcff<FlushByASID,DecodeAssist,PauseFilter,B11>
cpu0: SVM features 0x1bcff<PFThreshold,AVIC,V_VMSAVE_VMLOAD,VGIF>
cpu0: IBS features 0x3ff<IBSFFV,FetchSam,OpSam,RdWrOpCnt,OpCnt,BrnTrgt>
cpu0: IBS features 0x3ff<OpCntExt,RipInvalidChk,OpBrnFuse,IbsFetchCtlExtd>
cpu0: Encrypted Memory features 0xf<SME,SEV,PageFlushMsr,SEV-ES>
cpu0: UCode version: 0x810100b

phoenix# cpuctl ucode
cpuctl: please also check dmesg(8) output for additional error information
cpuctl: IOC_CPU_UCODE_APPLY: No such file or directory
phoenix#


--
Marcin Gondek / Drixter
http://fido.e-utp.net/
AS56662


------ Original Message ------
From "Robert Elz" <kre%munnari.OZ.AU@localhost>
To netbsd-users%netbsd.org@localhost
Date 19.09.2026 10:16:36
Subject Re: cpuctl(8) - unable to update amd ucode - no such file

    Date:        Fri, 18 Sep 2026 21:39:35 -0700
    From:        P Gman <patrickgunsolley%gmail.com@localhost>
    Message-ID:  <CACSgzaKqeraNHc2EnmgxSZEUJsQpO1pLdtn-oTxO-F6_WQHVGg%mail.gmail.com@localhost>

  | Each form returns "cpuctl: -1: No such file or directory"

The hint for the problem is the "-1" in that message.  It
turns out that cpuctl doesn't actually like you giving -1
for the processor number, and you don't need to, that is the
default.   (Any other number, except -1 is acceptable).

That's why it can't find the file, it is looking for something
literally called "-1".

Just leave that out, and try again.  Generally for an AMD processor
when the microcode is stored in the (a) correct place, just

	cpuctl [-v] ucode

should be enough.   I'd suggest including the -v when you run
it manually (but not when it is in a script run by rc.d or similar,
once the correct format works)

kre


Home | Main Index | Thread Index | Old Index