Re: ktemp(8) on Phenom II

From: Rui Paulo <rpaulo_at_FreeBSD.org>
Date: Sun, 1 Mar 2009 15:05:08 +0000
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


Received on Sun Mar 01 2009 - 14:05:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC