From owner-freebsd-ppc@freebsd.org Fri Apr 12 20:51:59 2019 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 A51781585F5B for ; Fri, 12 Apr 2019 20:51:59 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-21.consmr.mail.ne1.yahoo.com (sonic315-21.consmr.mail.ne1.yahoo.com [66.163.190.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 3ECB08C571 for ; Fri, 12 Apr 2019 20:51:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 3kdAjmMVM1mQtzlzKemGkmsXUWn2ykR6v4HPxbh.5ObWo6j8KI5onBL6bIkFekp BhpA7DDRTjkDkFW7X1jnGYODNn4.VkRKXVXx0nJ1xhp2d.Xz9Pmj_Qd0jldJUJV6Uzk1ehOMFXbd 4_iqKjhOvI4efYWc9P4Qb5q6j3k1aKzjCIRY1yQtP09xkMgbL5tkCahdYL8ve.sxl33B0DcdMyjA GLpABQWMyGKvneYsiWC0GGgjIupKwo5hzPY0zA00AEIGblSE20zPHhxlCpsgy7Ar5Jzzk2WeFFPg V4rJjJOS.z02IaxihK9h2gMnJlLF6HsmARCfEZN1LDpM1Ik1jmQzD2O3XL58MeRjXcgFN4Waianf ZpYDDB4TF6xCb2KhLm2LxuAHuK38RQXnArNFvbV1T3wZiCb9VTXz4RoNwF3OcbsJyAzWLuvU20zf Jaff_JrxHlcb5.H68WqJj4DrD7qXzd9rK.DwxpmVc2pES_5BV5BRvAxqv7BJP6rHijBqT1F21NGB Mlr3tX6s0RLi0bwzLVHIfYNwEvZL6Uw9_a7kA1GdLJ96Ah.wiE4rjpgqyd1D9s6Waoauo_SQq.S9 XBrW.fg5bEei3.E0STorUxFwcJR5M94Gpp_oBW3SpK4uVZvWg0BBQPB4mhjyZE9vDljKcIDno1Oh E2n7HbzHi7aD84_js.0tLReWmHP1fa5jqLVM1wFgGCWM1IdgOTGaJmGc84RxB.UZq81o7jQuXg8T hhA69gnFuDrZ9v6Lq9NBP75WvE.70Nzm8PKJKnoBSo3D7yJJYzqVj8EIYKI9MdaYCyOYPQZ_rcuJ LP8n8q.p9yuBob9L0VIxpbPFzVe9.mGonNZxJ27d4TlLdwChejkHi.mSbycfnhDXYoKcqko3p.KW wsAk8gmq6dnLx6mKi1T_pIJJoAhJjytEUMpeZpSLs0IJSrP4ZlK.eNMg3Kc1gZ9nV.nx1QmRugWP tggS8zkpPlXqNwnbocwlGjOPvHEeXzYKJypgC.nFP2t8azpb30SZS2yYvjS2drAp1qcESyF50Hqv 82bo5HtGDuAkpHkQlVYM1EAf3pxNeIi2BG72DvaRDQNRr6EFZBOQoTke01IsWfCWFgVRq19Ag62q Oxn6P Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Fri, 12 Apr 2019 20:51:50 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp431.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e0f5ea97174789cdda71bb4e36aba97e; Fri, 12 Apr 2019 20:51:47 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: Patches to allow usefdt mode that works on a 2 socket PowerMac3, 6 example too --and makes more work on 2-socket/1-core-each PowerMac11, 2 From: Mark Millard In-Reply-To: Date: Fri, 12 Apr 2019 13:51:46 -0700 Cc: freebsd-ppc@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <465DBF40-EEF5-4D4A-95F6-DF17EB5B130B@yahoo.com> References: <988F644F-D5E7-4FB4-AAB3-A72E9DA88CE6@yahoo.com> To: Dennis Clarke X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: 3ECB08C571 X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.18 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.841,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.94)[0.936,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.81)[ip: (6.53), ipnet: 66.163.184.0/21(1.44), asn: 36646(1.15), country: US(-0.06)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.78)[0.784,0]; RCVD_IN_DNSWL_NONE(0.00)[147.190.163.66.list.dnswl.org : 127.0.5.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: Fri, 12 Apr 2019 20:51:59 -0000 On 2019-Apr-12, at 13:13, Dennis Clarke wrote: > On 4/12/19 3:19 PM, Mark Millard via freebsd-ppc wrote: >> With the following 2 patches for converting >> openfirmware to fdt content. . . >> PowerMac11,2 example for usefdt mode: >> A) bge0 and bge1 are back in their historical places. >> B) powerd on the PowerMac11,2 works again. >> C) sysctl -a | grep cpufreq lists items for all the cpus >> D) probably more. >> PowerMac3,6 example for usefdt mode: >> E) gem0 is present again and even works. >> F) Both CPUs are used again. >> F) probably more. >> (powerpd and cpufreq's are not operable/present even in >> non-usefdt mode.) >> This message does not deal with other investigatory >> patches for other issues than converting openfirmware >> to fdt. But my test environment has all my investigatory >> patches in order to avoid other things getting in the >> way of my investigations. >> The code comments are fairly explicit about >> what and why for the changes. >> I treat the patches as investigatory, not ready >> in form for being official FreeBSD material. There >> are likely questions of if the change go in the >> right long-term direction --or even if old PowerMacs >> will continue to be viewed as worth supporting >> (because they compete with time spent on modern >> support). >> I'll note that I've never had the 2-socket/1-core-each >> PowerMac7,2 get any visible behavior after the Kernel >> entry point message with any variation of usefdt mode. >> Failing so early, I've not figured out any way to >> investigate it hanging up. It does boot in non-usefdt >> mode with my other investigatory patches in place. >> The openfirmware to fdt conversion patches are (white >> space details might not have been preserved in the >> message): > . > . > . > . > . >> === >> Mark Millard > > Would you be so kind as to paste all this into : > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233863 > > Really I would like to run some tests and follow up in the bug reports. Okay I'll paste them in as attachments. But be warned: The 2 files do not deal with threads being stuck sleeping (and, so, the fans going) or other such. The stuck-sleeping problem happens for both multi-socket G5's and multi-socket G4's. (I do not have access to single-socket multi-core powerpc64 or powerpc machines to test.) So do not expect too much from these patches: They address some necessary issues but are not sufficient for everything. These patches for the openfirmware->fdt translation are closer to being reasonable for FreeBSD official use than my highly context-specific stuck-sleeping patches for usefdt mode. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)