From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 21:35:44 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7FC41A1 for ; Sun, 28 Oct 2012 21:35:44 +0000 (UTC) (envelope-from michael@kryptos-security.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 83D358FC0A for ; Sun, 28 Oct 2012 21:35:44 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so5839343vcb.13 for ; Sun, 28 Oct 2012 14:35:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=cACMPTdUqGReU6rxphR+75rkkH5mkqGRmMBgSqt220s=; b=gTMfOZ/6+uQW/WBrhQchGksm3QHbazBmhRquckimPOm8X9qzwpRtb1a1ihoZgbR22c vVf8InW4xuNOJJv+55B1uIuKqzr7Hg6OLQt4JI0HULZ/f7jizJzfR5WYhlTbbZBX3XDs Xat6ZhU0MBElPREPWFrHBP4WIkG7lCVtldo/aUvKWUlvNyVqWgVtepUyEABv3rfgSuwZ vVBUzx+rtKfveiO7+euL77ylnXeP9UCkzztX3eaF8zExpSKNAzG7DiGo8d1p9h9PlSmE Ru2XJ4R0xQkU5Ac05IJ0ujeycVkhjvfSkPM8dL9aj3fJO/teA4JrO0IeLXaPa0TDp5Dp pvVw== MIME-Version: 1.0 Received: by 10.59.8.133 with SMTP id dk5mr50791252ved.19.1351460142818; Sun, 28 Oct 2012 14:35:42 -0700 (PDT) Received: by 10.58.252.199 with HTTP; Sun, 28 Oct 2012 14:35:42 -0700 (PDT) X-Originating-IP: [98.231.6.79] In-Reply-To: References: Date: Sun, 28 Oct 2012 17:35:42 -0400 Message-ID: Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 From: Michael Copeland To: Nathan Whitehorn , freebsd-ppc@freebsd.org X-Gm-Message-State: ALoCoQkznVAnM6DE6ho1rj8n3NhL5QuGeVJVHouIm1KLS0UkZT3W+9NzBoGp+sj47P5wNMbdQ/xm Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 21:35:45 -0000 On Sun, Oct 28, 2012 at 5:24 PM, Nathan Whitehorn wrote: > > > On Sun, 28 Oct 2012, Michael Copeland wrote: > > >> >> On Sun, Oct 28, 2012 at 3:50 PM, Nathan Whitehorn >> wrote: >> >> >> On Sun, 28 Oct 2012, Michael Copeland wrote: >> >> >> >> On Sun, Oct 28, 2012 at 3:42 PM, Nathan Whitehorn < >> nwhitehorn@freebsd.org> wrote: >> It should work fine (it does on my desktop, which is a >> G5 of the same model). >> Since I wrote that >> program, fan control has moved to the kernel. The fans >> should be fairly >> quickly responsive (the >> algorithm is quite basic) but should never go to full >> or cause a panic. Which >> release are you >> running? There were some improvements to fan control in >> 9.1. >> -Nathan >> >> On Sun, 28 Oct 2012, Michael Copeland wrote: >> >> Is the fan control disabled by default on a GP dual >> core? Only reason I ask >> is that the fans on spool up under full load, and that >> usually results in a >> panic. >> I did make a rather simple program and associated >> script to control the >> fans, but this happens to result in the fans constantly >> going up and down >> by about 300-400 rpm even while doing something simple >> like portsnap >> extract. I checked the list after doing that, and found >> a thread where >> someone else already did the same thing(a common >> problem of mine, I usually >> try to fix it myself without checking the list). I >> swapped out the program >> written by Nathan, but my results are the same. It DOES >> work, but I was >> only wondering if it's normal for the fan speed to vary >> so often. >> >> Thanks, >> >> Michael >> ______________________________**_________________ >> freebsd-ppc@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@** >> freebsd.org " >> >> Hi Nathan, >> It's 9.1-PRE, from.. 3 days ago. >> The fans, without my app running either spin at the lowest >> rpm, or the fastest. Once >> it's at max rpm, in 5 >> minutes it will panic. >> >> >> >> Interesting -- that should not happen, to say the least. Could you report >> what the panic is and print >> out the contents of the dev.smu and dev.smusat registries? >> >> You can also disable automatic fan control by the sysctl >> machdep.manage_fans (although I'd like to >> find and fix the actual problem here) >> -Nathan >> >> Nothing to report for the panic, the screen isn't refreshed, no dumps >> either, and i do have that enabled >> >> frodoG5# sysctl dev.smu >> dev.smu.0.%desc: Apple System Management Unit >> dev.smu.0.%driver: smu >> dev.smu.0.%pnpinfo: name=smu compat=smu >> dev.smu.0.%parent: nexus0 >> dev.smu.0.fans.drive_bay_a_**intake.minrpm: 1000 >> dev.smu.0.fans.drive_bay_a_**intake.maxrpm: 4000 >> dev.smu.0.fans.drive_bay_a_**intake.rpm: 1060 >> dev.smu.0.fans.backside.**minrpm: 1100 >> dev.smu.0.fans.backside.**maxrpm: 3000 >> dev.smu.0.fans.backside.rpm: 1549 >> dev.smu.0.fans.cpu_a_intake.**minrpm: 485 >> dev.smu.0.fans.cpu_a_intake.**maxrpm: 3200 >> dev.smu.0.fans.cpu_a_intake.**rpm: 624 >> dev.smu.0.fans.cpu_b_intake.**minrpm: 485 >> dev.smu.0.fans.cpu_b_intake.**maxrpm: 3200 >> dev.smu.0.fans.cpu_b_intake.**rpm: 628 >> dev.smu.0.fans.cpu_a_exhaust.**minrpm: 500 >> dev.smu.0.fans.cpu_a_exhaust.**maxrpm: 3200 >> dev.smu.0.fans.cpu_a_exhaust.**rpm: 619 >> dev.smu.0.fans.cpu_b_exhaust.**minrpm: 500 >> dev.smu.0.fans.cpu_b_exhaust.**maxrpm: 3200 >> dev.smu.0.fans.cpu_b_exhaust.**rpm: 605 >> dev.smu.0.fans.expansion_**slots_intake.minrpm: 1560 >> dev.smu.0.fans.expansion_**slots_intake.maxrpm: 4500 >> dev.smu.0.fans.expansion_**slots_intake.rpm: 1618 >> dev.smu.0.sensors.slots_power: 18818 >> dev.smu.0.server_mode: 0 >> frodoG5# sysctl dev.smusat >> dev.smusat.0.%desc: SMU Satellite Sensors >> dev.smusat.0.%driver: smusat >> dev.smusat.0.%location: addr=0xb0 >> dev.smusat.0.%pnpinfo: name=sat compat=smu-sat >> dev.smusat.0.%parent: iicbus2 >> dev.smusat.0.cpu_a0_vcore: 1 >> dev.smusat.0.cpu_a1_vcore: 1 >> dev.smusat.0.cpu_a0_diode_**temp: 43.6C >> dev.smusat.0.cpu_a1_diode_**temp: 43.4C >> dev.smusat.0.cpu_a0_core_**current: 24 >> dev.smusat.0.cpu_a1_core_**current: 20 >> frodoG5# uname -a >> FreeBSD frodoG5 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sun Oct 28 >> 20:21:16 EDT 2012 >> michael@frodoG5:/usr/obj/usr/**src/sys/FRODOG5 powerpc >> >> >> > That all looks in order. Any change you could provide the same from when > the fans are racing? > -Nathan Yeah, I'm getting ready to build something. The output from sysctl was with my app running. If I disable it, the fans will go full tilt on their own after a while, no activity.