From owner-freebsd-amd64@FreeBSD.ORG Sun Feb 10 21:21:20 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 7D32D16A419; Sun, 10 Feb 2008 21:21:20 +0000 (UTC) (envelope-from carl.gustavsson@bahnhofbredband.se) Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by mx1.freebsd.org (Postfix) with ESMTP id 2257213C442; Sun, 10 Feb 2008 21:21:19 +0000 (UTC) (envelope-from carl.gustavsson@bahnhofbredband.se) Received: from localhost (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 85B5714D7CC; Sun, 10 Feb 2008 21:51:14 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by localhost (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hd33bWn8aoxJ; Sun, 10 Feb 2008 21:51:10 +0100 (CET) Received: from sleipner.home.swe (c213-100-49-167.swipnet.se [213.100.49.167]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 089E214D131; Sun, 10 Feb 2008 21:51:09 +0100 (CET) Message-ID: <47AF63BD.7020403@bahnhofbredband.se> Date: Sun, 10 Feb 2008 21:51:09 +0100 From: Carl Johan Gustavsson User-Agent: Thunderbird 2.0.0.9 (X11/20080123) MIME-Version: 1.0 To: Rui Paulo References: In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Sun, 10 Feb 2008 21:21:20 -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. > -- > Rui Paulo > Hi! Tested it seems to work just fine! I gathered this info: # uname -a FreeBSD sleipner.home.swe 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Sat Feb 2 22:02:17 CET 2008 carl@sleipner.home.swe:/usr/home/carl/usr.obj/usr/src/sys/SLEIPNER_7 i386 exerpt from dmesg: CPU: Dual Core AMD Opteron(tm) Processor 165 (1808.34-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20f32 Stepping = 2 Features=0x178bfbff Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x3 Cores per package: 2 ... k8temp0: on hostb3 k8temp0: 44 41 44 41 # sysctl dev.k8temp dev.k8temp.0.%desc: AMD K8 Thermal Sensors dev.k8temp.0.%driver: k8temp dev.k8temp.0.%parent: hostb3 dev.k8temp.0.sensor0.core0: 44 dev.k8temp.0.sensor0.core1: 40 dev.k8temp.0.sensor1.core0: 45 dev.k8temp.0.sensor1.core1: 45 It's tested in i386 now, but I can provide data for amd64 using the same cpu if you want. Thanks for your work! It's a very handy feature. /cjg