Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2008 14:29:16 -0500
From:      Jason Morgan <jwm-freebsd-amd64@sentinelchicken.net>
To:        freebsd-amd64@freebsd.org
Subject:   Re: CFT: k8temp driver
Message-ID:  <20080210192916.GD46810@sentinelchicken.net>
In-Reply-To: <A611E395-3531-4026-B8B3-5EFA72BA48E1@FreeBSD.org>
References:  <A611E395-3531-4026-B8B3-5EFA72BA48E1@FreeBSD.org>

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

HTH,
~Jason



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