Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2020 07:00:36 +0100
From:      Andrea Venturoli <ml@netfence.it>
To:        freebsd-current@freebsd.org, bsd-lists@BSDforge.com
Subject:   Re: Which AMD CPUs are supported -- temperature
Message-ID:  <0cb099c9-2a93-d244-ba72-a517dc16fe37@netfence.it>
In-Reply-To: <76406a01dfa1b78dee51f7c4924eb822@udns.ultimatedns.net>
References:  <76406a01dfa1b78dee51f7c4924eb822@udns.ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0cb099c9-2a93-d244-ba72-a517dc16fe37>