From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 10 10:50:49 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4238D16A418 for ; Fri, 10 Aug 2007 10:50:49 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id CDD6013C45B for ; Fri, 10 Aug 2007 10:50:48 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-187-205.dclient.hispeed.ch ([80.218.187.205] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IJS4t-0007ze-TG; Fri, 10 Aug 2007 12:50:47 +0200 Message-ID: <46BC4309.8000802@gahr.ch> Date: Fri, 10 Aug 2007 12:50:49 +0200 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.6 (X11/20070808) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= , freebsd-hackers@freebsd.org References: <86myx0pa9i.fsf@ds4.des.no> In-Reply-To: <86myx0pa9i.fsf@ds4.des.no> X-Enigmail-Version: 0.95.2 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig76A6B1655573CFB4E88D1F16" X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: Core temperature X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 10:50:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig76A6B1655573CFB4E88D1F16 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dag-Erling Sm=C3=B8rgrav wrote: > I've written a quick-and-dirty driver for the built-in digital > temperature sensor in Intel's Core and Core 2 CPUs (and Xeons built on > the Core architecture). The driver exports four sysctl nodes under > hw.coretemp: >=20 > hw.coretemp.tjmax Maximum core temperature (currently hardcoded > To 100=C2=B0C, may actually be 85=C2=B0C on som= e systems) >=20 > hw.coretemp.delta current temperature in =C2=B0C below Tj(max) >=20 > hw.coretemp.interrupt Lower 32 bits of the IA32_THERMAL_INTERRUPT MSR= >=20 > hw.coretemp.status Lower 32 bits of the IA32_THERMAL_STATUS MSR >=20 > I intend to move these into dev.cpu.N in a later version. >=20 > Note that the driver currently makes no attempt to handle multi-CPU > systems; it will simply report the temperature of the CPU that contains= > whichever core the requesting process happens to be running on. >=20 > http://people.freebsd.org/~des/software/coretemp-20070810.diff >=20 Hi Des, thanks a lot! Could you please try to explain these results? > sysctl hw.coretemp.tjmax hw.coretemp.delta hw.acpi.thermal.tz0.temperat= ure hw.coretemp.tjmax: 100 hw.coretemp.delta: -38 hw.acpi.thermal.tz0.temperature: 66.8C Shouldn't hw.coretemp.delta be (hw.coretemp.tjmax - hw.acpi.thermal.tz0.temperature)? Thanks! > DES --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enig76A6B1655573CFB4E88D1F16 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGvEMNwMJqmJVx944RChMVAJ45KHQjZExoUMZ+gYR9VS/5w2GdLgCgoEYV fBjHXQCU2BFttleAg909Pm0= =89Ap -----END PGP SIGNATURE----- --------------enig76A6B1655573CFB4E88D1F16--