From owner-freebsd-ppc@FreeBSD.ORG Sat Feb 27 21:28:50 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 71F30106564A for ; Sat, 27 Feb 2010 21:28:50 +0000 (UTC) (envelope-from alexander.bakst@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1CDE48FC17 for ; Sat, 27 Feb 2010 21:28:49 +0000 (UTC) Received: by vws14 with SMTP id 14so559969vws.13 for ; Sat, 27 Feb 2010 13:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ESYn9YujuZy9P7RMHyprQ6TN3I7A0ZeX0ynLlbRx4wA=; b=I8gOaeMA9yx0Js6nLjPdcCHG6ewJQIPDKIFYa3e/t5pjE/EdEMb/DP0RcWSslR/fz/ j7XfFULucoyzCxEEyQu3OllKkc5QjMWopmBchp8qObDNg5rVB4z0dP5WBMWbYxMOL5+Q FDvLLQ9Styg5jughMnYhNpy7gffmH9PvCjCGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=bQHSziFMbX8o3tSJdj2MTUCd2bMDOcnrgCp0+8G/dnWb0K5PORfz5YcAvWvtkTQQBJ x9rLcxvOXZ++5pekbzZ5U0NPLUj9EgHRuhzAjM09MWTMWPcOH6gXMvIJTNEE2PIMeLp7 VdGJJfsHn07L3F1W3511pn5YZxFMJChp7d/VQ= Received: by 10.220.123.92 with SMTP id o28mr1658968vcr.116.1267306119714; Sat, 27 Feb 2010 13:28:39 -0800 (PST) Received: from Faptop.local (c-66-31-201-186.hsd1.ma.comcast.net [66.31.201.186]) by mx.google.com with ESMTPS id 22sm13997484vws.14.2010.02.27.13.28.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Feb 2010 13:28:38 -0800 (PST) Message-ID: <4B898E84.1040200@gmail.com> Date: Sat, 27 Feb 2010 16:28:36 -0500 From: Alexander Bakst User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 MIME-Version: 1.0 To: Andreas Tobler References: <4B8984BF.5080607@oracle.com> <4B898D00.9030706@fgznet.ch> In-Reply-To: <4B898D00.9030706@fgznet.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Fan/Power controls 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, 27 Feb 2010 21:28:50 -0000 (Switched my non-work e-mail) Well, I actually am using a fancy apple G5 - I belive it is a power 970fx, not sure though. I'm not even sure how to check the current clock frequency of my cpu. To be honest, it would be fantastic if it weren't running at the highest speed, since I would like to save power. I don't know if the kernel will tell the cpu to snooze/nap. Thanks, Alexander dmesg output: Copyright (c) 1992-2010 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 #314 r204309:204312M: Thu Feb 25 09:28:38 CST 2010 root@comporellon.tachypleus.net:/usr/obj/powerpc/usr/src/sys/GENERIC powerpc cpu0: IBM PowerPC 970FX revision 3.0, 2000.36 MHz cpu0: Features dc000000 cpu0: HID0 511081 real memory = 1060220928 (1011 MB) avail memory = 986472448 (940 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0: dev=ff899e08 (BSP) cpu1: dev=ff89b2e8 ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware 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 pcib0: on nexus0 pci0: on pcib0 vgapci0: port 0x400-0x4ff mem 0xa0000000-0xafffffff,0x90000000-0x9000ffff irq 48 at device 16.0 on pci0 cpcht0: on nexus0 pcib1: on cpcht0 pci1: on pcib1 macio0: mem 0x80000000-0x8007ffff at device 7.0 on pci1 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 22,5,6,23,7,8 on macio0 scc0: [FILTER] scc0: [FILTER] uart0: on scc0 uart0: [FILTER] uart1: on scc0 uart1: [FILTER] iichb0: mem 0x18000-0x18fff irq 26 on macio0 iichb0: [ITHREAD] iicbus0: on iichb0 iicbus0: at addr 0x1c0 iicbus0: at addr 0x6a pmu0: mem 0x16000-0x17fff irq 25 on macio0 ohci0: mem 0x80081000-0x80081fff irq 27 at device 8.0 on pci1 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: mem 0x80080000-0x80080fff irq 28 at device 9.0 on pci1 ohci1: [ITHREAD] usbus1: on ohci1 pcib2: on cpcht0 pci2: on pcib2 ohci2: mem 0x80702000-0x80702fff irq 63 at device 11.0 on pci2 ohci2: [ITHREAD] usbus2: on ohci2 ohci3: mem 0x80701000-0x80701fff irq 63 at device 11.1 on pci2 ohci3: [ITHREAD] usbus3: on ohci3 ehci0: mem 0x80700000-0x807000ff irq 63 at device 11.2 on pci2 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: on ehci0 pcib3: on cpcht0 pci3: on pcib3 ata0: mem 0x80104000-0x80107fff irq 39 at device 13.0 on pci3 ata0: [ITHREAD] fwohci0: <1394 Open Host Controller Interface> mem 0x80100000-0x80100fff irq 40 at device 14.0 on pci3 fwohci0: [ITHREAD] fwohci0: OHCI version 1.0 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:0d:93:ff:fe:62:62:7c 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:62:62:7c fwe0: Ethernet address: 02:0d:93:62:62:7c sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=2, CYCLEMASTER mode pcib4: on cpcht0 pci4: on pcib4 gem0: mem 0x80400000-0x805fffff irq 41 at device 15.0 on pci4 miibus0: on gem0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto gem0: 10kB RX FIFO, 4kB TX FIFO gem0: Ethernet address: 00:0d:93:62:62:7c gem0: [ITHREAD] pcib5: on cpcht0 pci5: on pcib5 atapci0: mem 0x80600000-0x80601fff irq 0 at device 12.0 on pci5 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] atapci1: at device 12.1 on pci5 atapci1: unable to map interrupt device_attach: atapci1 attach returned 6 sc0: on nexus0 sc0: Unknown <16 virtual consoles, flags=0x300> Timecounter "decrementer" frequency 33333333 Hz quality 0 Timecounters tick every 10.000 msec firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 usbus4: 480Mbps High Speed USB v2.0 ugen4.1: at usbus4 uhub4: on usbus4 uhub0: 2 ports with 2 removable, self powered acd0: DVDR at ata0-master UDMA66 uhub1: 2 ports with 2 removable, self powered ad0: 152627MB at ata2-master UDMA100 SATA 1.5Gb/s uhub2: 3 ports with 3 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 5 ports with 5 removable, self powered ugen4.2: at usbus4 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x0000 SMP: AP CPU #1 launched Root mount waiting for: usbus4 umass0:1:0:-1: Attached to scbus1d a0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: < 2090E 5.00> Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 249MB (509952 512 byte sectors: 64H 32S/T 249C) (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Trying to mount root from ufs:/dev/ad0s3 GEOM_PART: Partition 'ad0s4' not suitable for kernel dumps (wrong type?) ugen2.2: at usbus2 uhub5: on usbus2 uhub5: 4 ports with 4 removable, bus powered ugen2.3: at usbus2 ukbd0: on usbus2 kbd1 at ukbd0 ugen2.4: at usbus2 ums0: on usbus2 ums0: 1 buttons and [XY] coordinates ID=0 gem0: link state changed to DOWN gem0: link state changed to UP gem0: link state changed to DOWN gem0: link state changed to UP On 2/27/10 4:22 PM, Andreas Tobler wrote: > Hi Alexander, > > On 27.02.10 21:46, Alexander Bakst wrote: > >> I just set up a system running a recent kernel on a G5 7,3: >> >> [abakst@ ~/ddclient-3.7.3]$ uname -a >> FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #314 r204309:204312M: Thu Feb >> 25 09:28:38 CST 2010 >> root@comporellon.tachypleus.net:/usr/obj/powerpc/usr/src/sys/GENERIC >> powerpc >> >> I think fan controls are supposed to be enabled for this version, but my >> machine still sounds like a jet engine. Is there a way to check if >> thermal management is supported? And if it is, how do I tell it to 'go'? >> I assume that acpi and apm related documentation isn't relevant on the >> ppc platform. > > I guess your machine belongs to the category of mine, a plain old > IBM970. No FX, right? > > You can check your /var/log/messages and see if there is an entry > about 'smu'. If not, then you're lost at the moment. The fan > management support for these machines is lacking atm. Only the newer > machines (G5) which have an IBM970FX/MP have support for a simple fan > management. > > I even guess your CPU clock is not running at its highest speed, right? > > Would be great if you could post your dmesg. > > Thanks, > Andreas