From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 20 19:14:57 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 36E36106564A for ; Sun, 20 Mar 2011 19:14:57 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id E78AD8FC0A for ; Sun, 20 Mar 2011 19:14:56 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from terra-smin.broadpark.no ([80.202.8.13]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LID0055OESVXHA0@thalia-smout.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 20 Mar 2011 20:14:55 +0100 (CET) Received: from kg-v2.kg4.no ([84.48.120.215]) by terra-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with SMTP id <0LID008QIESVM0I0@terra-smin.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 20 Mar 2011 20:14:55 +0100 (CET) Date: Sun, 20 Mar 2011 20:14:55 +0100 From: Torfinn Ingolfsen To: freebsd-ppc@freebsd.org Message-id: <20110320201455.e249ebea.torfinn.ingolfsen@broadpark.no> In-reply-to: <4D7BAA4E.4070908@freebsd.org> References: <20110312151608.b3240f3d.torfinn.ingolfsen@broadpark.no> <4D7BAA4E.4070908@freebsd.org> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: PowerMac G5 Quad - fan control? 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: Sun, 20 Mar 2011 19:14:57 -0000 On Sat, 12 Mar 2011 11:15:58 -0600 Nathan Whitehorn wrote: > Different G5 models have different thermal regulation schemes. On the > PCI-Express-based systems (e.g. the Quad), CPU temperatures are read out > by the smusat driver, and fan control is done by the smu driver. I wrote > a small daemon to manage fans on my dual-core G5 that you may want to > adapt that can be found at > http://people.freebsd.org/~nwhitehorn/powermac112-fancontrol.c I notice that my quad machine has more temperature sensors than your machine: root@kg-g5# alias temp temp='sysctl dev.smusat.0.cpu_a0_diode_temp;sysctl dev.smusat.0.cpu_a1_diode_temp;sysctl dev.smusat.1.cpu_b0_diode_temp;sysctl dev.smusat.1.cpu_b1_diode_temp' root@kg-g5# temp dev.smusat.0.cpu_a0_diode_temp: 52 dev.smusat.0.cpu_a1_diode_temp: 61 dev.smusat.1.cpu_b0_diode_temp: 61 dev.smusat.1.cpu_b1_diode_temp: 62 I wonder if there is one set for the first cpu ("a") and one set for the other ("b")? And if I should modify the fan control program to take that into account. The question then is what to do with the "backside" and "expansion_slots_intake" fans, since they aren't linked to a cpu. Ok, I really don't know if the "drive_bay_a_intake" fan is linked to a cpu either. Thoughts? -- Torfinn