From owner-freebsd-ppc@freebsd.org Fri Jan 29 16:23:37 2016 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00AC6A71915 for ; Fri, 29 Jan 2016 16:23:37 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B815211D1 for ; Fri, 29 Jan 2016 16:23:36 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-oi0-x232.google.com with SMTP id r14so50239619oie.0 for ; Fri, 29 Jan 2016 08:23:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LWb9X2b1uWYckyO4m0NY5nrvAe5wvfpvfGjvXnh0cHM=; b=cuHy/C9X+vXEai+WTAK519jTJdAfiWoOD7M1f3qVqQV5PXUC/Pfzm8e3MRYsLQb1t3 wqoU0lmekw4Br84WEkouYQ4G6b+iYbfLvUaJGPjJpT2JgmA1JrXpnXZ7q1OAtlhuahhi j+G6GwWrJiaRoZHBQ5RWZdT4QHQspGWS9aUvkGjCQ0aLeh3FN1zMrHl2CGbeU2WJhGdf K1sUpKg6zljiI2d5AnfZs6qiuMW74n1V45InYaT8y4XrXGe/31Mse6mYNOfK4CWAfZH3 fmhxJ9PRXWBiADRhLSlcIQNFAzDy6x6y4rl6llLwAMgSsp77ccxnQZFeVXVX2bvqnxYS poBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alumni-cwru-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LWb9X2b1uWYckyO4m0NY5nrvAe5wvfpvfGjvXnh0cHM=; b=igQMiIBt1rnDuO+u4KspRxklGVTrdR6pEUts+WFV6fxNUve22V0rduCgx40vNQ8sha x46Zse1WplTwoIxfyJ9gjQmd3XI5JZ6Xj2AY/4/VvwS1qNXamTazpfGcYcFZP5MywFoR ZyUv6tzmW++xjjjc7hSlZwswkc9hbZNdTq7UtfNY+rJ+oq8V2v79uu2SXcouwF66d61H r5Mcq0NEOVvD9aFjGsxJ7kIL1cPWjW3TM5eLkM21OmwyXecGT/nVqZFnVukLmqaJBC55 G0K9IGVKiRmqR2FAaJAI+6APDtUWrVv8yrisytslC6JltiOZ/GdgYgDbWfVS4BJe4vo2 Qj7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=LWb9X2b1uWYckyO4m0NY5nrvAe5wvfpvfGjvXnh0cHM=; b=BWFgjsMD7Vm7EYoM0tyKhwyD9OnYGtPWZIAq47BevIE88WkmurmDPjJaEb9nmNc6Ww vFzqEaksgCV4FunoisfQiBmpJn3N2taQFOulHqqkzQ890uYm6PgZlr9b+KBB+bSEt6Zk GDPJ+7okkcjxuynyWXfys60+lBxgt7/x5NRS5EqGDFi8MBNqj4n564PqZFlqbU78S/I8 /ld5+6Jv2tJhz0BGUoyjL18SkSTus+z/T306UV9jkPzWbSq04YVh++ePWmWafrgYNon3 CL+47gqtNKq7bY4GcFsT/9ylRwaRUFCh5P+wTb48eC5/eiAdMyHbp9EBTnvrozVoT9ZO w8DQ== X-Gm-Message-State: AG10YOQYSSbTtfG1s/wOBQZmWNCpz9BFpCJmBA4QQkr0C3MHol38hw4TScmh2Mo6TyttrNNp9SxTZBgLHHqVJQ== MIME-Version: 1.0 X-Received: by 10.202.213.78 with SMTP id m75mr7160805oig.56.1454084615940; Fri, 29 Jan 2016 08:23:35 -0800 (PST) Sender: chmeeedalf@gmail.com Received: by 10.182.74.101 with HTTP; Fri, 29 Jan 2016 08:23:35 -0800 (PST) In-Reply-To: <56AA9AE7.6030402@gmail.com> References: <56AA9AE7.6030402@gmail.com> Date: Fri, 29 Jan 2016 10:23:35 -0600 X-Google-Sender-Auth: jOjRKD2BVoUOLkvG9GVHZGmcxdM Message-ID: Subject: Re: On-die temperatures not reported on a Powermac dual G5 From: Justin Hibbits To: Xavier HILAIRE Cc: FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2016 16:23:37 -0000 On Thu, Jan 28, 2016 at 4:49 PM, Xavier HILAIRE 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. > > 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