From owner-freebsd-amd64@FreeBSD.ORG Mon Feb 11 20:35:49 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 7322116A47E for ; Mon, 11 Feb 2008 20:35:49 +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 0686C13C4F9 for ; Mon, 11 Feb 2008 20:35:48 +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:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:in-reply-to:subject:x-priority:references:message-id:content-type:content-transfer-encoding:mime-version:date:cc:x-mailer:sender; bh=5406r2AlQvJ+2QdOIymwB+yLlOP10xInCyBDMzcRwYo=; b=GgsjzTV1/cdAPXGqDvdLC5ZyT/DBtC3WstVgHqLcsvcvQPTTfqCRhg2RbUwoEO/Q7GTCfHNM/zwwsWFYze+GFxaOCm3HhHiUB4RgBWA6tXhz2qOhccEUkIKtwYytsLaQ2AhFpkBhHyrbTegxKBhEkcH3FLiY+YDe+8yXOsASvEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:in-reply-to:subject:x-priority:references:message-id:content-type:content-transfer-encoding:mime-version:date:cc:x-mailer:sender; b=FNwEHBJ3kNU3O1PgPgAmvXVz3nRigTjjZAjPXk2UOSdgqVEIT6nsTgG/fJYa5JiBFPx4IkLPdf87cybIRnSYqrcXMjuCKk7UaebLkQjB6rxj0MOSziKiO2SNFApF2lTG9oG8Phk6LtOg+gm0YvWvd4/Ozc1CFyshKqvJToUE0iY= Received: by 10.67.101.17 with SMTP id d17mr9513874ugm.53.1202762147622; Mon, 11 Feb 2008 12:35:47 -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.45 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Feb 2008 12:35:46 -0800 (PST) From: Rui Paulo To: "Gelsema, P (Patrick)" In-Reply-To: <1678.10.202.77.197.1202678830.squirrel@webmail.superhero.nl> X-Priority: 3 (Normal) References: <1678.10.202.77.197.1202678830.squirrel@webmail.superhero.nl> Message-Id: 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:32 +0000 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:49 -0000 On Feb 10, 2008, at 9:27 PM, Gelsema, P (Patrick) wrote: > On Sun, February 10, 2008 16:59, 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 >> > > hulk# uname -a > FreeBSD hulk.superhero.nl 7.0-RC1 FreeBSD 7.0-RC1 #0: Mon Dec 24 > 18:52:08 > CET 2007 admin@hulk.superhero.nl:/usr/obj/usr/src/sys/GENERIC > amd64 > > hw.machine: amd64 > hw.model: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ > hw.ncpu: 2 > > hulk# sysctl -a | grep k8temp > k8temp0: on hostb3 > k8temp0: 16 20 11 7 > dev.k8temp.0.%desc: AMD K8 Thermal Sensors > dev.k8temp.0.%driver: k8temp > dev.k8temp.0.%parent: hostb3 > dev.k8temp.0.sensor0.core0: 19 > dev.k8temp.0.sensor0.core1: 21 > dev.k8temp.0.sensor1.core0: 19 > dev.k8temp.0.sensor1.core1: 19 > > Rgds, > > Patrick Thanks for testing! Regards. -- Rui Paulo