From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 5 12:55:20 2011 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 23F331065688; Tue, 5 Jul 2011 12:55:20 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.freebsd.org (Postfix) with ESMTP id C3A3B8FC12; Tue, 5 Jul 2011 12:55:19 +0000 (UTC) Received: from dagger.cc.vt.edu (dagger.cc.vt.edu [198.82.163.114]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id p65Csnj3012070; Tue, 5 Jul 2011 08:54:49 -0400 Received: from auth3.smtp.vt.edu (EHLO auth3.smtp.vt.edu) ([198.82.161.152]) by dagger.cc.vt.edu (MOS 4.2.2-FCS FastPath queued) with ESMTP id RNC68366; Tue, 05 Jul 2011 08:54:48 -0400 (EDT) Received: from pmather.tower.lib.vt.edu (pmather.tower.lib.vt.edu [128.173.51.28]) (authenticated bits=0) by auth3.smtp.vt.edu (8.13.8/8.13.8) with ESMTP id p65CsmCS011287 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 5 Jul 2011 08:54:48 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Paul Mather In-Reply-To: <4E0B8906.5030507@freebsd.org> Date: Tue, 5 Jul 2011 08:54:47 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <62A03799-7C34-42CF-9DE2-C70D0521D3EE@gromit.dlib.vt.edu> References: <38D89FC6-13F1-4AEF-AF41-0A377EE49DC4@gromit.dlib.vt.edu> <4DFFDEEE.40200@freebsd.org> <4E02C593.6020405@freebsd.org> <4E0682D3.9070607@freebsd.org> <4E089692.30203@freebsd.org> <792DE42C-DCD2-4003-893B-32074FAFE8AD@gromit.dlib.vt.edu> <4E0B8906.5030507@freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.1084) X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu paul@gromit.dlib.vt.edu 5 none X-Junkmail-Info: (0) X-Junkmail-Status: score=10/50, host=dagger.cc.vt.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020204.4E130999.0007,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=multiengine X-Junkmail-IWF: false Cc: freebsd-ppc@freebsd.org Subject: Re: Xserve G5 keeps shutting down 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: Tue, 05 Jul 2011 12:55:20 -0000 On Jun 29, 2011, at 4:20 PM, Nathan Whitehorn wrote: > On 06/29/11 15:11, Paul Mather wrote: >> On Jun 29, 2011, at 11:25 AM, Paul Mather wrote: >>=20 >>> On Jun 27, 2011, at 10:41 AM, Nathan Whitehorn wrote: >>>=20 >>>> On 06/27/11 09:28, Paul Mather wrote: >>>>> On Jun 25, 2011, at 8:52 PM, Nathan Whitehorn wrote: >>>=20 >>>>> What is odd, to me, is that this power-off occurred even >>>>> after commenting out the shutdown line in the thermal power >>>>> management driver. So, it must be something else that is >>>>> forcibly powering off the system, maybe something in >>>>> OpenFirmware, rather like some PC BIOSes will initiate a >>>>> power-off when temperatures exceed critical. But, what is >>>>> definitely odd is that temperatures don't seem to get so high >>>>> as to be critical, so perhaps it is some other hardware state >>>>> that is triggering the power-off? >>>>=20 >>>> Yes, something like that seems likely, either some strange >>>> firmware thing or the PMU microcontroller becoming unhappy. A few >>>> more things to try: 1) Does setting machdep.manage_fans=3D0 from >>>> the loader change anything? >>>=20 >>> I am trying that now. >>=20 >>=20 >> Just to follow up myself, I can report that I tried that and it >> eventually powered off the machine uncleanly, too, so no ultimate >> change in outcomes there. :-( >>=20 >> I'm beginning to wonder if this has anything to do with the fans or >> the temperature. Tomorrow I'll power on the system and let it run >> idle and see if it still powers off. >>=20 >> Do you think it would be worthwhile resetting the PMU? >=20 > That's unfortunate. Can you go through SVN history and make sure that = the revision before the thermal control code worked? I've done some more troubleshooting, having become more convinced that = this is probably not fan/thermal-related. The system would power off = even when the system was idle and the fans/temperature weren't being = pushed. Furthermore, I installed Mac OS X 10.5 on an external FireWire = drive and booted from that with the same result: the Xserve G5 will = power off after a while. In the Mac OS X logs I would see this line upon a subsequent reboot: = "ApplePMU::PMU forced shutdown, cause =3D -122". An Apple Support = article (http://support.apple.com/kb/TS2109) states "The -122 shutdown = value indicates that the computer shutdown as the result of a = power-related issue." It goes on to suggest: "Typically, the -122 entry is present if an Xserve experiences a = complete power loss or a fluctuation in power supply that requires the = Xserve the shut down. If your Xserve shuts down as a result of a = power-related issue, it is recommended that you investigate the power = source for reliability." The Xserve is plugged into a UPS right now, = and other equipment plugged into that UPS shows no power-related issues. = (I also plugged the Xserve directly into the wall socket but still get = the power-off behaviour.) The followup suggestion in the support article is to "use Xserve Remote = Diagnostics to inspect your Xserve G5." I've already done that, and the = Xserve passed all tests. The final support article suggestion---"If = your Xserve continues to shutdown or reboot automatically as the result = of power-related issues, (value -122) please contact AppleCare"---is not = viable, given we have had this Xserve many years and any AppleCare will = have expired by now. (They were bought on grant money, so you know how = that goes.) So, unless anyone has any other suggestions to fix this, it looks like a = bad/dying power supply is to blame for this issue. Sorry for the false = alarm! Cheers, Paul.