From owner-freebsd-ppc@freebsd.org Sun Oct 28 12:33:52 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 068C410CC9B2 for ; Sun, 28 Oct 2018 12:33:52 +0000 (UTC) (envelope-from koachan@protonmail.com) Received: from mail-40136.protonmail.ch (mail-40136.protonmail.ch [185.70.40.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B9A481671 for ; Sun, 28 Oct 2018 12:33:50 +0000 (UTC) (envelope-from koachan@protonmail.com) Date: Sun, 28 Oct 2018 12:33:38 +0000 To: freebsd-ppc@freebsd.org From: Koakuma Reply-To: Koakuma Subject: Somewhat off topic .. is there a RISC-V project for FreeBSD ? Message-ID: Feedback-ID: vx60_H1LlvJmanXig0QfOhp9v83abB6nMHXt02uALA-NQlyNWqBIpoEjWQ90DxSDCfENqXm1HFsRez1WMA7FOQ==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,HTML_NONELEMENT_30_40 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.protonmail.ch Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sun, 28 Oct 2018 12:33:52 -0000 VGhlcmUncyBhIG1haWxpbmcgbGlzdCBhdCBodHRwczovL2xpc3RzLmZyZWVic2Qub3JnL21haWxt YW4vbGlzdGluZm8vZnJlZWJzZC1yaXNjdi4KCk9uIFNhdCwgMjcgT2N0IDIwMTggMTE6NDUsICB3 cm90ZToKCj4gU29tZXdoYXQgb2ZmIHRvcGljIC4uIGlzIHRoZXJlIGEgUklTQy1WIHByb2plY3Qg Zm9yIEZyZWVCU0QgPwo+Cj4gQWxzbyBhIG1haWxsaXN0ID8KPgo+IERlbm5pcyBDbGFya2U= From owner-freebsd-ppc@freebsd.org Sun Oct 28 15:43:31 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 8283810D67C4 for ; Sun, 28 Oct 2018 15:43:31 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from atl4mhfb03.myregisteredsite.com (atl4mhfb03.myregisteredsite.com [209.17.115.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 194D68A34D for ; Sun, 28 Oct 2018 15:43:30 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from atl4mhob14.registeredsite.com (atl4mhob14.registeredsite.com [209.17.115.52]) by atl4mhfb03.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id w9SFfquV004501 for ; Sun, 28 Oct 2018 11:41:52 -0400 Received: from mailpod.hostingplatform.com (atl4qobmail02pod2.registeredsite.com [10.30.77.36]) by atl4mhob14.registeredsite.com (8.14.4/8.14.4) with ESMTP id w9SFfi3U027556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sun, 28 Oct 2018 11:41:44 -0400 Received: (qmail 31438 invoked by uid 0); 28 Oct 2018 15:41:44 -0000 X-TCPREMOTEIP: 174.118.245.214 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.3?) (dclarke@blastwave.org@174.118.245.214) by 0 with ESMTPA; 28 Oct 2018 15:41:44 -0000 Subject: Re: Somewhat off topic .. is there a RISC-V project for FreeBSD ? To: freebsd-ppc@freebsd.org References: From: Dennis Clarke Message-ID: Date: Sun, 28 Oct 2018 11:41:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Sun, 28 Oct 2018 15:43:31 -0000 On 10/28/2018 08:33 AM, Koakuma via freebsd-ppc wrote: > There's a mailing list at https://lists.freebsd.org/mailman/listinfo/freebsd-riscv. > > On Sat, 27 Oct 2018 11:45, wrote: > >> Somewhat off topic .. is there a RISC-V project for FreeBSD ? >> >> Also a maillist ? yep .. found it .. subscribed. the next step is hardware and various experiments. As for ppc64 I think IBM Power9 is needed to do anything. Ye old PowerMac G5 units are available for a dime a dozen and may work but I really don't know. I have yet to try the installer for FreeBSD 12.0 beta2 but I may give it go later today. Dennis From owner-freebsd-ppc@freebsd.org Sun Oct 28 21:12:25 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 B194010E18D1 for ; Sun, 28 Oct 2018 21:12:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (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 6EB6370C7A for ; Sun, 28 Oct 2018 21:12:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: h93Vr2wVM1nILrpNqjHZO_H25FzFzYAt29a5C3oOLRKHOkGOYSYOjuooc5PW2eP gPIcVm7Jc4USZRihjprpsWbwCcFVaW3qWJ_QcKsBboufewrl5.jjqQ2bboEDZ4IvQSunmR0zxxKX 4BU_B6qLXoELPPu2c3nkGpHfO4GaLTME96xe30owz8Kueoqchv_xgkEBiB63rw.1i4.3mg33Uk5y fduHFwsgIUG2dTNzmb6RG.Tb9xPFSgzw4h1xV.05u9TpzkdbCeZoL57K3xdclGdypwK3qBieqE.V a37WKCmHOZsaYCGocDAKigEh7osn8XaVe6MmCRnoumHnQvJawn1podwWUdITnKQrvCnAoJs7DEfp zZp0tW57ACb6yqlJjknd5WaFs9Ekkev33VziLGEYjIi.ctztwVLCC8YwRn5yVFfl3XZHd1nS3ufP hDSCTuO9JURA.eyYcJHSXQlXOMHd6rvh7P6RZX6n8ipCzfyMushsVmofAA1Jn3dlFKVBzNdzqi3s cc6ht.QuswZQqDRJHW8NMZY3K_2e7_ROMSk2_PmaxnvS9z.jzv9kkTM6_m.5QHd5RKFRuEIXWD5l XcXegIvlb5QqwYXbYnI56znpFO3IXKvNj72axftQ8vJf8x_GqnLkUSXpFW3.OZUiN70PUVK7_o3i rVFkOuUC1yNlC9aVDUzJMS3JjRURV1Tg01OBm6z7BeRdHg9EUudqyvS6cepud.VVBUtakTkg8TGc IpV7TEr1kE.rzSzZOojudct5wEneCtp1TISGLQ6ws.UHWv6Da0U2dj45fCrQ7wzPqpu8QY8gxqDh 2TjRuVy1sGg2AZjer9NwZorG3oOhHhYu3CDOJ4_DDgzFPDZFWzNNVVwYeZNaj_Wf27538bCKpJkW Wb3ytoi8QrnxykaXRYXOkTqd.2tUJGJOD3F0rVZO9fFSXwdYv2Swzp9ln2u.O2zkAYej8ybXjJ.N bUbE6YfLRngVyZOA1Aeyz6VuA5OzJbkbCd4pd0b5fIMRSXV9Juzrz98qSd1y9cnXLcWz8kSOBByd suTy90LogzRM_eu_BzkBvAnmegRdGaOEr Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sun, 28 Oct 2018 21:12:13 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp428.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 74658c05e30e0da52eb67e7efa6f51cc for ; Sun, 28 Oct 2018 21:12:12 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Somewhat off topic .. is there a RISC-V project for FreeBSD ? [powerpc64 notes] Message-Id: Date: Sun, 28 Oct 2018 14:12:11 -0700 To: FreeBSD PowerPC ML 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: Sun, 28 Oct 2018 21:12:26 -0000 Dennis Clarke dclarke at blastwave.org wrote on Sun Oct 28 15:43:31 UTC 2018 : > As for ppc64 I think IBM Power9 is needed to do anything. Ye old > PowerMac G5 units are available for a dime a dozen and may work > but I really don't know. I have yet to try the installer for > FreeBSD 12.0 beta2 but I may give it go later today. I (sometimes) have access to some old PowerMacs, including 3 old G5s (2 being so-called "Quad Core" ones). I'm running a head -r339076 based "Quad Core" currently. The SSD works fine in all 3 G5s for booting FreeBSD and buildworld buildkernel activities --and building ports. [But I experiment with using fairly modern compiler toolchains for such activity and so my context is not normal.] I've no clue if the following notes related to my activities overlaps with anything that you might try. While my test context is PowerMac based, the notes are not specific to PowerMac contexts. FreeBSD support for the powerpc families is via its gcc 4.2.1 related toolchain. System-clang and devel/llvm[67]0 are not ready yet for buildworld buildkernel and installing, booting and using all the results, at least for C++ with thrown exceptions involved in the operation (even if FreeBSD's libgcc_s.so had no problems in the area). Also, the clang/llvm output for kernel .ko files is mismatched vs. what types of relocation the FreeBSD kernel supports. Attempted loads of such .ko files crash the box. (I've no clue which side should be changed for this. I built in a couple of things into the kernels that I use so my basic activity did not require such .ko dynamic loads, even for a clang-based build.) While there is a devel/powerpc64-xtoolchain-gcc (and its devel/powerpc64-binutils and devel/powerpc64-gcc ), FreeBSD's libgcc_s.so has at least one incompleteness in its stack unwind support for C++ exception handing that can lead to __Unwind_RaiseException looping looking at the same stack frame over and over. As far as I can tell this problem is a strictly-FreeBSD-side problem. clang generated code can also hit the problem in libgcc_s.so . One way this may change is if llvm's libunwind gets to the point of being usable for powerpc64 and the like. (This would avoid such parts of libgcc_s.so .) VNET does something via a technique that works when the gcc 4.2.1 toolchain was used. But use of devel/powerpc64-xtoolchain-gcc leads the technique to causing crashes. This is a fairly new discovery. At this point I have no clue what will change or how it will change. This blocks doing a general devel/kyua based test run because it crashes the box. Such points may not mater much if one is not doing buildworld buildkernel activities: For example, lang/gcc8 generated code, when using its own libraries, instead of using the system libgcc_s.so , has C++ exceptions working. -Wl,-rpath=. . . use can be important. system-clang and devel/llvm[67]0 suffer the libgcc_s.so problem for the code they generate. But if one does not need thrown C++ exceptions, building user-code and running the results seems to be otherwise working. The clang problems are more tied to special aspects of buildworld buildkernel . 32-bit powerpc is more tied to gcc 4.2.1 for buildworld buildkernel, in that there is no devel/powerpc-binutils or devel/powerpc-gcc and the clang/llvm problems apply to this context as well. (clang/llvm has made some progress for FreeBSD support in the last couple of years. I used to have a much longer list of known problems, including violations of the ABIs and stack handling that messed up some stack- frame-tied register values.) Looking at list reports, it would seem that some old PowerMac models may boot fine and others may not, both powerpc64 and powerpc . This also seem to vary by the FreeBSD vintage involved. My understanding is that one of the major powerpc family people used to have one or more PowerMac G5's but no longer has access to such. This could limit getting updates for PowerMac issues. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Sun Oct 28 22:02:15 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 5F37B10E2B1D for ; Sun, 28 Oct 2018 22:02:15 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 027F97240D for ; Sun, 28 Oct 2018 22:02:15 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from mb.fritz.box (p57B695F5.dip0.t-ipconnect.de [87.182.149.245]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 0960C721E281E for ; Sun, 28 Oct 2018 23:02:13 +0100 (CET) From: Michael Tuexen Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: G5 fans Message-Id: <3216213D-F6C7-403F-B698-3E06CB61ABBF@freebsd.org> Date: Sun, 28 Oct 2018 23:02:12 +0100 To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3445.100.39) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de 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: Sun, 28 Oct 2018 22:02:15 -0000 Dear all, if you have access to a G5 Powermac, could you provide the output of the following command from the OpenFirmware prompt: dev u3/i2c/fan " .status" " u3/i2c/fan" open-dev $call-method=20 On a PowerMac7,3 having liquid cooling have access to, I get: 0 > dev u3/i2c/fan ok 0 > " .status" " u3/i2c/fan" open-dev $call-method=20 FCU Version: 6.0.1f0 Failed RPM Channel(s): 0=20 Available RPM Channel(s): 0 1 2 3 4 5 6=20 Active RPM Channel(s): 1 2 3 4 5 6=20 Failed PWM Channel(s): None Available PWM Channel(s): 1 2=20 Active PWM Channel(s): 1 2=20 Processor A Intake Fan (RPM3): 1449 RPM Processor A Exhaust Fan (RPM4): 1497 RPM Processor B Intake Fan (RPM5): 1452 RPM Processor B Exhaust Fan (RPM6): 1501 RPM U3 Zone Fan (PWM1): 1878 RPM PCI Zone Fan (PWM2): 1830 RPM Drive Bay Fan (RPM2): 1498 RPM ok 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. Thanks for your help. Best regards Michael= From owner-freebsd-ppc@freebsd.org Mon Oct 29 00:31:23 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 E1F0F10EAC90 for ; Mon, 29 Oct 2018 00:31:23 +0000 (UTC) (envelope-from koachan@protonmail.com) Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8113C76B94 for ; Mon, 29 Oct 2018 00:31:23 +0000 (UTC) (envelope-from koachan@protonmail.com) Date: Mon, 29 Oct 2018 00:31:08 +0000 To: freebsd-ppc From: Koakuma Reply-To: Koakuma Subject: Re: G5 fans Message-ID: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.com> Feedback-ID: vx60_H1LlvJmanXig0QfOhp9v83abB6nMHXt02uALA-NQlyNWqBIpoEjWQ90DxSDCfENqXm1HFsRez1WMA7FOQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.protonmail.ch 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 00:31:24 -0000 Hi Michael, The first command failed to run for me. 0 > dev u3/i2c/fan can't find device u3/i2c/fan ok 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 This is on a PowerMac11,2, 2 GHz "dual-core" model. On Sun Oct 28 22:02:15 UTC 2018, Michael Tuexen=C2=A0 wrote: > Dear all, > > if you have access to a G5 Powermac, could you provide the output of the > following command from the OpenFirmware prompt: > > dev u3/i2c/fan > " .status" " u3/i2c/fan" open-dev $call-method > > 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. > > Thanks for your help. > > Best regards > Michael From owner-freebsd-ppc@freebsd.org Mon Oct 29 01:10:17 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 AC49F10EBBF3 for ; Mon, 29 Oct 2018 01:10:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-22.consmr.mail.bf2.yahoo.com (sonic312-22.consmr.mail.bf2.yahoo.com [74.6.128.84]) (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 4E15977C23 for ; Mon, 29 Oct 2018 01:10:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: BYAOHrgVM1mDaBRFh3XvEDgeDgcmpqApens83R5ytqCcvbK7gia6bTCwg6HiNEY sXroRcAf2unJBkD6lMfG0qb4zusXGqk6VVhVPC1Nig_2rbN3o8VhB8EUedi34GuD71jpaB287n6q OnfsZHoGykd3_JI555m2I8Gc3Ci9fNtcgwKVpeJavkb0bZPdf_aZhNvgazXEhpEbnWC6_zkSpoj. oEv0__iG96aUIug1a3Ialjp7_nDVO8DNiyFNReA0xXLXNPxDIJWdMquBr1tQQ6rYIQshSoTEwFu5 .W9rQl60NWKrZLku42zWfEtWJTd17CxYjAZE6eetoyN.PfT0DEOs3TADpaSTF05TercIeHOXHB4b rhL1L8u0HwntyK7aCpsuyWzf..FD0Dbe83woPXwGdpVba_ocNVZe.IDx7ph6BBt7aRNUy3egxDzL zX1JS6vVVQpkyahPmeXF3dh0CgljwI_OknoVPXNSkrXgv9aEnLUzEAUlNw.K5Qxo1Wyx6Qwhicce 8eJYZQyOrw6dBwtj7aq6UhrSXlPNE2GJk63LKzreeEKdigJmkEyfHKMc6TAQrQl_Liqb2DVep4CQ kRi0jmCYXu41qpxSLpylJOMNj0b7weFzXRQuJUzipOwhkX1hcGn1LFNxcqqIKJyS9Q75GyShaq08 6FWNfIgZUZcTVgQulC_QCBwABeWOgTjvY4VUpgIwRe4I7n1q5hldqjzoIlqXoXbVrbbHgvheOoyO GyPTouJcQGGh4T.hJV7Tw4Ao_6OfEFcYFS7ckD11q5.1IeOVpxv9HJXGmyLn8bHyshMwPG2alMiv sTY9e4_gfAmKyWITRTx6w9pGTtrMXra3vBHZU09IRh1l_7w2pMvjNqHmKpjujGks7PCIUorUuxxC IJ.9jNTj83I4cThdps7FKp99FQThh.E8E.Try5vdpZDnL4D4IdY_SlD07E.6ajwLn1Z3bfuWji8w kaoKzF19i3a_aFSu0.fu8OzHB1tDvlgAfeck4i4aDar52XiKwXHCUd2zimbY6pbfNBlKxGtbxb0P OXqBpWoSeoA7chq4TChuQ8fzSzulsrCX8Sm7Dat5S7HHe5HTP Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Mon, 29 Oct 2018 01:10:11 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp430.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 4c8b4578280502dcf8080752196944f5; Mon, 29 Oct 2018 01:10:09 +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: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.com> Date: Sun, 28 Oct 2018 18:10:06 -0700 Cc: freebsd-ppc , Koakuma Content-Transfer-Encoding: quoted-printable Message-Id: <04166F4E-6EBC-4BF2-8127-AF3A29EBA945@yahoo.com> References: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.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:10:17 -0000 On 2018-Oct-28, at 5:31 PM, Koakuma via freebsd-ppc = wrote: > 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. A so-called G5 "Quad Core" suggests something similar for finding fans when looked at via ofwdump: # ofwdump -pr /smu/fans | less Node 0xff99f698: fans name: 66 61 6e 73 00=20 'fans' device_type: 6d 6f 74 6f 72 2d 63 6f 6e 74 72 6f 6c 00=20 'motor-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 73 00 73 6d 75 2d 66 61 6e=20 73 00=20 reg: 00 00 4a 00=20 built-in: hwsensor-params-version: 00 00 00 02=20 zone: 00 00 00 00=20 #size-cells: 00 00 00 00=20 #address-cells: 00 00 00 01=20 Node 0xff99fbb0: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 00=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 00=20 location: 44 52 49 56 45 20 42 41 59 20 41 20 49 4e 54 41 4b 45 00=20 'DRIVE BAY A INTAKE' min-value: 00 00 03 e8=20 max-value: 00 00 0f a0=20 unmanage-value: 00 00 0f a0=20 init-value: 00 00 03 e8=20 safe-value: 00 00 ff ff=20 zone: 00 00 00 01=20 motor-type: 00 00 00 00=20 Node 0xff9a04a8: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 01=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 01=20 location: 42 41 43 4b 53 49 44 45 00=20 'BACKSIDE' min-value: 00 00 04 4c=20 max-value: 00 00 0b b8=20 unmanage-value: 00 00 0b b8=20 init-value: 00 00 04 4c=20 safe-value: 00 00 ff ff=20 zone: 00 00 00 04=20 motor-type: 00 00 00 00=20 Node 0xff9a0d98: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 02=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 02=20 location: 43 50 55 20 41 20 49 4e 54 41 4b 45 00=20 'CPU A INTAKE' min-value: 00 00 01 e5=20 max-value: 00 00 0c 80=20 unmanage-value: 00 00 0c 80=20 init-value: 00 00 05 af=20 safe-value: 00 00 01 2c=20 zone: 00 00 00 00=20 motor-type: 00 00 00 00=20 Node 0xff9a1688: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 03=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 03=20 location: 43 50 55 20 42 20 49 4e 54 41 4b 45 00=20 'CPU B INTAKE' min-value: 00 00 01 e5=20 max-value: 00 00 0c 80=20 unmanage-value: 00 00 0c 80=20 init-value: 00 00 05 af=20 safe-value: 00 00 01 2c=20 zone: 00 00 00 00=20 motor-type: 00 00 00 00=20 Node 0xff9a1f78: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 04=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 04=20 location: 43 50 55 20 41 20 45 58 48 41 55 53 54 00=20 'CPU A EXHAUST' min-value: 00 00 01 f4=20 max-value: 00 00 0c 80=20 unmanage-value: 00 00 0c 80=20 init-value: 00 00 05 dc=20 safe-value: 00 00 0c 80=20 zone: 00 00 00 00=20 motor-type: 00 00 00 00=20 Node 0xff9a2868: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 05=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 05=20 location: 43 50 55 20 42 20 45 58 48 41 55 53 54 00=20 'CPU B EXHAUST' min-value: 00 00 01 f4=20 max-value: 00 00 0c 80=20 unmanage-value: 00 00 0c 80=20 init-value: 00 00 05 dc=20 safe-value: 00 00 0c 80=20 zone: 00 00 00 00=20 motor-type: 00 00 00 00=20 Node 0xff9a3158: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 06=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 06=20 location: 43 50 55 20 41 20 50 55 4d 50 00=20 'CPU A PUMP' min-value: 00 00 04 e2=20 max-value: 00 00 0e 10=20 unmanage-value: 00 00 0e 10=20 init-value: 00 00 0e 10=20 safe-value: 00 00 ff ff=20 zone: 00 00 00 00=20 motor-type: 00 00 00 01=20 Node 0xff9a3a48: fan name: 66 61 6e 00=20 'fan' device_type: 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 'fan-rpm-control' compatible: 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 66 61 6e 00=20 reg: 00 00 00 08=20 built-in: version: 00 00 00 02=20 control-id: 00 00 00 08=20 location: 45 58 50 41 4e 53 49 4f 4e 20 53 4c 4f 54 53 20 49 4e 54 41=20 4b 45 00=20 'EXPANSION SLOTS INTAKE' min-value: 00 00 06 18=20 max-value: 00 00 11 94=20 unmanage-value: 00 00 11 94=20 init-value: 00 00 06 18=20 safe-value: 00 00 03 e8=20 zone: 00 00 00 02=20 motor-type: 00 00 00 00=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 >> Thanks for your help. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) 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) From owner-freebsd-ppc@freebsd.org Mon Oct 29 18:37:44 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 B0FE810E2B3D for ; Mon, 29 Oct 2018 18:37:44 +0000 (UTC) (envelope-from tuexen@fh-muenster.de) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47BAA7CE4E for ; Mon, 29 Oct 2018 18:37:43 +0000 (UTC) (envelope-from tuexen@fh-muenster.de) Received: from [IPv6:2003:cd:6f29:a600:8da7:4482:a128:d968] (p200300CD6F29A6008DA74482A128D968.dip0.t-ipconnect.de [IPv6:2003:cd:6f29:a600:8da7:4482:a128:d968]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 92B1F721E281A; Mon, 29 Oct 2018 19:37:34 +0100 (CET) From: Michael Tuexen Message-Id: <3959D4D2-4E07-48A9-8AEA-9080724565ED@fh-muenster.de> Content-Type: multipart/signed; boundary="Apple-Mail=_496D57BA-1E51-4E88-8555-89F42AB992F9"; protocol="application/pkcs7-signature"; micalg=sha-256 Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: G5 fans Date: Mon, 29 Oct 2018 19:37:33 +0100 In-Reply-To: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.com> Cc: freebsd-ppc To: Koakuma References: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.com> X-Mailer: Apple Mail (2.3445.100.39) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de 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 18:37:44 -0000 --Apple-Mail=_496D57BA-1E51-4E88-8555-89F42AB992F9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 29. Oct 2018, at 01:31, 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. OK. Could you try to run " .status" " /smu@0,0/fans@4a00/fan@0" open-dev $call-method in /smu@0,0/fans@4a00 I was testing on PowerMac7,2 and PowerMac7,3. Best regards Michael >=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 >> Thanks for your help. >>=20 >> Best regards >> Michael >=20 > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" --Apple-Mail=_496D57BA-1E51-4E88-8555-89F42AB992F9 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCEJAw ggTVMIIDvaADAgECAghQTsb1PRG0ZDANBgkqhkiG9w0BAQsFADBxMQswCQYDVQQGEwJERTEcMBoG A1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2VjIFRydXN0IENlbnRl cjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENBIDIwHhcNMTQwNzIyMTIwODI2WhcN MTkwNzA5MjM1OTAwWjBaMQswCQYDVQQGEwJERTETMBEGA1UEChMKREZOLVZlcmVpbjEQMA4GA1UE CxMHREZOLVBLSTEkMCIGA1UEAxMbREZOLVZlcmVpbiBQQ0EgR2xvYmFsIC0gRzAxMIIBIjANBgkq hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6ZvDZ4X5Da71jVTDllA1PWLpbkztlNcAW5UidNQg6zSP 1uzAMQQLmYHiphTSUqAoI4SLdIkEXlvg4njBeMsWyyg1OXstkEXQ7aAAeny/Sg4bAMOG6VwrMRF7 DPOCJEOMHDiLamgAmu7cT3ir0sYTm3at7t4m6O8Br3QPwQmi9mvOvdPNFDBP9eXjpMhim4IaAycw DQJlYE3t0QkjKpY1WCfTdsZxtpAdxO3/NYZ9bzOz2w/FEcKKg6GUXUFr2NIQ9Uz9ylGs2b3vkoO7 2uuLFlZWQ8/h1RM9ph8nMM1JVNvJEzSacXXFbOqnC5j5IZ0nrz6jOTlIaoytyZn7wxLyvQIDAQAB o4IBhjCCAYIwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRJt8bP6D0ff+pEexMp9/EKcD7eZDAf BgNVHSMEGDAWgBQxw3kbuvVT1xfgiXotF2wKsyudMzASBgNVHRMBAf8ECDAGAQH/AgEC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JkcmhlaW4tV2VzdGZhbGVuMREwDwYDVQQHEwhNdWVuc3RlcjEg MB4GA1UEChMXRmFjaGhvY2hzY2h1bGUgTXVlbnN0ZXIxIzAhBgNVBAsTGkRhdGVudmVyYXJiZWl0 dW5nc3plbnRyYWxlMR0wGwYDVQQDExRGSCBNdWVuc3RlciBDQSAtIEcwMTEgMB4GCSqGSIb3DQEJ ARYRY2FAZmgtbXVlbnN0ZXIuZGUCBxuZiHQ3saMwgeUGCyqGSIb3DQEJEAILMYHVoIHSMIHGMQsw CQYDVQQGEwJERTEcMBoGA1UECBMTTm9yZHJoZWluLVdlc3RmYWxlbjERMA8GA1UEBxMITXVlbnN0 ZXIxIDAeBgNVBAoTF0ZhY2hob2Noc2NodWxlIE11ZW5zdGVyMSMwIQYDVQQLExpEYXRlbnZlcmFy YmVpdHVuZ3N6ZW50cmFsZTEdMBsGA1UEAxMURkggTXVlbnN0ZXIgQ0EgLSBHMDExIDAeBgkqhkiG 9w0BCQEWEWNhQGZoLW11ZW5zdGVyLmRlAgcbmYh0N7GjMA0GCSqGSIb3DQEBAQUABIIBAFLZQI2U ALWFjBS0wHnPM9WgPoKd0Fqq1DasoUdvWmhGzSMf4bzusUnT0r7uQrSVL4400NV/iB/wudFlCzLv aSO3reK3JsOWtD5vRG58fgreSupzNd5uqfbu0+gw5hKEcRz8k8fdOWNWvU+CC3/dF7kbIUKQcuD5 Tv/73xFOlkCdysjlX1GZ3W4rnWt93GWT5bTnOWnSWAUMY6Sn8fQIaCABVT0gUf27gOSj/I2EuJ1r MXXhmAKNDPcUwtftJypVjPpJEhKpEAG11JsZPNB1OoFTpAAINked+oQifjKtZJdsntRUMP3a3qnw ms/mH8FreAHwMlmM6M/v17ZW8SOQkQ0AAAAAAAA= --Apple-Mail=_496D57BA-1E51-4E88-8555-89F42AB992F9-- From owner-freebsd-ppc@freebsd.org Mon Oct 29 18:38:28 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 7DCBF10E2B6F for ; Mon, 29 Oct 2018 18:38:28 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 040A27CE88 for ; Mon, 29 Oct 2018 18:38:28 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [IPv6:2003:cd:6f29:a600:8da7:4482:a128:d968] (p200300CD6F29A6008DA74482A128D968.dip0.t-ipconnect.de [IPv6:2003:cd:6f29:a600:8da7:4482:a128:d968]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 7F505721E281A; Mon, 29 Oct 2018 19:38:24 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: G5 fans From: Michael Tuexen In-Reply-To: <04166F4E-6EBC-4BF2-8127-AF3A29EBA945@yahoo.com> Date: Mon, 29 Oct 2018 19:38:23 +0100 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: Mark Millard X-Mailer: Apple Mail (2.3445.100.39) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de 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 18:38:28 -0000 > On 29. Oct 2018, at 02:10, Mark Millard wrote: >=20 >=20 >=20 > 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: >=20 > # ofwdump -pr /smu/fans | less > Node 0xff99f698: fans > name: > 66 61 6e 73 00=20 > 'fans' > device_type: > 6d 6f 74 6f 72 2d 63 6f 6e 74 72 6f 6c 00=20 > 'motor-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 73 00 73 6d 75 2d 66 61 6e=20 > 73 00=20 > reg: > 00 00 4a 00=20 > built-in: > hwsensor-params-version: > 00 00 00 02=20 > zone: > 00 00 00 00=20 > #size-cells: > 00 00 00 00=20 > #address-cells: > 00 00 00 01=20 > Node 0xff99fbb0: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 00=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 00=20 > location: > 44 52 49 56 45 20 42 41 59 20 41 20 49 4e 54 41 4b 45 00=20 > 'DRIVE BAY A INTAKE' > min-value: > 00 00 03 e8=20 > max-value: > 00 00 0f a0=20 > unmanage-value: > 00 00 0f a0=20 > init-value: > 00 00 03 e8=20 > safe-value: > 00 00 ff ff=20 > zone: > 00 00 00 01=20 > motor-type: > 00 00 00 00=20 > Node 0xff9a04a8: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 01=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 01=20 > location: > 42 41 43 4b 53 49 44 45 00=20 > 'BACKSIDE' > min-value: > 00 00 04 4c=20 > max-value: > 00 00 0b b8=20 > unmanage-value: > 00 00 0b b8=20 > init-value: > 00 00 04 4c=20 > safe-value: > 00 00 ff ff=20 > zone: > 00 00 00 04=20 > motor-type: > 00 00 00 00=20 > Node 0xff9a0d98: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 02=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 02=20 > location: > 43 50 55 20 41 20 49 4e 54 41 4b 45 00=20 > 'CPU A INTAKE' > min-value: > 00 00 01 e5=20 > max-value: > 00 00 0c 80=20 > unmanage-value: > 00 00 0c 80=20 > init-value: > 00 00 05 af=20 > safe-value: > 00 00 01 2c=20 > zone: > 00 00 00 00=20 > motor-type: > 00 00 00 00=20 > Node 0xff9a1688: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 03=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 03=20 > location: > 43 50 55 20 42 20 49 4e 54 41 4b 45 00=20 > 'CPU B INTAKE' > min-value: > 00 00 01 e5=20 > max-value: > 00 00 0c 80=20 > unmanage-value: > 00 00 0c 80=20 > init-value: > 00 00 05 af=20 > safe-value: > 00 00 01 2c=20 > zone: > 00 00 00 00=20 > motor-type: > 00 00 00 00=20 > Node 0xff9a1f78: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 04=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 04=20 > location: > 43 50 55 20 41 20 45 58 48 41 55 53 54 00=20 > 'CPU A EXHAUST' > min-value: > 00 00 01 f4=20 > max-value: > 00 00 0c 80=20 > unmanage-value: > 00 00 0c 80=20 > init-value: > 00 00 05 dc=20 > safe-value: > 00 00 0c 80=20 > zone: > 00 00 00 00=20 > motor-type: > 00 00 00 00=20 > Node 0xff9a2868: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 05=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 05=20 > location: > 43 50 55 20 42 20 45 58 48 41 55 53 54 00=20 > 'CPU B EXHAUST' > min-value: > 00 00 01 f4=20 > max-value: > 00 00 0c 80=20 > unmanage-value: > 00 00 0c 80=20 > init-value: > 00 00 05 dc=20 > safe-value: > 00 00 0c 80=20 > zone: > 00 00 00 00=20 > motor-type: > 00 00 00 00=20 > Node 0xff9a3158: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 06=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 06=20 > location: > 43 50 55 20 41 20 50 55 4d 50 00=20 > 'CPU A PUMP' > min-value: > 00 00 04 e2=20 > max-value: > 00 00 0e 10=20 > unmanage-value: > 00 00 0e 10=20 > init-value: > 00 00 0e 10=20 > safe-value: > 00 00 ff ff=20 > zone: > 00 00 00 00=20 > motor-type: > 00 00 00 01=20 > Node 0xff9a3a48: fan > name: > 66 61 6e 00=20 > 'fan' > device_type: > 66 61 6e 2d 72 70 6d 2d 63 6f 6e 74 72 6f 6c 00=20 > 'fan-rpm-control' > compatible: > 73 6d 75 2d 72 70 6d 2d 66 61 6e 00 73 6d 75 2d 66 61 6e 00=20 > 66 61 6e 00=20 > reg: > 00 00 00 08=20 > built-in: > version: > 00 00 00 02=20 > control-id: > 00 00 00 08=20 > location: > 45 58 50 41 4e 53 49 4f 4e 20 53 4c 4f 54 53 20 49 4e 54 41=20 > 4b 45 00=20 > 'EXPANSION SLOTS INTAKE' > min-value: > 00 00 06 18=20 > max-value: > 00 00 11 94=20 > unmanage-value: > 00 00 11 94=20 > init-value: > 00 00 06 18=20 > safe-value: > 00 00 03 e8=20 > zone: > 00 00 00 02=20 > motor-type: > 00 00 00 00=20 Thanks a lot. Could you run " .status" " /smu@0,0/fans@4a00/fan@0" open-dev $call-method in /smu@0,0/fans@4a00 from OpenFirmware? Best regards Michael >=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 >>> Thanks for your help. >>=20 >=20 >=20 >=20 >=20 >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) >=20 From owner-freebsd-ppc@freebsd.org Mon Oct 29 19:44:12 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 B0A4510E8703 for ; Mon, 29 Oct 2018 19:44:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 584427FD24 for ; Mon, 29 Oct 2018 19:44:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 491CB1C5FF; Mon, 29 Oct 2018 19:44:12 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 2B8B31C5FE for ; Mon, 29 Oct 2018 19:44:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F0EF37FD22 for ; Mon, 29 Oct 2018 19:44:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2B69FB9AE for ; Mon, 29 Oct 2018 19:44:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w9TJiBPj090962 for ; Mon, 29 Oct 2018 19:44:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w9TJiBTC090961 for powerpc@FreeBSD.org; Mon, 29 Oct 2018 19:44:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 232387] head -r339076: system crash in vnet_epair_init during kern_jail_set in a kyua test on powerpc64 Date: Mon, 29 Oct 2018 19:44:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: vimage X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: powerpc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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 19:44:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232387 --- Comment #12 from Mark Millard --- (In reply to Mark Millard from comment #10) It turns out that my amd64 kernel builds are like the devel/powerpc64-xtoolchain-gcc ones in that instead of SHN_ABS it has a normal st_shndx value: ( these are looking at /boot/kernel/kernel ) entry: 16765 st_name: __start_set_vnet st_value: 0xffffffff824dc200 st_size: 0 st_info: STT_NOTYPE STB_GLOBAL st_shndx: 50 This might suggest powerpc64's kernel having incomplete coverage for handling such things? For the amd64 context, that 50 is: entry: 50 sh_name: set_vnet sh_type: SHT_PROGBITS sh_flags: SHF_WRITE|SHF_ALLOC sh_addr: 0xffffffff824dc200 sh_offset: 36553216 sh_size: 220872 sh_link: 0 sh_info: 0 sh_addralign: 16 sh_entsize: 0 A constrasting devel/powerpc64-xtoolchain-gcc based kernel has entries (note the set_vnet sh_flags differences vs. amd64): ( these are also looking at /boot/kernel/kernel ) entry: 40 sh_name: set_vnet sh_type: SHT_PROGBITS sh_flags:=20 sh_addr: 0x1223800 sh_offset: 18036736 sh_size: 212656 sh_link: 0 sh_info: 0 sh_addralign: 8 sh_entsize: 0 and for __start_set_vnet : entry: 1490 st_name: __start_set_vnet st_value: 0x1223800 st_size: 0 st_info: STT_NOTYPE STB_GLOBAL st_shndx: 40 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-ppc@freebsd.org Mon Oct 29 22:02:22 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 3822910EB645 for ; Mon, 29 Oct 2018 22:02:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-14.consmr.mail.bf2.yahoo.com (sonic315-14.consmr.mail.bf2.yahoo.com [74.6.134.124]) (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 D517685966 for ; Mon, 29 Oct 2018 22:02:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: YAJaRrsVM1kiL2OAAQwUwdbdKblOdJsvmW3ShALgcTL1hUQH0QG.TxEBiNOcxbP 7tKMG_rjs5arr5Q_WCyhKrnyZJni0hIz4Ol3IBfY8a0LgA62p69C.gbG8ATMRn4l9bc7RzNCmiqR D2U8Cyy.RvMGEueK_fTxZAvBrjbqJb2i6QIwyFFPoMd5Xs_me1fvYPJtRQtJuZ7FZmJ5Ii8Hp.GF yACgFoI.KV4UGSPNFNS2mzL7UgIExwrTTOYYYQ1pdVxV2sjDSThbZ9tbV__xFG9brYlZEpxPqjkj 3Qh2bSxLsQ_SVuYiP42L5foJ.cBrUvd_I54q6yzY1vaDzlPxCbnyRQ3.uJZWBkNPu.iEWqzFeLXR tIX.XBfLkt.jmc.13Rr42FBFxweP21vla0q2q2UuVijh6Ru9iQoHDeTMDOVPFlx4KMxhWdo4oLk6 _3D41SWldA4w0PgPlLXhqhd40J960j_gbQcI7Dgxd_aji6mYTgtwpxfj4hrJ45wrBA0G9kfm27id VqAoXK898RAFaQdOaLpnURlfs..Id39GFhWP.BH2hM1HHW.BziN1GSm3ChOqh7tuPo.4jxUr0izF aSCzZF.DMTZZXEM1N9F2_bPjmHBGItLFLRzj7uj4fvTZnTM7YCmgGRcTaZHQuAy1icFHCpmQ8aXh ZmgrZEhzm1hmTK2mAcs8LwROEH.gpMZNCGy.d4c9SHOcdCYGZZJv215haPLLq8gICg8uHOiIliVf N3HdTiAdKGF5Kzo3RXmeVkvdxz8W9bFdZng8oMkBD6K4Nrf.15MZdD48RCQjbyBo_ShcsU6az19C QOqV82NjpemmaTIv0g7k8SCUF51_oTa.X4WSNiTmkTYkYH1PIvA6aQ7q8h9AxHv2yzJskEYwXyoI mW370d1feBi6clbDZdM0fvQn3O0r2OBaC6NcKnwYMedilafX9uC8omLtlBmaFX9AT81Ga9V13SYj Qz5HQ2ob29jn1wiac78RpAGlC6JY0cjA6JzniwsEyGl2Cr3cuTIVMhuHtfivDL9mdCpSC85SYc8_ B4L9gHqiid3jge2h6vujHUdhHeY.cpnr7IZLtKttZBnrYVwwq9A-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Mon, 29 Oct 2018 22:02:21 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp421.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c886b0d1fe8e1ab0956c7ac307d855ac; Mon, 29 Oct 2018 22:02:20 +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: Date: Mon, 29 Oct 2018 15:02:18 -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 22:02:22 -0000 On 2018-Oct-29, at 11:38 AM, Michael Tuexen = wrote: > On 29. Oct 2018, at 02:10, Mark Millard wrote: >=20 >> 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: >>=20 >> # ofwdump -pr /smu/fans | less >> Node 0xff99f698: fans >> name: >> 66 61 6e 73 00=20 >> 'fans' >> . . . > Thanks a lot. >=20 > Could you run >=20 > " .status" " /smu@0,0/fans@4a00/fan@0" open-dev $call-method > in /smu@0,0/fans@4a00 from OpenFirmware? >=20 On a so-called "Quad Core" I got the same sort of result that has already been reported for 11,2 dual-core, transcribed from a picture: 0 > dev /smu@0,0/fns@4a00/fan@0 ok 0 > " .status" " /smu@0,0/fns@4a00/fan@0" open-dev $call-method Method <.status> not found; ihandle=3Dffb30700 phandle=3Dff99fbb0 ok 0 > As for the dual processor (not dual-core) 7,2 the output was: (transcribed from a picture, indentation not preserved) 0 > dev u3/i2c/fan ok 0 > " .status" " u3/i2c/fan" open-dev $call-method=20 FCU Version 4.0.2f3 Failed RPM Channel(s): None Available RPM Channel(s): 1 2 3 4 5 6 Active RPM Channel(s): 2 3 4 5 6 Failed PWM Channel(s): None Available PWM Channel(s): 1 2 Active PWM Channel(s): 1 2 Processor A Intake Fan (RPM3): 1449 RPM Processor A Exhaust Fan (RPM4): 1499 RPM Processor B Intake Fan (RPM5): 1449 RPM Processor B Exhaust Fan (RPM6): 1499 RPM U3 Zone Fan (PWM1): 2054 RPM PCI Zone Fan (PWM2): 2093 RPM Drive Bay Fan (RPM2): 1499 RPM ok 0 > >=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 >>> Thanks for your help. >>=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Mon Oct 29 22:06:38 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 CDCFA10EB6C6 for ; Mon, 29 Oct 2018 22:06:38 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CC1785A0D for ; Mon, 29 Oct 2018 22:06:38 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [IPv6:2003:cd:6f29:a600:8da7:4482:a128:d968] (p200300CD6F29A6008DA74482A128D968.dip0.t-ipconnect.de [IPv6:2003:cd:6f29:a600:8da7:4482:a128:d968]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id C9B90721E280C; Mon, 29 Oct 2018 23:06:34 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: G5 fans From: Michael Tuexen In-Reply-To: Date: Mon, 29 Oct 2018 23:06:34 +0100 Cc: freebsd-ppc , Koakuma Content-Transfer-Encoding: quoted-printable Message-Id: <7549A8C5-01A8-4D81-891D-A13C87FCB9B1@freebsd.org> References: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.com> <04166F4E-6EBC-4BF2-8127-AF3A29EBA945@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3445.100.39) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de 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 22:06:39 -0000 > On 29. Oct 2018, at 23:02, Mark Millard wrote: >=20 > On 2018-Oct-29, at 11:38 AM, Michael Tuexen = wrote: >=20 >> On 29. Oct 2018, at 02:10, Mark Millard wrote: >>=20 >>> 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: >>>=20 >>> # ofwdump -pr /smu/fans | less >>> Node 0xff99f698: fans >>> name: >>> 66 61 6e 73 00=20 >>> 'fans' >>> . . . >> Thanks a lot. >>=20 >> Could you run >>=20 >> " .status" " /smu@0,0/fans@4a00/fan@0" open-dev $call-method >> in /smu@0,0/fans@4a00 from OpenFirmware? >>=20 >=20 > On a so-called "Quad Core" I got the same sort of result > that has already been reported for 11,2 dual-core, > transcribed from a picture: >=20 > 0 > dev /smu@0,0/fns@4a00/fan@0 ok > 0 > " .status" " /smu@0,0/fns@4a00/fan@0" open-dev $call-method > Method <.status> not found; ihandle=3Dffb30700 phandle=3Dff99fbb0 > ok > 0 > OK. Thanks for trying. >=20 >=20 > As for the dual processor (not dual-core) 7,2 > the output was: (transcribed from a picture, > indentation not preserved) >=20 > 0 > dev u3/i2c/fan ok > 0 > " .status" " u3/i2c/fan" open-dev $call-method=20 >=20 > FCU Version 4.0.2f3 >=20 > Failed RPM Channel(s): None > Available RPM Channel(s): 1 2 3 4 5 6 > Active RPM Channel(s): 2 3 4 5 6 >=20 > Failed PWM Channel(s): None > Available PWM Channel(s): 1 2 > Active PWM Channel(s): 1 2 >=20 > Processor A Intake Fan (RPM3): 1449 RPM > Processor A Exhaust Fan (RPM4): 1499 RPM > Processor B Intake Fan (RPM5): 1449 RPM > Processor B Exhaust Fan (RPM6): 1499 RPM > U3 Zone Fan (PWM1): 2054 RPM > PCI Zone Fan (PWM2): 2093 RPM > Drive Bay Fan (RPM2): 1499 RPM > ok > 0 > Great. Thank you! Best regards Michael >=20 >>=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 >>>> Thanks for your help. >>>=20 >>=20 >=20 >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) >=20 From owner-freebsd-ppc@freebsd.org Mon Oct 29 22:49:49 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 C03E410ECA41 for ; Mon, 29 Oct 2018 22:49:49 +0000 (UTC) (envelope-from sajad.nodratzehi@gmail.com) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 39D92896CA for ; Mon, 29 Oct 2018 22:49:49 +0000 (UTC) (envelope-from sajad.nodratzehi@gmail.com) Received: by mail-wr1-x432.google.com with SMTP id d10-v6so10476339wrs.5 for ; Mon, 29 Oct 2018 15:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance; bh=vDUhKgNvIbFzAXuPE8kuUHW0uZzYAtyi621t97f5bkA=; b=FR7RqfBysczYFzSSi90Xi2fTWOTa8WuemV+4eVHjDLsWerT1BgNaxrUCsLPHk5YL+F le4nARnBfyC2iD7ZPiuq9MkRjQdRV1GruluWFdi5xOT4umN0PZ3bsPWMdhMnlEpnqCRN 3SUjIAeB0IPsh3XAJnU3AAKzV02ZwkXuOQ17Q8+KUe5fG3ErA7UT+9BmeZsp/2I07w1f AvqYifd0gzbkxUII9yR0CTACHlElqacuZqWQB8ydf3cuARyvqRQlwpiIm11LDpKS5qZv aISwIl5Q3UfuXviDi0d8G9nD9EaPyQO2oJofBrjaBGEcQsznybPtg4Wh1qSwHsBLKdpB d6yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=vDUhKgNvIbFzAXuPE8kuUHW0uZzYAtyi621t97f5bkA=; b=DgJvf1sb6vzeMJKkGlJmP4SL1lHPyKKs3OIB6KdxxR5xvYkxXt0o5Bk1bTMlsUa5+D 2cPJvLXEPsiY1Dw61erHFdTUm/7h/3wjwYBaKdozZ+riaOrzzGNwieHwsP5SVlSOaJ2v B+qTxTSiGNbwfJvgmzdYFd38tSK2DipqLbmGAT1s5/LFFwcaoONlKW7P3X+829m7ZIit qB2aJYMBzQLkSZkBFtpcJW1Gwh5IqNN4NFNrxCUWZ+fkSEWFiMP8kKcm7yLxbI/QNeRs XOWDr092MxDfvBCF0NFkah0Mxg8rT5mVJl5BLl6p3mLTgpjHFZQCmXePz6Vk+LGAFj5R pc6w== X-Gm-Message-State: AGRZ1gL7jwHqeIt2c7nT4Qjm53deiiyook2qZqovkWlG6SbLK7WkYcWq cagCP3sRl04nDutbLrc9NbM9O0g6 X-Google-Smtp-Source: AJdET5ePqODOvEs2P5//NItPyJk+9l6ffgM6auFvHZg6pISFY528/vXtyWoW7kzjvlge4FyacYH/xg== X-Received: by 2002:adf:8521:: with SMTP id 30-v6mr15461313wrh.284.1540853387719; Mon, 29 Oct 2018 15:49:47 -0700 (PDT) Received: from ?IPv6:::ffff:192.168.1.125? ([2.181.183.241]) by smtp.gmail.com with ESMTPSA id 82-v6sm26753863wms.17.2018.10.29.15.49.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 15:49:47 -0700 (PDT) Message-ID: <5bd78e8b.1c69fb81.49508.e30a@mx.google.com> MIME-Version: 1.0 To: "freebsd-ppc@FreeBSD.org" From: Sajad Nodratzehi Subject: ppc64 Date: Tue, 30 Oct 2018 02:19:46 +0330 Importance: normal X-Priority: 3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 22:49:50 -0000 Hi, can I install your latest version on my ps3-otherOs supported ? From owner-freebsd-ppc@freebsd.org Mon Oct 29 23:05:53 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 7E94210ED034 for ; Mon, 29 Oct 2018 23:05:53 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (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 E9FBC89EC3 for ; Mon, 29 Oct 2018 23:05:52 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from helicon.physics.ucla.edu (helicon.physics.ucla.edu [169.232.156.253]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id w9TMtDLP023916 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NOT) for ; Mon, 29 Oct 2018 15:55:14 -0700 Subject: Re: ppc64 To: freebsd-ppc@freebsd.org References: <5bd78e8b.1c69fb81.49508.e30a@mx.google.com> From: Nathan Whitehorn Openpgp: preference=signencrypt Autocrypt: addr=nwhitehorn@freebsd.org; keydata= xsFNBFuARN8BEADLKYsG3l1aq/M21R59I/5EsEfvtvd15ZJ9lDHcW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msUQPmSMkbqCqYcZe47ABEBAAHCwXYEGAEIACAWIQQ9ZCD6qCFJPoC/DWE4tk2UZoTo dwUCW4BFQQIbDAAKCRA4tk2UZoTod2RbEACbQ2bwJ3++bvqclErbekf7BXYja37/HxGE67q3 9xf28hen8vWGtXwq4bWmZT5H8bBqXigA4bUU4nN4X3xEDfTyqkQMuDTnnwT7Y61B4QEqhi4a q4adf/KP0l1UCg4CJ0KS931Han+VbiuUcbadu1ZX37Ef6g/hG+mt59FeXDMU0rers2Bpr8zB 8ywojAsVC92kvOHLsCQtdCsPzC+R6B1bY6/Re9slM1NBd+2k4BUVhYu8Fb8Ir37OmN0aGQzY uRczfrmR/OV5/1+g5XeYSFbq/0Q3KkFWLHfimff8lb9GRWrdvOUpYyGluv49b/G5o9lSxPwX yBfaoVi/WDDfJ/XJw9H90XK68TYxPfEQkeuLEEzg+Bz3Zeduyo2Zx4S5apLqAbv0RzduXgIG YZVPu8R4ya8nQWHeUpot17lt8SL7yFkMJaAXk27QqUAaxjqnGBLn70YMWXFGySfvjgaR1Ftu /S/HSKqH7m8aFYZftqs7ZojXNdqGHZKRrIx6hRUYuZQM8uxHDweF4jF+QIwYIUmtry5h8iti Sjt9KHjpkH3Wz5o1mk6cbFNN+wgpHplDl/iZMZjFskTAJfEsYHVSSm21zcYvvogrbqYvciMT ty65+0A8Gz9tMbcNx9ePaGoM+9jeFehrzTjdaiTiC+umSd/Y29DCW4OBMr1VfufVVKbfAQ== Message-ID: Date: Mon, 29 Oct 2018 15:55:13 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <5bd78e8b.1c69fb81.49508.e30a@mx.google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVaPwYis1rub5QmwsQUcZpTMOiOAfNZPaXS6nN7SAFBm/U/zNIyp2l5BLp2jHPIL8Qoky0KuBEgGTYulTQIhF+NYLNx946wHTkQ= X-Sonic-ID: C;2DYAss3b6BGGYv+mSH5B5g== M;4rZDss3b6BGGYv+mSH5B5g== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd 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 23:05:53 -0000 Yes. PS3s are a fairly slow system by today's standards, and quite RAM-limited, but it will work just fine within the hardware constraints. -Nathan On 10/29/18 3:49 PM, Sajad Nodratzehi wrote: > Hi, can I install your latest version on my ps3-otherOs supported ? > > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > From owner-freebsd-ppc@freebsd.org Tue Oct 30 01:13:42 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 4B5AF10F0383 for ; Tue, 30 Oct 2018 01:13:42 +0000 (UTC) (envelope-from koachan@protonmail.com) Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C4A08E74E for ; Tue, 30 Oct 2018 01:13:41 +0000 (UTC) (envelope-from koachan@protonmail.com) Date: Tue, 30 Oct 2018 01:13:27 +0000 To: Michael Tuexen From: Koakuma Cc: freebsd-ppc Reply-To: Koakuma Subject: Re: G5 fans Message-ID: In-Reply-To: <3959D4D2-4E07-48A9-8AEA-9080724565ED@fh-muenster.de> References: <-h2qaAN8uPVLOtb4ngIa-cEr-sGMGrq0opq1cczaWnSCvra_jucS8kTEPCaB64a5bWcSzxsEcCr52NsrUKrOUjP5p6wusFed8OIVReIjD94=@protonmail.com> <3959D4D2-4E07-48A9-8AEA-9080724565ED@fh-muenster.de> Feedback-ID: vx60_H1LlvJmanXig0QfOhp9v83abB6nMHXt02uALA-NQlyNWqBIpoEjWQ90DxSDCfENqXm1HFsRez1WMA7FOQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.protonmail.ch 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: Tue, 30 Oct 2018 01:13:42 -0000 I'm still getting the same error as before. 0 > dev /smu@0,0/fans@4a00 ok 0 > " .status" " /smu@0,0/fans@4a00/fan@0" open-dev $call-method Method <.status> not found; ihandle=3Dffb352c0 phandle=3Dff99ee00 ok =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Tuesday, October 30, 2018 1:37 AM, Michael Tuexen wrote: > OK. Could you try to run > " .status" " /smu@0,0/fans@4a00/fan@0" open-dev $call-method > in /smu@0,0/fans@4a00 > > I was testing on PowerMac7,2 and PowerMac7,3. > > Best regards > Michael From owner-freebsd-ppc@freebsd.org Tue Oct 30 04:32:09 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 7B3EB10D2D67 for ; Tue, 30 Oct 2018 04:32:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A3F9713DB for ; Tue, 30 Oct 2018 04:32:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 09B9B798A; Tue, 30 Oct 2018 04:32:09 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 061DF7989 for ; Tue, 30 Oct 2018 04:32:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7699713D8 for ; Tue, 30 Oct 2018 04:32:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0AAAB10437 for ; Tue, 30 Oct 2018 04:32:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w9U4W795095704 for ; Tue, 30 Oct 2018 04:32:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w9U4W7j4095703 for powerpc@FreeBSD.org; Tue, 30 Oct 2018 04:32:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 232387] head -r339076: system crash in vnet_epair_init during kern_jail_set in a kyua test on powerpc64 Date: Tue, 30 Oct 2018 04:32:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: vimage X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: powerpc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 30 Oct 2018 04:32:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232387 --- Comment #13 from Mark Millard --- (In reply to Mark Millard from comment #12) Well, on powerpc64 objdump for the sections shows set_vnet as ALLOC (without listing READONLY). elfdump and objdump do not seem to agree about what the flags are for the same file in the powerpc64 context. elfdump shows all the sh_flags as empty. So the difference in reported flags between amd64 and powerpc64 may be just a tools issue. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-ppc@freebsd.org Tue Oct 30 11:00:01 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 E8D6810DF7EB for ; Tue, 30 Oct 2018 11:00:00 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 827507D674 for ; Tue, 30 Oct 2018 11:00:00 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [10.0.1.118] (unknown [212.201.121.94]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id BCB99721E280C for ; Tue, 30 Oct 2018 11:59:57 +0100 (CET) From: Michael Tuexen Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Fwd: svn commit: r339876 - head/libexec/rtld-elf Message-Id: References: To: FreeBSD PowerPC ML Date: Tue, 30 Oct 2018 11:59:57 +0100 X-Mailer: Apple Mail (2.3445.100.39) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Tue, 30 Oct 2018 11:00:01 -0000 FYI > Begin forwarded message: >=20 > From: Michael Tuexen > Subject: Re: svn commit: r339876 - head/libexec/rtld-elf > Date: 30. October 2018 at 11:17:39 CET > To: Alex Richardson > Cc: src-committers , = svn-src-all@freebsd.org, svn-src-head@freebsd.org >=20 >> On 29. Oct 2018, at 22:08, Alex Richardson = wrote: >>=20 >> Author: arichardson >> Date: Mon Oct 29 21:08:02 2018 >> New Revision: 339876 >> URL: https://svnweb.freebsd.org/changeset/base/339876 >>=20 >> Log: >> rtld: set obj->textsize correctly >>=20 >> With lld-generated binaries the first PT_LOAD will usually be a = read-only >> segment unless you pass --no-rosegment. For those binaries the = textsize is >> determined by the next PT_LOAD. To allow both LLD and bfd 2.17 = binaries to >> be parsed correctly use the end of the last PT_LOAD that is marked as >> executable instead. >>=20 >> I noticed that the value was wrong while adding some debug prints for = some rtld >> changes for CHERI binaries. `obj->textsize` only seems to be used by = PPC so the >> effect is untested. However, the value before was definitely wrong = and the new >> result matches the phdrs. > I build kernel and world with a revision later than this on a PPC. = Buildword > ends up with a world where almost all binaries are segfaulting.... = Especially gdb > (but svn, ls or so all segfault). >=20 > Best regards > Michael >>=20 >> Reviewed By: kib >> Approved By: brooks (mentor) >> Differential Revision: https://reviews.freebsd.org/D17117 >>=20 >> Modified: >> head/libexec/rtld-elf/map_object.c >> head/libexec/rtld-elf/rtld.c >>=20 >> Modified: head/libexec/rtld-elf/map_object.c >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >> --- head/libexec/rtld-elf/map_object.c Mon Oct 29 21:03:43 2018 = (r339875) >> +++ head/libexec/rtld-elf/map_object.c Mon Oct 29 21:08:02 2018 = (r339876) >> @@ -93,6 +93,7 @@ map_object(int fd, const char *path, const struct = stat >> Elf_Addr note_end; >> char *note_map; >> size_t note_map_len; >> + Elf_Addr text_end; >>=20 >> hdr =3D get_elf_header(fd, path, sb); >> if (hdr =3D=3D NULL) >> @@ -116,6 +117,7 @@ map_object(int fd, const char *path, const struct = stat >> note_map =3D NULL; >> segs =3D alloca(sizeof(segs[0]) * hdr->e_phnum); >> stack_flags =3D RTLD_DEFAULT_STACK_PF_EXEC | PF_R | PF_W; >> + text_end =3D 0; >> while (phdr < phlimit) { >> switch (phdr->p_type) { >>=20 >> @@ -130,6 +132,10 @@ map_object(int fd, const char *path, const = struct stat >> path, nsegs); >> goto error; >> } >> + if ((segs[nsegs]->p_flags & PF_X) =3D=3D PF_X) { >> + text_end =3D MAX(text_end, >> + round_page(segs[nsegs]->p_vaddr + = segs[nsegs]->p_memsz)); >> + } >> break; >>=20 >> case PT_PHDR: >> @@ -280,8 +286,7 @@ map_object(int fd, const char *path, const struct = stat >> } >> obj->mapbase =3D mapbase; >> obj->mapsize =3D mapsize; >> - obj->textsize =3D round_page(segs[0]->p_vaddr + = segs[0]->p_memsz) - >> - base_vaddr; >> + obj->textsize =3D text_end - base_vaddr; >> obj->vaddrbase =3D base_vaddr; >> obj->relocbase =3D mapbase - base_vaddr; >> obj->dynamic =3D (const Elf_Dyn *) (obj->relocbase + = phdyn->p_vaddr); >>=20 >> Modified: head/libexec/rtld-elf/rtld.c >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >> --- head/libexec/rtld-elf/rtld.c Mon Oct 29 21:03:43 2018 = (r339875) >> +++ head/libexec/rtld-elf/rtld.c Mon Oct 29 21:08:02 2018 = (r339876) >> @@ -1390,13 +1390,15 @@ digest_phdr(const Elf_Phdr *phdr, int phnum, = caddr_t e >> if (nsegs =3D=3D 0) { /* First load segment */ >> obj->vaddrbase =3D trunc_page(ph->p_vaddr); >> obj->mapbase =3D obj->vaddrbase + obj->relocbase; >> - obj->textsize =3D round_page(ph->p_vaddr + ph->p_memsz) = - >> - obj->vaddrbase; >> } else { /* Last load segment */ >> obj->mapsize =3D round_page(ph->p_vaddr + ph->p_memsz) - >> obj->vaddrbase; >> } >> nsegs++; >> + if ((ph->p_flags & PF_X) =3D=3D PF_X) { >> + obj->textsize =3D MAX(obj->textsize, >> + round_page(ph->p_vaddr + ph->p_memsz) - = obj->vaddrbase); >> + } >> break; >>=20 >> case PT_DYNAMIC: >>=20 >=20 >=20 From owner-freebsd-ppc@freebsd.org Wed Oct 31 14:33:57 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 B60AB10DBB91 for ; Wed, 31 Oct 2018 14:33:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-13.consmr.mail.bf2.yahoo.com (sonic316-13.consmr.mail.bf2.yahoo.com [74.6.130.123]) (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 5E07A78475 for ; Wed, 31 Oct 2018 14:33:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: bk3iBIoVM1mOSFtR6k9MSDaO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B Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Wed, 31 Oct 2018 14:33:50 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp411.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ef9889f0fc3040597a601d70ce8d459e; Wed, 31 Oct 2018 14:33:46 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: svn commit: r339876 - head/libexec/rtld-elf From: Mark Millard In-Reply-To: Date: Wed, 31 Oct 2018 07:33:43 -0700 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <77371AC1-C422-47A6-9EA5-9A92F958D86B@yahoo.com> References: 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: Wed, 31 Oct 2018 14:33:57 -0000 On 2018-Oct-30, at 3:59 AM, Michael Tuexen = wrote: > FYI >=20 >> Begin forwarded message: >>=20 >> From: Michael Tuexen >> Subject: Re: svn commit: r339876 - head/libexec/rtld-elf >> Date: 30. October 2018 at 11:17:39 CET >> To: Alex Richardson >> Cc: src-committers , = svn-src-all@freebsd.org, svn-src-head@freebsd.org >>=20 >>> On 29. Oct 2018, at 22:08, Alex Richardson = wrote: >>>=20 >>> Author: arichardson >>> Date: Mon Oct 29 21:08:02 2018 >>> New Revision: 339876 >>> URL: https://svnweb.freebsd.org/changeset/base/339876 >>>=20 >>> Log: >>> rtld: set obj->textsize correctly >>>=20 >>> With lld-generated binaries the first PT_LOAD will usually be a = read-only >>> segment unless you pass --no-rosegment. For those binaries the = textsize is >>> determined by the next PT_LOAD. To allow both LLD and bfd 2.17 = binaries to >>> be parsed correctly use the end of the last PT_LOAD that is marked = as >>> executable instead. >>>=20 >>> I noticed that the value was wrong while adding some debug prints = for some rtld >>> changes for CHERI binaries. `obj->textsize` only seems to be used by = PPC so the >>> effect is untested. However, the value before was definitely wrong = and the new >>> result matches the phdrs. >> I build kernel and world with a revision later than this on a PPC. Which have you tried: 32 bit? 64 bit? Both? If both, do both fail? What version did the buildworld buildkernel ? What version was built by the buildworld buildkernel (that was later installed and had failures)? Do you know what version did the prior buildworld buildkernel (that produced the version that did this buildworld buildkernel)? If yes, what was it? >> Buildword >> ends up with a world where almost all binaries are segfaulting.... = Especially gdb >> (but svn, ls or so all segfault). Which fail: /usr/local/bin/gdb ? /usr/libexec/gdb ? Both? /usr/local/bin/svn ? /usr/bin/svnlite ? Both? /bin/ls ? /rescue/ls ? Both? That last may be the more important comparison. >>=20 >> Best regards >> Michael >>>=20 >>> Reviewed By: kib >>> Approved By: brooks (mentor) >>> Differential Revision: https://reviews.freebsd.org/D17117 >>>=20 >>> Modified: >>> head/libexec/rtld-elf/map_object.c >>> head/libexec/rtld-elf/rtld.c >>>=20 >>> Modified: head/libexec/rtld-elf/map_object.c >>> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>> --- head/libexec/rtld-elf/map_object.c Mon Oct 29 21:03:43 2018 = (r339875) >>> +++ head/libexec/rtld-elf/map_object.c Mon Oct 29 21:08:02 2018 = (r339876) >>> @@ -93,6 +93,7 @@ map_object(int fd, const char *path, const struct = stat >>> Elf_Addr note_end; >>> char *note_map; >>> size_t note_map_len; >>> + Elf_Addr text_end; >>>=20 >>> hdr =3D get_elf_header(fd, path, sb); >>> if (hdr =3D=3D NULL) >>> @@ -116,6 +117,7 @@ map_object(int fd, const char *path, const = struct stat >>> note_map =3D NULL; >>> segs =3D alloca(sizeof(segs[0]) * hdr->e_phnum); >>> stack_flags =3D RTLD_DEFAULT_STACK_PF_EXEC | PF_R | PF_W; >>> + text_end =3D 0; >>> while (phdr < phlimit) { >>> switch (phdr->p_type) { >>>=20 >>> @@ -130,6 +132,10 @@ map_object(int fd, const char *path, const = struct stat >>> path, nsegs); >>> goto error; >>> } >>> + if ((segs[nsegs]->p_flags & PF_X) =3D=3D PF_X) { >>> + text_end =3D MAX(text_end, >>> + round_page(segs[nsegs]->p_vaddr + = segs[nsegs]->p_memsz)); >>> + } >>> break; >>>=20 >>> case PT_PHDR: >>> @@ -280,8 +286,7 @@ map_object(int fd, const char *path, const = struct stat >>> } >>> obj->mapbase =3D mapbase; >>> obj->mapsize =3D mapsize; >>> - obj->textsize =3D round_page(segs[0]->p_vaddr + = segs[0]->p_memsz) - >>> - base_vaddr; >>> + obj->textsize =3D text_end - base_vaddr; >>> obj->vaddrbase =3D base_vaddr; >>> obj->relocbase =3D mapbase - base_vaddr; >>> obj->dynamic =3D (const Elf_Dyn *) (obj->relocbase + = phdyn->p_vaddr); >>>=20 >>> Modified: head/libexec/rtld-elf/rtld.c >>> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>> --- head/libexec/rtld-elf/rtld.c Mon Oct 29 21:03:43 2018 = (r339875) >>> +++ head/libexec/rtld-elf/rtld.c Mon Oct 29 21:08:02 2018 = (r339876) >>> @@ -1390,13 +1390,15 @@ digest_phdr(const Elf_Phdr *phdr, int phnum, = caddr_t e >>> if (nsegs =3D=3D 0) { /* First load segment */ >>> obj->vaddrbase =3D trunc_page(ph->p_vaddr); >>> obj->mapbase =3D obj->vaddrbase + obj->relocbase; >>> - obj->textsize =3D round_page(ph->p_vaddr + ph->p_memsz) = - >>> - obj->vaddrbase; >>> } else { /* Last load segment */ >>> obj->mapsize =3D round_page(ph->p_vaddr + ph->p_memsz) - >>> obj->vaddrbase; >>> } >>> nsegs++; >>> + if ((ph->p_flags & PF_X) =3D=3D PF_X) { >>> + obj->textsize =3D MAX(obj->textsize, >>> + round_page(ph->p_vaddr + ph->p_memsz) - = obj->vaddrbase); >>> + } >>> break; >>>=20 >>> case PT_DYNAMIC: >>>=20 >>=20 >>=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Wed Oct 31 15:08:11 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 A8E6510DC907 for ; Wed, 31 Oct 2018 15:08:11 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D10C79EE7; Wed, 31 Oct 2018 15:08:11 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [IPv6:2003:cd:6f29:a600:484e:bd61:3585:3513] (p200300CD6F29A600484EBD6135853513.dip0.t-ipconnect.de [IPv6:2003:cd:6f29:a600:484e:bd61:3585:3513]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id B4842721E280C; Wed, 31 Oct 2018 16:08:07 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: svn commit: r339876 - head/libexec/rtld-elf From: Michael Tuexen In-Reply-To: <77371AC1-C422-47A6-9EA5-9A92F958D86B@yahoo.com> Date: Wed, 31 Oct 2018 16:08:06 +0100 Cc: FreeBSD PowerPC ML , Alexander Richardson Content-Transfer-Encoding: quoted-printable Message-Id: <24896738-5D46-46FB-A41A-E6719F169109@freebsd.org> References: <77371AC1-C422-47A6-9EA5-9A92F958D86B@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3445.101.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de 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: Wed, 31 Oct 2018 15:08:11 -0000 > On 31. Oct 2018, at 15:33, Mark Millard wrote: >=20 > On 2018-Oct-30, at 3:59 AM, Michael Tuexen = wrote: >=20 >> FYI >>=20 >>> Begin forwarded message: >>>=20 >>> From: Michael Tuexen >>> Subject: Re: svn commit: r339876 - head/libexec/rtld-elf >>> Date: 30. October 2018 at 11:17:39 CET >>> To: Alex Richardson >>> Cc: src-committers , = svn-src-all@freebsd.org, svn-src-head@freebsd.org >>>=20 >>>> On 29. Oct 2018, at 22:08, Alex Richardson = wrote: >>>>=20 >>>> Author: arichardson >>>> Date: Mon Oct 29 21:08:02 2018 >>>> New Revision: 339876 >>>> URL: https://svnweb.freebsd.org/changeset/base/339876 >>>>=20 >>>> Log: >>>> rtld: set obj->textsize correctly >>>>=20 >>>> With lld-generated binaries the first PT_LOAD will usually be a = read-only >>>> segment unless you pass --no-rosegment. For those binaries the = textsize is >>>> determined by the next PT_LOAD. To allow both LLD and bfd 2.17 = binaries to >>>> be parsed correctly use the end of the last PT_LOAD that is marked = as >>>> executable instead. >>>>=20 >>>> I noticed that the value was wrong while adding some debug prints = for some rtld >>>> changes for CHERI binaries. `obj->textsize` only seems to be used = by PPC so the >>>> effect is untested. However, the value before was definitely wrong = and the new >>>> result matches the phdrs. >>> I build kernel and world with a revision later than this on a PPC. >=20 > Which have you tried: 32 bit? 64 bit? Both? If both, do both fail? Both. Only the 32-bit version shows the problem. Reverting this commit and rebuilding /libexec/ld-elf.so.1 resolves the problem. So I can confirm that this commit results in problems for 32-bit powerppc. >=20 > What version did the buildworld buildkernel ? What version was > built by the buildworld buildkernel (that was later installed > and had failures)? I was building r339914. >=20 > Do you know what version did the prior buildworld buildkernel (that > produced the version that did this buildworld buildkernel)? If yes, > what was it? No. Just reverting this commit resolves the issue. >=20 >>> Buildword >>> ends up with a world where almost all binaries are segfaulting.... = Especially gdb >>> (but svn, ls or so all segfault). >=20 > Which fail: >=20 > /usr/local/bin/gdb ? /usr/libexec/gdb ? Both? > /usr/local/bin/svn ? /usr/bin/svnlite ? Both? > /bin/ls ? /rescue/ls ? Both? >=20 > That last may be the more important comparison. Not the ones from /rescue. I used these tools to recover the system. Failing binaries where /usr/local/bin/gdb, /usr/local/bin/svn. You can reproduce the issue. Just update the sources and to make and = make install in head/libexec/rtld-elf Best regards Michael >=20 >>>=20 >>> Best regards >>> Michael >>>>=20 >>>> Reviewed By: kib >>>> Approved By: brooks (mentor) >>>> Differential Revision: https://reviews.freebsd.org/D17117 >>>>=20 >>>> Modified: >>>> head/libexec/rtld-elf/map_object.c >>>> head/libexec/rtld-elf/rtld.c >>>>=20 >>>> Modified: head/libexec/rtld-elf/map_object.c >>>> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>>> --- head/libexec/rtld-elf/map_object.c Mon Oct 29 21:03:43 2018 = (r339875) >>>> +++ head/libexec/rtld-elf/map_object.c Mon Oct 29 21:08:02 2018 = (r339876) >>>> @@ -93,6 +93,7 @@ map_object(int fd, const char *path, const struct = stat >>>> Elf_Addr note_end; >>>> char *note_map; >>>> size_t note_map_len; >>>> + Elf_Addr text_end; >>>>=20 >>>> hdr =3D get_elf_header(fd, path, sb); >>>> if (hdr =3D=3D NULL) >>>> @@ -116,6 +117,7 @@ map_object(int fd, const char *path, const = struct stat >>>> note_map =3D NULL; >>>> segs =3D alloca(sizeof(segs[0]) * hdr->e_phnum); >>>> stack_flags =3D RTLD_DEFAULT_STACK_PF_EXEC | PF_R | PF_W; >>>> + text_end =3D 0; >>>> while (phdr < phlimit) { >>>> switch (phdr->p_type) { >>>>=20 >>>> @@ -130,6 +132,10 @@ map_object(int fd, const char *path, const = struct stat >>>> path, nsegs); >>>> goto error; >>>> } >>>> + if ((segs[nsegs]->p_flags & PF_X) =3D=3D PF_X) { >>>> + text_end =3D MAX(text_end, >>>> + round_page(segs[nsegs]->p_vaddr + = segs[nsegs]->p_memsz)); >>>> + } >>>> break; >>>>=20 >>>> case PT_PHDR: >>>> @@ -280,8 +286,7 @@ map_object(int fd, const char *path, const = struct stat >>>> } >>>> obj->mapbase =3D mapbase; >>>> obj->mapsize =3D mapsize; >>>> - obj->textsize =3D round_page(segs[0]->p_vaddr + = segs[0]->p_memsz) - >>>> - base_vaddr; >>>> + obj->textsize =3D text_end - base_vaddr; >>>> obj->vaddrbase =3D base_vaddr; >>>> obj->relocbase =3D mapbase - base_vaddr; >>>> obj->dynamic =3D (const Elf_Dyn *) (obj->relocbase + = phdyn->p_vaddr); >>>>=20 >>>> Modified: head/libexec/rtld-elf/rtld.c >>>> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>>> --- head/libexec/rtld-elf/rtld.c Mon Oct 29 21:03:43 2018 = (r339875) >>>> +++ head/libexec/rtld-elf/rtld.c Mon Oct 29 21:08:02 2018 = (r339876) >>>> @@ -1390,13 +1390,15 @@ digest_phdr(const Elf_Phdr *phdr, int = phnum, caddr_t e >>>> if (nsegs =3D=3D 0) { /* First load segment */ >>>> obj->vaddrbase =3D trunc_page(ph->p_vaddr); >>>> obj->mapbase =3D obj->vaddrbase + obj->relocbase; >>>> - obj->textsize =3D round_page(ph->p_vaddr + ph->p_memsz) = - >>>> - obj->vaddrbase; >>>> } else { /* Last load segment */ >>>> obj->mapsize =3D round_page(ph->p_vaddr + ph->p_memsz) - >>>> obj->vaddrbase; >>>> } >>>> nsegs++; >>>> + if ((ph->p_flags & PF_X) =3D=3D PF_X) { >>>> + obj->textsize =3D MAX(obj->textsize, >>>> + round_page(ph->p_vaddr + ph->p_memsz) - = obj->vaddrbase); >>>> + } >>>> break; >>>>=20 >>>> case PT_DYNAMIC: >>>>=20 >>>=20 >>>=20 >>=20 >=20 >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) >=20