Which AMD CPUs are supported -- temperature
Andrea Venturoli
ml at netfence.it
Thu Feb 13 06:01:01 UTC 2020
On 2020-02-12 23:17, Chris wrote:
> # dmidecode -t4 | grep AMD
> Manufacturer: AMD
> Version: AMD Athlon(tm) II X4 630 Processor
> # sysctl -a | grep tempe
> dev.cpu.3.temperature: 33.5C
> dev.cpu.2.temperature: 33.5C
> dev.cpu.1.temperature: 33.5C
> dev.cpu.0.temperature: 33.5C
Also works here:
> cat /var/run/dmesg.boot
> ...
> CPU: AMD Phenom(tm) II X4 965 Processor (3415.38-MHz K8-class CPU)
> sysctl -a|grep temp
> dev.cpu.3.temperature: 43.6C
> dev.cpu.2.temperature: 43.6C
> dev.cpu.1.temperature: 43.6C
> dev.cpu.0.temperature: 43.6C
>
> # # # BROKEN
> # dmidecode -t4 | grep AMD
> Manufacturer: AuthenticAMD
> Version: AMD Athlon(tm) X4 860K Quad Core Processor
> # sysctl -a | grep tempe
> dev.cpu.3.temperature: 13.1C
> dev.cpu.2.temperature: 13.1C
> dev.cpu.1.temperature: 13.1C
> dev.cpu.0.temperature: 13.1C
>
> All but one is in the same class. But one in that same
> class doesn't work. The FX class also works fine.
> I'm puzzled... :(
This reminds me of my first Ryzen 2: 11.3 would not get the temperature
right, but 12.1 did.
If I understand correctly, AMD just gives a temperature reading in the
same way on all CPUs, but different models require different adjustment
to that value (with some offset and/or other calculations); see
/usr/src/sys/dev/amdtemp/amdtemp.c.
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.
bye
av.
More information about the freebsd-current
mailing list