From owner-freebsd-ppc@freebsd.org Mon Oct 29 01:49:41 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBAA210EC58B for ; Mon, 29 Oct 2018 01:49:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50AB278DF1 for ; Mon, 29 Oct 2018 01:49:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: MO4gbjQVM1lflihrCSXGnzjIaYJAU262HpGGOgym0XpQ_URPXuP7tzfVcWGAFdR mjPtxLcwP20KyyxcEp1X0TGZ38ONc6GHw5YLVMLFBmAAVpmIszatQWX.Y0i5IqMlAVxX.o3KBw_C tseKOgbuWu8dAPEwxtoi.pS8wbcF9akPTaV.cgc4EUg7JKFTAmGoOLWxmkVWgbKY3YpYFQFnFa4Q WOg9qMMwtV9rLbPQgSMyfHjHTMoXt5Cbj7BsgnLkHsJB.xNWHGy8D6mpkqNbxJ8lIdp3d1btoGJ_ vXZIXrLUK71vykzkuBE_JpLJCX6h92VSRRdYWVEZcLlo8WDfgYo1GJzp5CRxN1pZJd1o88MAgY.O _MSrHPummjCCw.CyAddXDUAVdBdFzGwh3lyn8Id299vQmE_khjsAcK7tMsk65KDBFp0UQvrIJxaQ 3P.j2HVq7FgEnF1GFlUWL2YP6BNSmX0M1levlwsLdYlE6C2L._I8o87EbU6ZcnWsTvyw_GV6rsmF 8H7YhWfyhI0xPUQUaHQeTOirCho.q2R4p5hKXqCdkbphvDaN8Yb55vDwhg86kT7FMR5rlz_9ZnbX sauKjmELi2fayl2docYqcqWTC6K3prZdlA2PhK9s8rlSLqRTl1qumBaZrJwaDEhREZ_kSZNRbQAa Q4dVhtZvwip2fqOvFMtE7bIgiK2J_JTSARj.JP5EJv57nJ6k1zrpH4opEU2FPQjwtbRWoEN8a4Ju VlPN4pR1vxoFpVKRIEyllPDDzcWsi2LLrGdqVeu3h0cMvewLcvXQ9HK6gR83fJFaONotIHmsgdcS aosnlbgS.pFXhCvTlwVfymkIyrGFbQCngwJ2YT39hQl.Oou2AtWAtL6AhZ7AtHifAUZjY9lC3C3s IhT2oESh3pU0x3Ha1gO91be_igs9CdfI.WdNtK2RRNI6RC9I6cUAjHH4j7O7NYlcQKTlc5R6BZko IEAqkmPoVT3GCdhc5zPCUX9hFoNJ2ugaVhpjZZqhfXiZ53zHQYJosKwlH1arExf3UKgs2NZTeSWP .kZYOqQyQ.TMHawgrbId0s1kCYXKaP2FApyOCgDxZt0fI0ev5 Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Mon, 29 Oct 2018 01:49:32 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp412.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 4c97311646bd26cec851415ae355f2f8; Mon, 29 Oct 2018 01:49:29 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: G5 fans From: Mark Millard In-Reply-To: <04166F4E-6EBC-4BF2-8127-AF3A29EBA945@yahoo.com> Date: Sun, 28 Oct 2018 18:49:28 -0700 Cc: freebsd-ppc , Koakuma Content-Transfer-Encoding: quoted-printable Message-Id: References: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.com> <04166F4E-6EBC-4BF2-8127-AF3A29EBA945@yahoo.com> To: Michael Tuexen X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2018 01:49:41 -0000 [I looked on a 7,2 via ofwdump.] On 2018-Oct-28, at 6:10 PM, Mark Millard wrote: > On 2018-Oct-28, at 5:31 PM, Koakuma via freebsd-ppc = wrote: >=20 >> Hi Michael, >>=20 >> The first command failed to run for me. >> 0 > dev u3/i2c/fan can't find device u3/i2c/fan ok >>=20 >> Looking at the output of 'dev / ls', there's several devices named >> "fan" under /smu@0,0/fans@4a00/*, but running the " .status" command >> on those devices gave me this error: >> 0 > " .status" " /smu@0,0/fans@4a00/fan@0" open-dev $call-method >> Method <.status> not found; ihandle=3Dffb352c0 phandle=3Dff99ee00 >> ok >>=20 >> This is on a PowerMac11,2, 2 GHz "dual-core" model. >=20 > A so-called G5 "Quad Core" suggests something similar > for finding fans when looked at via ofwdump: I probably should have listed: # ofwdump -p / Node 0xff89a7a8: device-tree model: 50 6f 77 65 72 4d 61 63 31 31 2c 32 00=20 'PowerMac11,2' . . . # ofwdump -r /cpus Node 0xff89d3f0: cpus Node 0xff89d680: PowerPC,G5 Node 0xff89db28: l2-cache Node 0xff89eb70: PowerPC,G5 Node 0xff89f070: l2-cache Node 0xff89f248: PowerPC,G5 Node 0xff89f748: l2-cache Node 0xff89f920: PowerPC,G5 Node 0xff89fe20: l2-cache # ofwdump -r /smu/fans | less Node 0xff99f698: fans Node 0xff99fbb0: fan Node 0xff9a04a8: fan Node 0xff9a0d98: fan Node 0xff9a1688: fan Node 0xff9a1f78: fan Node 0xff9a2868: fan Node 0xff9a3158: fan Node 0xff9a3a48: fan And also where fan is not (compared to the 7,2): # ofwdump -r /u4 | less Node 0xff97c040: u4 Node 0xff97c3b8: i2c Node 0xff97cfe0: i2c-bus Node 0xff97d370: temp-monitor Node 0xff97d7e8: temperature Node 0xff97dcb0: temp-monitor Node 0xff97e158: temperature Node 0xff97e448: temp-monitor Node 0xff97eff0: internal-temperature Node 0xff97f258: external-temperature Node 0xff97fbc8: temp-monitor Node 0xff980770: internal-temperature Node 0xff9809d8: external-temperature Node 0xff981348: dart Node 0xff981488: mpic I show the analogous 7,2 /u3 later. > # ofwdump -pr /smu/fans | less > . . . >=20 >=20 >> On Sun Oct 28 22:02:15 UTC 2018, Michael Tuexen >> wrote: >>> Dear all, >>>=20 >>> if you have access to a G5 Powermac, could you provide the output of = the >>> following command from the OpenFirmware prompt: >>>=20 >>> dev u3/i2c/fan >>> " .status" " u3/i2c/fan" open-dev $call-method >>>=20 >>> I'm interested in the RPM channels which are reported as = Failed/Available/Active. >>> Please provide also some information what kind of PowerMac G5 it is. >>>=20 As for what ofwdump reports for a 7,2 dual processor: # ofwdump -p / Node 0xff885330: device-tree model: 50 6f 77 65 72 4d 61 63 37 2c 32 00=20 'PowerMac7,2' . . . # ofwdump -r /cpus Node 0xff887b40: cpus Node 0xff887e10: PowerPC,970 Node 0xff888338: l2-cache Node 0xff889150: PowerPC,970 Node 0xff889678: l2-cache # ofwdump -r /u3 Node 0xff959968: u3 Node 0xff959cb8: i2c Node 0xff95a7f8: i2c-hwclock Node 0xff95afb0: temp-monitor Node 0xff95b7c8: temp-monitor Node 0xff95c318: temp-monitor Node 0xff95ce70: i2c-hwclock Node 0xff95f170: fan Node 0xff9618e0: i2c-cpu-voltage Node 0xff962848: supply-monitor Node 0xff9640e8: cpuid Node 0xff966740: i2c-cpu-voltage Node 0xff9676a8: supply-monitor Node 0xff968f48: cpuid Node 0xff96b5a0: cereal Node 0xff96bd10: dart Node 0xff96beb0: mpic The 11,2's seem to have no equivalent of the above fan but have more like the other 7,2 fan info structure below. # ofwdump -r /ht/pci@3/mac-io/fans Node 0xff983720: fans Node 0xff9839a0: fan Node 0xff983b50: fan Node 0xff983d00: fan Node 0xff983eb0: fan Trying: # ofwdump -pr /u3/i2c/fan | less did not decode much, just name, device_type, compatible, and version. The rest was hex bytes under titles. I'll note that there is some risk in using ofwdump: the CPUs are synchronized/stopped during the use of OpenFirmware and this can time out and crash the box. (The so-called Quad-Core did this while I was looking around.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)