From owner-freebsd-ppc@FreeBSD.ORG Sat Dec 4 20:08:43 2010 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 844DE106564A; Sat, 4 Dec 2010 20:08:43 +0000 (UTC) (envelope-from andreast@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 30BA18FC2C; Sat, 4 Dec 2010 20:08:42 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id oB4JYMuU084589; Sat, 4 Dec 2010 20:34:25 +0100 (CET) (envelope-from andreast@fgznet.ch) Message-ID: <4CFA97BE.3050901@fgznet.ch> Date: Sat, 04 Dec 2010 20:34:22 +0100 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.11) Gecko/20101013 Lightning/1.0b2 Thunderbird/3.1.5 MIME-Version: 1.0 To: Paul Mather References: <5A677521-DE86-4BA9-BA85-8003957551B5@freebsd.org> <4CEBDB9D.2010309@freebsd.org> <15A958D9-5CBE-4830-B72C-CC4DF2192BC0@gromit.dlib.vt.edu> <4CF7FAFD.2030607@FreeBSD.org> <3853126F-041B-4CA9-A3FC-417CB000E21C@gromit.dlib.vt.edu> In-Reply-To: <3853126F-041B-4CA9-A3FC-417CB000E21C@gromit.dlib.vt.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-ppc@FreeBSD.org, Nathan Whitehorn , yongari@FreeBSD.org Subject: Re: New powerpc64 snapshot X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2010 20:08:43 -0000 On 03.12.10 21:40, Paul Mather wrote: > On Dec 2, 2010, at 3:01 PM, Andreas Tobler wrote: > Hopefully, this is the info you requested (if not, I can e-mail the > whole devinfo -v output): > > iichb0 pnpinfo name=i2c compat=keywest-i2c iicbus0 unknown pnpinfo > name=i2c-hwclock compat=pulsar-legacy-slewing at addr=0xd4 max66900 > pnpinfo name=temp-monitor compat=max6690 at addr=0x98 fcu0 pnpinfo > name=fan compat=fcu at addr=0x15e unknown pnpinfo > name=i2c-cpu-voltage compat=pca9556 at addr=0x30 unknown pnpinfo > name=supply-monitor compat=ad7417 at addr=0x58 unknown pnpinfo > name=cpuid compat=24256 at addr=0xa0 unknown pnpinfo > name=i2c-cpu-voltage compat=pca9556 at addr=0x32 unknown pnpinfo > name=supply-monitor compat=ad7417 at addr=0x5a unknown pnpinfo > name=cpuid compat=24256 at addr=0xa2 unknown pnpinfo name=cereal at > addr=0x1c0 Yes, that is exactly what I was looking for. I have to think about how I can provide some better support. In the above we see that there are two AD7417, where the driver already exists. And below we have an LM75, which should be similar, if not equal, to the DS1775 (This one is available in the tree, but not yet used on your machine.) The real missing part is the LM87. Here we might need to write a new driver. But these missing drivers have no direct effect on the fan speed. They only help you to determine the right speed to keep the machine cool. Sure, we need them when we have a user land app which controls the whole stuff. But for now you (we) play the user land app :) > iichb1 pnpinfo name=i2c compat=k2-i2c iicbus1 unknown pnpinfo > name=lm87cimt compat=lm87cimt at addr=0x5a unknown pnpinfo > name=lm87cimt compat=lm87cimt at addr=0x5c unknown pnpinfo > name=temp-monitor compat=lm75 at addr=0x90 unknown pnpinfo > name=power-supply-monitor compat=pic16c72a at addr=0x94 unknown > pnpinfo name=cereal at addr=0x1c0 > My thanks to you (and others) for the explanation. > > On my system, setting a *.rpm sysctl to a value does not always have > direct correlation with the value subsequently reported. This is > particularly true of dev.fcu.0.fans.sys_ctrlr_fan.rpm and > dev.fcu.0.fans.pci_fan.maxrpm. For example, if I set sys_ctrlr_fan > RPM to 6000, it will race up immediately to ~13000--14000 RPM. To > get it to maintain a reported ~6000 RPM I need to set it to > ~1100--1200 RPM with the sysctl. Hehe, these two fans are PWM controlled while the others re controlled by RPM (see the verbose log and in the source, type 0 is RPM, type 1 is PWM). It is possible that my formula to calculate the RPM is not working properly. I'll have a look at and see what I can improve. Thank you for the feedback. Andreas