From owner-cvs-all@FreeBSD.ORG Wed Aug 15 20:47:11 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C471D16A41B; Wed, 15 Aug 2007 20:47:11 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 696E713C46B; Wed, 15 Aug 2007 20:47:11 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from tirith.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id B31061CC10F; Wed, 15 Aug 2007 22:47:09 +0200 (CEST) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id 1B2AAB885; Wed, 15 Aug 2007 22:47:09 +0200 (CEST) Date: Wed, 15 Aug 2007 22:47:08 +0200 From: Henrik Brix Andersen To: Dag-Erling Smorgrav Message-ID: <20070815204708.GA11724@tirith.brixandersen.dk> Mail-Followup-To: Dag-Erling Smorgrav , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200708151926.l7FJQ3Md029693@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <200708151926.l7FJQ3Md029693@repoman.freebsd.org> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/amd64/include specialreg.h src/sys/conf files.amd64 files.i386 src/sys/dev/coretemp coretemp.c src/sys/i386/include specialreg.h src/sys/modules Makefile src/sys/modules/coretemp Makefile src/sys/amd64/conf NOTES ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2007 20:47:11 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 15, 2007 at 07:26:03PM +0000, Dag-Erling Smorgrav wrote: > des 2007-08-15 19:26:03 UTC >=20 > FreeBSD src repository >=20 > Modified files: > sys/amd64/include specialreg.h=20 > sys/conf files.amd64 files.i386=20 > sys/i386/include specialreg.h=20 > sys/modules Makefile=20 > sys/amd64/conf NOTES=20 > sys/i386/conf NOTES=20 > Added files: > sys/dev/coretemp coretemp.c=20 > sys/modules/coretemp Makefile=20 > Log: > Add a driver for the on-die digital thermal sensor found on Intel Core > and newer CPUs (including Core 2 and Core / Core 2 based Xeons). The > driver attaches to each cpu device and creates a sysctl node in that > device's sysctl context (dev.cpu.N.temperature). When invoked, the > handler binds to the appropriate CPU to ensure a correct reading. > =20 > Submitted by: Rui Paulo > Sponsored by: Google Summer of Code 2007 > Tested by: des, marcus, Constantine A. Murenin, Ian FREISLICH > Approved by: re (kensmith) > MFC after: 3 weeks Thanks for working on this. I just tested it on my Core Duo laptop (an IBM/Lenovo X60s with an L2400 @ 1.66GHz) - it doesn't seem to provide useful readings: $ uname -a FreeBSD lothlorien.brixandersen.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #63: Wed= Aug 15 22:13:01 CEST 2007 root@lothlorien.brixandersen.dk:/usr/obj/usr= /src/sys/LOTHLORIEN i386 $ dmesg | grep coretemp coretemp0: on cpu0 coretemp1: on cpu1 $ sysctl dev.cpu.0.temperature dev.cpu.0.temperature: -50 $ sysctl dev.cpu.1.temperature dev.cpu.1.temperature: -49 The readings approach zero as the temperature of the CPU rises: $ sysctl dev.cpu.0.temperature dev.cpu.0.temperature: -37 $ sysctl dev.cpu.1.temperature dev.cpu.1.temperature: -38 The ACPI thermal zones seem to provide much more realistic readings: $ sysctl hw.acpi.thermal.tz0.temperature hw.acpi.thermal.tz0.temperature: 65.0C $ sysctl hw.acpi.thermal.tz1.temperature hw.acpi.thermal.tz1.temperature: 67.0C Regards, Brix --=20 Henrik Brix Andersen --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: GnuPG signed iD8DBQFGw2ZMv+Q4flTiePgRAkOXAJwKbLWDOw3FxW+3oX5DS/8M3vokpwCgns+d +Gi1Gs/qhGwWFeuykVaRrHQ= =Nr3z -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--