From owner-freebsd-ppc@FreeBSD.ORG Mon Jun 20 22:19:34 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 765F71065674 for ; Mon, 20 Jun 2011 22:19:34 +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 335DE8FC1B for ; Mon, 20 Jun 2011 22:19:33 +0000 (UTC) Received: from zidane.cc.vt.edu (zidane.cc.vt.edu [198.82.163.227]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id p5KKMVsK021258 for ; Mon, 20 Jun 2011 16:22:56 -0400 Received: from auth3.smtp.vt.edu (EHLO auth3.smtp.vt.edu) ([198.82.161.152]) by zidane.cc.vt.edu (MOS 4.2.2-FCS FastPath queued) with ESMTP id PSI08622; Mon, 20 Jun 2011 16:22:56 -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 p5KKMtMC014193 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 20 Jun 2011 16:22:55 -0400 From: Paul Mather Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Jun 2011 16:22:55 -0400 Message-Id: <38D89FC6-13F1-4AEF-AF41-0A377EE49DC4@gromit.dlib.vt.edu> To: freebsd-ppc@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) 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=zidane.cc.vt.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020205.4DFFAC20.0040,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 Subject: 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: Mon, 20 Jun 2011 22:19:34 -0000 I'm running FreeBSD/powerpc64 -CURRENT on an Xserve G5. With a recent = kernel, the system will not stay up for more than a few hours at a time. = :-( I have no idea why the machine is shutting off. There is no panic or = crash dump and there is no indication in the logs of anything awry. The = system just powers down. The times this has happened when I have been = there have not indicated anything stressing the system (like all fans = racing madly) and oftentimes the system has been relatively idle. = (Oddly, it never appears to my knowledge to have shut down when doing = sometime potentially taxing, such as a make -j5 buildworld or the = likes.) The main thing I have noticed since building this new kernel is that the = fans are now controlled automatically, i.e., there is now no need for = the tickle-the-fan-controller cron job of yore, meaning the fans won't = race when in single user mode (e.g., during an installworld). Whereas the CPU fan RPM are in the range I am used to before, the = PWM-controlled fans' RPM is high compared to the range. For example: dev.fcu.0.fans.sys_ctrlr_fan.minpwm: 40 dev.fcu.0.fans.sys_ctrlr_fan.maxpwm: 100 dev.fcu.0.fans.sys_ctrlr_fan.pwm: 49 dev.fcu.0.fans.sys_ctrlr_fan.rpm: 10112 dev.fcu.0.fans.pci_fan.minpwm: 40 dev.fcu.0.fans.pci_fan.maxpwm: 100 dev.fcu.0.fans.pci_fan.pwm: 48 dev.fcu.0.fans.pci_fan.rpm: 10048 When I was setting the RPMs manually, it seemed that ~6000 RPM was a = nice, comfortable setting; 10000+ RPM was definitely high. With the PWM = automatic control, the fans appear to spin fast even at the low end of = the PWM range (e.g., see above). I corresponded with Andreas Tobler = several months ago about the fcu driver and it seemed like the scaling = didn't work universally across different hardware models (e.g., what = worked well on a PowerMac G5 didn't work well on an Xserve G5). I notice a "machdep.manage_fans" sysctl. By setting this to "0" does = the behaviour revert to the old one, i.e., where you can set the RPMs = explicitly? Maybe I'll have more luck with the previous method? Has anyone else noticed problems with their Xserve G5? I'm not ruling = out a hardware problem, but up until now this system has been rock = solid. Cheers, Paul. PS: Here is a boot dmesg: Kernel entry at 0x103250 ... GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #0: Mon Jun 20 14:08:30 EDT 2011 paul@backup.tower.lib.vt.edu:/usr/obj/usr/src/sys/CHUMBY_DEBUG = powerpc cpu0: IBM PowerPC 970FX revision 3.0, 2300.74 MHz cpu0: Features dc000000 cpu0: HID0 511081 real memory =3D 4276617216 (4078 MB) avail memory =3D 4040163328 (3853 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0: dev=3Dff88ed18 (BSP) cpu1: dev=3Dff890150 kbd0 at kbdmux0 nexus0: cpulist0: on nexus0 cpu0: on cpulist0 pcr0: on cpu0 pcr0: No power mode data in device tree! device_attach: pcr0 attach returned 6 cpu1: on cpulist0 pcr1: on cpu1 pcr1: No power mode data in device tree! device_attach: pcr1 attach returned 6 unin0: on nexus0 unin0: Version 53 iichb0: mem 0xf8001000-0xf8001fff irq 0 on = unin0 iicbus0: on iichb0 iicbus0: at addr 0xd4 max66900: at addr 0x98 on iicbus0 fcu0: at addr 0x15e on iicbus0 iicbus0: at addr 0x30 ad74170: at addr 0x58 on iicbus0 ad74170: 5 sensors detected. iicbus0: at addr 0xa0 iicbus0: at addr 0x32 ad74171: at addr 0x5a on iicbus0 ad74171: 5 sensors detected. iicbus0: at addr 0xa2 iicbus0: at addr 0x1c0 htpic0: mem 0xf8040000-0xf807ffff irq 184 = on unin0 pcib0: on nexus0 pci0: on pcib0 pcib1: on nexus0 pcib1: 4 HT IRQs on device 1.0 pcib1: 4 HT IRQs on device 2.0 pcib1: 86 HT IRQs on device 3.0 pci1: on pcib1 pcib2: at device 1.0 on pci1 pci2: on pcib2 pcib3: at device 2.0 on pci1 pci3: on pcib3 bge0: mem = 0x90030000-0x9003ffff,0x90020000-0x9002ffff irq 182 at device 4.0 on = pci3 bge0: CHIP ID 0x00002003; ASIC REV 0x02; CHIP REV 0x20; PCI-X miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, = 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Ethernet address: 00:0d:93:9d:40:c0 bge1: mem = 0x90010000-0x9001ffff,0x90000000-0x9000ffff irq 185 at device 4.1 on = pci3 bge1: CHIP ID 0x00002003; ASIC REV 0x02; CHIP REV 0x20; PCI-X miibus1: on bge1 brgphy1: PHY 1 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, = 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge1: Ethernet address: 00:0d:93:9d:40:c1 pcib4: at device 3.0 on pci1 pci4: on pcib4 macio0: mem 0x80000000-0x8007ffff at device = 7.0 on pci4 openpic0: mem 0x40000-0x7ffff on macio0 macgpio0: mem 0x50-0x8a on macio0 scc0: mem = 0x13000-0x13fff,0x8400-0x84ff,0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff = irq 150,133,134,151,135,136 on macio0 uart0: on scc0 uart0: console (57600,n,8,1) uart1: on scc0 iichb1: mem 0x18000-0x18fff irq 154 on macio0 iicbus1: on iichb1 iicbus1: at addr 0x5a iicbus1: at addr 0x5c ds17750: at addr 0x90 on iicbus1 iicbus1: at addr 0x94 iicbus1: at addr 0x1c0 pmu0: mem 0x16000-0x17fff irq 153 on macio0 pcib5: at device 4.0 on pci1 pci5: on pcib5 ohci0: mem 0x80102000-0x80102fff irq 191 = at device 11.0 on pci5 usbus0: on ohci0 ohci1: mem 0x80101000-0x80101fff irq 191 = at device 11.1 on pci5 usbus1: on ohci1 ehci0: mem 0x80100000-0x801000ff irq = 191 at device 11.2 on pci5 usbus2: EHCI version 1.0 usbus2: on ehci0 pcib6: at device 5.0 on pci1 pci6: on pcib6 ata0: mem 0x80204000-0x80207fff irq 167 at = device 13.0 on pci6 fwohci0: <1394 Open Host Controller Interface> mem 0x80200000-0x80200fff = irq 168 at device 14.0 on pci6 fwohci0: OHCI version 1.0 (ROM=3D0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:0d:93:ff:fe:c5:c9:fa fwohci0: invalid speed 7 (fixed to 3). fwohci0: Phy 1394a available S800, 3 ports. fwohci0: Link S800, max_rec 4096 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:0d:93:c5:c9:fa fwe0: Ethernet address: 02:0d:93:c5:c9:fa sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=3D0x00000001, SelfID Count=3D2, = CYCLEMASTER mode pcib7: at device 6.0 on pci1 pci7: on pcib7 gem0: mem 0x80400000-0x805fffff at device 15.0 = on pci7 gem0: failed to allocate resources device_attach: gem0 attach returned 6 pcib8: at device 7.0 on pci1 pci8: on pcib8 atapci0: mem 0x80600000-0x80601fff = irq 128 at device 12.0 on pci8 ata2: on atapci0 ata3: on atapci0 ata4: on atapci0 ata5: on atapci0 atapci1: at device 12.1 on pci8 pcib1: failed to reserve resource for atapci1 atapci1: 0x10 bytes of rid 0x20 res 4 failed (0, 0xffffffffffffffff). atapci1: unable to map interrupt device_attach: atapci1 attach returned 6 Timecounter "timebase" frequency 33333333 Hz quality 0 Event timer "decrementer" frequency 33333333 Hz quality 1000 Timecounters tick every 1.000 msec max66900: 2 sensors detected. firewire0: 2 nodes, maxhop <=3D 1 cable IRM irm(1) (me)=20 firewire0: bus manager 1=20 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 fcu0: FCU initialized, RPM shift: 2 fcu0: 8 fans detected! uhub1: 2 ports with 2 removable, self powered uhub0: 3 ports with 3 removable, self powered ada0 at ata2 bus 0 scbus2 target 0 lun 0 ada0: ATA-6 SATA 1.x device ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: 78533MB (160836480 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad0 ada1 at ata4 bus 0 scbus4 target 0 lun 0 ada1: ATA-7 SATA 1.x device ada1: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada1: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad1 xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported SMP: AP CPU #1 launched cd0 at ata0 bus 0 scbus0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device=20 cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported uhub2: 5 ports with 5 removable, self powered xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported xpt_action_default: CCB type 0xe not supported Trying to mount root from ufs:/dev/ada0s3 [rw]... WARNING: / was not properly dismounted Enter full pathname of shell or RETURN for /bin/sh:=20