ktemp(8) on Phenom II

Rui Paulo rpaulo at FreeBSD.org
Sun Mar 1 07:05:18 PST 2009


On 1 Mar 2009, at 14:43, Norikatsu Shigemura wrote:

> Hi Rui!
>
> On Sun, 1 Mar 2009 13:48:28 +0000
> Rui Paulo <rpaulo at freebsd.org> wrote:
>>> chip=0x12031022 rev=0x00 hdr=0x00
>>>   vendor     = 'Advanced Micro Devices (AMD)'
>>>   device     = '(Family 10h) Athlon 64/Opteron/Sempron
>>> Miscellaneous Control'
>
>> Try replacing 0x1103 by 0x1203 in k8temp.c.
>> Does that work?
>
> 	I got following results:
>
> $ sysctl -a | fgrep -e k8 -e temperature
> dev.cpu.0.temperature: 143
> dev.cpu.1.temperature: 143
> dev.k8temp.0.%desc: AMD K8 Thermal Sensors
> dev.k8temp.0.%driver: k8temp
> dev.k8temp.0.%parent: hostb4
> dev.k8temp.0.sensor0.core0: 143
> dev.k8temp.0.sensor0.core1: 143
> dev.k8temp.0.sensor1.core0: 143
> dev.k8temp.0.sensor1.core1: 143
>
> 	Accordingly BIOS reports CPU temperature is 32-36 celsius
> 	(=89-97 fahrenheit).  I don't know what is '143'.

I see that AMD has changed the register layout on recent processors.  
I'll try to cook up something when I have the time.

Regards,
--
Rui Paulo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090301/4729c02d/PGP.pgp


More information about the freebsd-current mailing list