From owner-freebsd-amd64@FreeBSD.ORG Mon Feb 11 20:35:38 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 5738416A41B for ; Mon, 11 Feb 2008 20:35:38 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 6BBBD13C501 for ; Mon, 11 Feb 2008 20:35:37 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so596298uge.37 for ; Mon, 11 Feb 2008 12:35:34 -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=1b1THobqhZ8XGbJ9zvIf9eDr/xbPVsJe/W4jqdCLZ3w=; b=a/0W+xw3hU0jlDJynNWhMPw/0j2P8nPjKfXigMeccD5DbtHpbbgo3ZEWl6UzEl2DKctr/9hHCLSmAY4fEPv8cG3XyjSW879PE+xrZrn/Pjl+agsgGPtccdHWcEimsMN5fZP7lJnp3cTcOzuz+X3q2bG4Ewm0so3pwHl91g+wft4= 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=nKrQ7J2GmOVvPP1bJ9z7MvIPI9uVgqLZmg8Z52JD6/LwBrhSyJXFXrH0Rpw8s5SgJQ4+3t+A5GsFZmoAOlztdIuyiOZzq0RNrTWl922k43QtKoJg5eosS2kn1rncuFJKR/YRLOeuvFd6BZyGzEIsiiqRRqwz/c8M++QEyqwIonE= Received: by 10.67.22.2 with SMTP id z2mr9542247ugi.1.1202762134810; Mon, 11 Feb 2008 12:35:34 -0800 (PST) Received: from ?89.214.167.223? ( [89.214.167.223]) by mx.google.com with ESMTPS id g9sm20072635gvc.4.2008.02.11.12.35.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Feb 2008 12:35:30 -0800 (PST) Message-Id: From: Rui Paulo To: Carl Johan Gustavsson In-Reply-To: <47AF63BD.7020403@bahnhofbredband.se> 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:35:09 +0000 References: <47AF63BD.7020403@bahnhofbredband.se> X-Mailer: Apple Mail (2.915) Sender: Rui Paulo 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:35:38 -0000 On Feb 10, 2008, at 8:51 PM, Carl Johan Gustavsson wrote: > 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 > < > FPU > ,VME > ,DE > ,PSE > ,TSC > ,MSR > ,PAE > ,MCE > ,CX8 > ,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > 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. Well, it should work as well too. > Thanks for your work! It's a very handy feature. Thanks for the testing. :-) Regards. -- Rui Paulo