Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2016 10:23:35 -0600
From:      Justin Hibbits <jrh29@alumni.cwru.edu>
To:        Xavier HILAIRE <xavier.hilaire@gmail.com>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: On-die temperatures not reported on a Powermac dual G5
Message-ID:  <CAHSQbTB1_MjCRXwu8CfSZLXJFvpT8WLtDMHcvw5WO4Ym9JCFtg@mail.gmail.com>
In-Reply-To: <56AA9AE7.6030402@gmail.com>
References:  <56AA9AE7.6030402@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 28, 2016 at 4:49 PM, Xavier HILAIRE
<xavier.hilaire@gmail.com> wrote:
> Hi,
>
> I recently got an old Powermac dual G5 on which I installed both FreeBSD
> 10.2 and Linux (Debian, jessie).
>
> After booting FreeBSD I noticed the fans were running at an unusual low
> speed given the CPU-intensive work I was doing (recompile some ports + X11
> drivers). A sysctl -a | grep temp showed the following:
>
>> net.inet6.ip6.use_tempaddr: 0
>> net.inet6.ip6.temppltime: 86400
>> net.inet6.ip6.tempvltime: 604800
>> net.inet6.ip6.prefer_tempaddr: 0
>> hw.usb.template: 0
>> dev.ad7417.1.sensor.cpu_b_ad7417_amb.temp: 31.0C
>> dev.ad7417.0.sensor.cpu_a_ad7417_amb.temp: 33.2C
>> dev.ds1631.0.sensor.mlb_inlet_amb.temp: 22.2C
>> dev.ds1631.0.%pnpinfo: name=temp-monitor compat=ds1631
>> dev.max6690.0.sensor.u3_heatsink.temp: 63.0C
>> dev.max6690.0.sensor.backside.temp: 35.3C
>> dev.max6690.0.%pnpinfo: name=temp-monitor compat=max6690
>> dev.ds1775.0.sensor.drive_bay.temp: 21.0C
>> dev.ds1775.0.%pnpinfo: name=temp-monitor compat=ds1775
>> x
>
>
>
> The only two available temperatures related to the CPUs seem to be those
> reported by the AD7417 supply monitor's sensors, and there is *no*
> temperature reported from the on-die sensors at all.
<snip linux output for brevity>
>
> This is weird, because a "sysctl -a | grep smu" does not report anything,
> while the kernel *does* include the smu driver, and temperature sensors are
> normally attached to this device AFAIK.

Not in your case.  The SMU isn't used until the last generation or two
of G5.  The PowerMac7,2 generation, which you have, puts all the
sensors on the ad7417.

>
> I would *love* using FreeBSD again (rather than Linux, for compatibility
> reasons). But my code is CPU intensive and relies a lot on Altivec, I
> wouldn't want to fire my everything...
>
> The machine is an M9032LL/A according to Apple's specs:
> https://support.apple.com/kb/sp96?locale=en_US
>
>
> Any help will be greatly appreciated.
>
> Thanks,
>
> Xavier

Can you post (attach) the output of 'ofwdump -ap'?  There's a comment
in the Linux driver for ad7417 stating that sometimes some of the
sensors aren't listed in the device tree.  If that's the case for you,
we'll need to special case for it.

- Justin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTB1_MjCRXwu8CfSZLXJFvpT8WLtDMHcvw5WO4Ym9JCFtg>