From owner-freebsd-stable@FreeBSD.ORG Tue Jan 9 16:50:46 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE1E016A503 for ; Tue, 9 Jan 2007 16:50:46 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from alnrmhc11.comcast.net (alnrmhc11.comcast.net [204.127.225.91]) by mx1.freebsd.org (Postfix) with ESMTP id A0C2D13C465 for ; Tue, 9 Jan 2007 16:50:46 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (c-71-198-0-135.hsd1.ca.comcast.net[71.198.0.135]) by comcast.net (alnrmhc11) with ESMTP id <20070109165039b1100k56b8e>; Tue, 9 Jan 2007 16:50:43 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id D04851FA037; Tue, 9 Jan 2007 08:50:28 -0800 (PST) Date: Tue, 9 Jan 2007 08:50:28 -0800 From: Jeremy Chadwick To: Bruno Ducrot Message-ID: <20070109165028.GA70345@icarus.home.lan> Mail-Followup-To: Bruno Ducrot , Daniel O'Connor , freebsd-stable@freebsd.org References: <200701091239.46735.doconnor@gsoft.com.au> <20070109135047.GD4945@poupinou.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070109135047.GD4945@poupinou.org> X-PGP-Key: http://jdc.parodius.com/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-stable@freebsd.org Subject: Re: Temperature/fan monitoring on a Supermicro P8SCT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 16:50:47 -0000 On Tue, Jan 09, 2007 at 02:50:47PM +0100, Bruno Ducrot wrote: > On Tue, Jan 09, 2007 at 12:39:45PM +1030, Daniel O'Connor wrote: > > Has anyone had any success? > > I've tried healthd (0.7.9) but it can't show temps, eg.. > > julx2:/usr/src/sys/amd64/conf>sudo healthd -1 -D > > It seems we can get directly different temperatures from the CPU. At > least this works for some opteron CG core, and believe it should work > with other processors as well. > > In the meantime, could you please try this: > > # setpci -d1022:1103 e6.b | sed s,^,0x,g | \ > awk 'BEGIN {i = 0} {print "processor "i++": " $1 - 49 "C"}' > > (you must have the sysutils/pciutils port, though, but I need a similar > command under Linux, that's why I'm doing something like that). I don't understand how this interfaces with the Winbond 83627HF H/W monitoring IC of the P8SCT. As far as I know, the 83627HF does not sit on the PCI bus; you can only talk to it via SMBus (and that's *only* if Supermicro added the SMBus tie-ins in their BIOS properly; Supermicro has a history of being hit-or-miss when it comes to this, most of the time being a miss), or via ancient x86 memory-mapped I/O ports (which each motherboard vendor can set/implement at various memory locations as they see fit; there is no "standard"). Full engineering details of the 83627HF are here: http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/627hf.pdf Regarding your setpci request: 0x1022 is the vendor ID (AMD), 0x1103 is the device ID (what AMD labels as "Miscellaneous Control"). How did you determine that you should use configuration register E6? I can't find any documentation about this PCI device. Regardless, chances are what you're looking up on the PCI bus is the on-die thermistor for CPU temperature. This doesn't help when it comes to monitoring system (case/enclosure) temperature. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |