Date: Wed, 12 Feb 2020 23:00:23 -0800 From: Chris <bsd-lists@BSDforge.com> To: <freebsd-current@freebsd.org> Cc: Andrea Venturoli <ml@netfence.it> Subject: Re: Which AMD CPUs are supported -- temperature Message-ID: <54fe8d386cc038020b43d3bf99173b5f@udns.ultimatedns.net> In-Reply-To: <0cb099c9-2a93-d244-ba72-a517dc16fe37@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 13 Feb 2020 07:00:36 +0100 Andrea Venturoli ml@netfence=2Eit said > On 2020-02-12 23:17, Chris wrote: >=20 > > # dmidecode -t4 | grep AMD > > Manufacturer: AMD > > Version: AMD Athlon(tm) II X4 630 Processor > > # sysctl -a | grep tempe > > dev=2Ecpu=2E3=2Etemperature: 33=2E5C > > dev=2Ecpu=2E2=2Etemperature: 33=2E5C > > dev=2Ecpu=2E1=2Etemperature: 33=2E5C > > dev=2Ecpu=2E0=2Etemperature: 33=2E5C >=20 > Also works here: >=20 > > cat /var/run/dmesg=2Eboot > > =2E=2E=2E > > CPU: AMD Phenom(tm) II X4 965 Processor (3415=2E38-MHz K8-class CPU) > > sysctl -a|grep temp > > dev=2Ecpu=2E3=2Etemperature: 43=2E6C > > dev=2Ecpu=2E2=2Etemperature: 43=2E6C > > dev=2Ecpu=2E1=2Etemperature: 43=2E6C > > dev=2Ecpu=2E0=2Etemperature: 43=2E6C >=20 >=20 >=20 >=20 >=20 >=20 > >=20 > > # # # BROKEN > > # dmidecode -t4 | grep AMD > > Manufacturer: AuthenticAMD > > Version: AMD Athlon(tm) X4 860K Quad Core Processor > > # sysctl -a | grep tempe > > dev=2Ecpu=2E3=2Etemperature: 13=2E1C > > dev=2Ecpu=2E2=2Etemperature: 13=2E1C > > dev=2Ecpu=2E1=2Etemperature: 13=2E1C > > dev=2Ecpu=2E0=2Etemperature: 13=2E1C > >=20 > > All but one is in the same class=2E But one in that same > > class doesn't work=2E The FX class also works fine=2E > > I'm puzzled=2E=2E=2E :( >=20 Thanks for the reply! > This reminds me of my first Ryzen 2: 11=2E3 would not get the temperature= =20 > right, but 12=2E1 did=2E > If I understand correctly, AMD just gives a temperature reading in the=20 > same way on all CPUs, but different models require different adjustment= =20 > to that value (with some offset and/or other calculations); see=20 > /usr/src/sys/dev/amdtemp/amdtemp=2Ec=2E Heh, since I first discovered that I wasn't getting correct output, I went straight to svn=2Efreebsd=2Eorg/head and started walking the revisions on amdtemp=2Ec -- even many proposals -- https://reviews=2Efreebsd=2Eorg/D9759 for example=2E But I've grown weary of building world && kernels in hopes of finding just the right revision=2E :P > Perhaps this CPU needs a formula which FreeBSD's driver does not have? > Of course this is a wild guess, as I have not access to the specs=2E This is what I gathered from reading the source && comments=2E I read one where "linux" suggests it starts at -28C=2E So if I add +28 to my current output, that puts it about where I would expect it to be=2E But like you say; it's all guesswork without the specs=2E The CPU in question returns the following in dmesg(8), in case anyone cares= : AMD Athlon(tm) X4 860K Quad Core Processor (3700=2E07-MHz K8-class CPU) Origin=3D"AuthenticAMD" Id=3D0x630f01 Family=3D0x15 Model=3D0x30 Steppi= ng=3D1 Features=3D0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,= MCA, CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=3D0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4=2E1,SSE4=2E2,POPC= NT, AESNI,XSAVE,OSXSAVE,AVX,F16C> AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=3D0xfebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,O= SVW,IBS, XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC,<b25>,DBE,PTSC> Structured Extended Features=3D0x9<FSGSBASE,BMI1> XSAVE Features=3D0x1<XSAVEOPT> SVM: Features=3D0x1cff<NP,LbrVirt,SVML,NRIPS,TscRateMsr,VmcbClean,FlushByAs= id,DecodeAssist,PauseFilter, <b11>,PauseFilterThreshold> Revision=3D1, ASIDs=3D65536 Thanks again! --Chris >=20 > bye > =09av=2E
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54fe8d386cc038020b43d3bf99173b5f>