From owner-freebsd-amd64@FreeBSD.ORG Mon Feb 11 20:34:10 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF32A16A469 for ; Mon, 11 Feb 2008 20:34:10 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 7E8C313C45D for ; Mon, 11 Feb 2008 20:34:10 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so595852uge.37 for ; Mon, 11 Feb 2008 12:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; bh=6ayirunaH50FcF+24skhs+A9hp5PWTfiyrOQGRIM2Ao=; b=sfRl71uq4lURnW/Bmwk243tGvoUfhzwFi/0LZSBPuIefyXFGcSw/tfddrAViH18/ycNePsX6Dnea4jc7FaS+iqpSNVPB2TdKYw9BYTMdLcCw97hPN30BksRkNYeP0G7jiVYpIY5V07shcX8yIj4GuDxPwG5hXvvaiYOxI7FKzjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; b=cNnWjCie1eAM3zdYaUz8rzEp9gG0pOrIfg0KyESN3RWdKMjfuf/RuTbyxKf3AMpO8Wu6N3smVAXwvznlIw/52xoKsHMiDV7+Tac70U1K9n4BGyExI6Rof0GRroaXK5MNyP6v0XPfILicy43mrjNg2wUE3Nuv/+8047IhnnE39ag= Received: by 10.67.21.11 with SMTP id y11mr9537042ugi.10.1202762048863; Mon, 11 Feb 2008 12:34:08 -0800 (PST) Received: from ?89.214.167.223? ( [89.214.167.223]) by mx.google.com with ESMTPS id i6sm20485728gve.5.2008.02.11.12.34.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Feb 2008 12:34:05 -0800 (PST) Message-Id: <43B6638B-D4F7-4142-A2EB-E724148E7589@fnop.net> From: Rui Paulo To: Jason Morgan In-Reply-To: <20080210192916.GD46810@sentinelchicken.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Mon, 11 Feb 2008 20:34:03 +0000 References: <20080210192916.GD46810@sentinelchicken.net> X-Mailer: Apple Mail (2.915) Sender: Rui Paulo X-Mailman-Approved-At: Tue, 12 Feb 2008 03:32:50 +0000 Cc: freebsd-amd64@freebsd.org Subject: Re: CFT: k8temp driver X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 20:34:11 -0000 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 MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX, > FXSR,SSE,SSE2,HTT> > Features2=0x2001 > AMD Features=0xea500800 3DNow!> > AMD Features2=0x11f > Cores per package: 2 > > # sysctl -a | grep k8temp > k8temp0: 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