CFT: k8temp driver

Rui Paulo rpaulo at fnop.net
Mon Feb 11 12:34:11 PST 2008


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 at 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?

Regards.
--
Rui Paulo






More information about the freebsd-amd64 mailing list