Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2008 17:26:06 -0500
From:      Jason Morgan <jwm-freebsd-amd64@sentinelchicken.net>
To:        freebsd-amd64@freebsd.org
Subject:   Re: CFT: k8temp driver
Message-ID:  <20080211222606.GM46810@sentinelchicken.net>
In-Reply-To: <43B6638B-D4F7-4142-A2EB-E724148E7589@fnop.net>
References:  <A611E395-3531-4026-B8B3-5EFA72BA48E1@FreeBSD.org> <20080210192916.GD46810@sentinelchicken.net> <43B6638B-D4F7-4142-A2EB-E724148E7589@fnop.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 11, 2008 at 08:34:03PM +0000, Rui Paulo wrote:
> 
> On Feb 10, 2008, at 7:29 PM, Jason Morgan wrote:
> 
>> On Sun, Feb 10, 2008 at 03:59:04PM +0000, Rui Paulo wrote:
>>> Hi,
>>> Some AMD systems have two thermal sensors on both cores. I wrote a simple
>>> driver to access these temperatures, but I don't have a system to test. 
>>> If
>>> anyone has a AMD K8 system, I would love if you could test the k8temp
>>> driver that I wrote based on the Linux one.
>>> 
>>> Get it at:
>>> 	http://people.freebsd.org/~rpaulo/k8temp.tgz
>>> 
>>> Compile/test with:
>>> 	$ tar xzvf k8temp.tgz && cd k8temp
>>> 	$ make SYSDIR=/path/to/src/sys
>>> 	# kldload ./k8temp.ko
>>> 
>>> This is still pre-alpha quality, so please don't use it on a production
>>> system.
>>> 
>>> Thanks in advance.
>> 
>> # uname -a
>> FreeBSD numbuscus.skepsi.net 7.0-RC1 FreeBSD 7.0-RC1 #2: Wed Feb 6
>> 21:50:29 EST 2008
>> root@numbuscus.skepsi.net:/usr/obj/usr/src/sys/NUMBUSCUS.smp amd64
>> 
>> # dmesg
>> CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (2500.11-MHz
>>  K8-class CPU)
>>  Origin = "AuthenticAMD"  Id = 0x60fb1  Stepping = 1
>>  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,
>>                      MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,
>>                      FXSR,SSE,SSE2,HTT>
>>  Features2=0x2001<SSE3,CX16>
>>  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,
>>                          3DNow!>
>>  AMD Features2=0x11f<LAHF,CMP,SVM,ExtAPIC,CR8,Prefetch>
>>  Cores per package: 2
>> 
>> # sysctl -a | grep k8temp
>> k8temp0: <AMD K8 Thermal Sensors> on hostb3
>> k8temp0: 15 7 5 -11
>> dev.k8temp.0.%desc: AMD K8 Thermal Sensors
>> dev.k8temp.0.%driver: k8temp
>> dev.k8temp.0.%parent: hostb3
>> dev.k8temp.0.sensor0.core0: 15
>> dev.k8temp.0.sensor0.core1: 8
>> dev.k8temp.0.sensor1.core0: 15
>> dev.k8temp.0.sensor1.core1: 15
> 
> Hmm, this seems low. Are you using any kind of super thermal cooling like 
> water cooling systems?

I am not. Here is another set of readings and idle:

# sysctl -a | grep k8temp
k8temp0: <AMD K8 Thermal Sensors> on hostb3
k8temp0: 15 7 5 -11
dev.k8temp.0.%desc: AMD K8 Thermal Sensors
dev.k8temp.0.%driver: k8temp
dev.k8temp.0.%parent: hostb3
dev.k8temp.0.sensor0.core0: 13
dev.k8temp.0.sensor0.core1: 6
dev.k8temp.0.sensor1.core0: 13
dev.k8temp.0.sensor1.core1: 13

And here is another reading at full-power, building a kernel:

# sysctl -a | grep k8temp
k8temp0: <AMD K8 Thermal Sensors> on hostb3
k8temp0: 15 7 5 -11
dev.k8temp.0.%desc: AMD K8 Thermal Sensors
dev.k8temp.0.%driver: k8temp
dev.k8temp.0.%parent: hostb3
dev.k8temp.0.sensor0.core0: 27
dev.k8temp.0.sensor0.core1: 22
dev.k8temp.0.sensor1.core0: 27
dev.k8temp.0.sensor1.core1: 27

I use powerd to take reduce the MHz to 1000 when the system isn't
loaded.

Let me know if you want me to test something.

HTH,
~Jason



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080211222606.GM46810>