From owner-freebsd-ppc@freebsd.org Tue Apr 16 04:44:57 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 9D8B21588CD6 for ; Tue, 16 Apr 2019 04:44:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-23.consmr.mail.gq1.yahoo.com (sonic303-23.consmr.mail.gq1.yahoo.com [98.137.64.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 A73C273411 for ; Tue, 16 Apr 2019 04:44:55 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: W0Is_WAVM1kO4KXOXFwCyjL29sWNa0VVlNGqZEZZ64Enz9LBQZJtGTcfS4tvES0 KAjibSK6NmblLA0j88fN.O976RI21wBdIBrYhHQcEGEr.F66Dq23NrYPWeqcIuo6349x7EG0y.S7 Vb3tMTgHVYEZDqk8SH7r1_CQHn1J46iy1uC56D21kwdar07q6FkRCOYY3AutZUZbU77YlAxctjPM vQSRsjEscNC2xZmHj9100MQ2iv_tB5jIRtLeuz1eVZdLJFWjP2qxqY2vvx7lXI28HDBw0yBK0Jex UMTChQ6yv.LzMNVaaOty6UeugZQXQtALDv5w1wyRFLIsM4r0h8_ue5bCJYsgcUrzNEfzJOsxo5Tl ls_Nvxfr2peoC3zwVBf8b5ppYMmcXwcz6RNRgGe_rRD3g9hmTGTGDYFEIE0f6CbXYP.d4Rtw1SrP f9xVk4dK076Neiu_9SG4pRMExdXQ3Rz7ep1Fg3rRKaXhum4jakZ_kiHRjD7tXzx58N2cQHUT6QdH scFduMI8OFmKUV7frJubG6yPTCitKLMuXZtmyD.beufZeGMml_WotYVNd55xr0TYWFYUaxrrzSPC ndLm1h9MOY33DAYyqwD7tJunTQYpY90_EuUXJkHkwhapNzMxXokRn0Ud8R2_yauBwtxIU4mBYjAh h39RU4ImwgNX9ruhxP5rr_GyAIieHw_H7RC10jqTYafo5I3lljbzK9wQQAxiq.4T6KswIleIf4eK 3SmHVIUcZw16ARaPzm_V6s5k2Fs92YEUBOyGYh9Qffb_zuP3g2NaijviYG5Rm9rkbPhvMTK76ZYB xRm01_6ZQND.wXSDaxauw7beJ5Fjh1iDU_ZIWUkcc6ScsPYtzJt7PNAOhDv2Y8UAWh_lKjMyhw.u 6j.HJnaErQ28RLM2vzND8JOSK6CJSM6IQ3.FyXzxJkUusnhnE74WU7UquSiwOVOafNhlH0iUW5L. xRKqYgFQQEPDyioXbYHB6AWbcOFDdhtAiyChElxCydUAxw_1NVpYJI3BCUzzb6AIeP2K6FWUdhw5 yBk3rIjlhK51Vje7v6k2ZeG2Vk.Z_QQFXM1Rcqxdb0AbDFAChVLeHzQmI0as6cgAHLtlk4PPHjEo hSxE.0Q-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Tue, 16 Apr 2019 04:44:48 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp410.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3ed51b32dff3ccf68a761fb9dbcd14a7; Tue, 16 Apr 2019 04:44:45 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: PowerMac11,2 G5 (2 socket, 2 cores each) powerpc64: sometime between -r302214 and -r333594 owfdump -ap leads to 'timeout stopping cpus' and ddb> prompt From: Mark Millard In-Reply-To: Date: Mon, 15 Apr 2019 21:44:44 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: To: FreeBSD PowerPC ML , Justin Hibbits X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: A73C273411 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.19 / 15.00]; RCVD_VIA_SMTP_AUTH(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]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; 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:36647, ipnet:98.137.64.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.61)[-0.609,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.15)[0.149,0]; NEURAL_HAM_LONG(-0.89)[-0.887,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.66)[ip: (1.69), ipnet: 98.137.64.0/21(0.94), asn: 36647(0.75), country: US(-0.06)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[204.64.137.98.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: Tue, 16 Apr 2019 04:44:57 -0000 [I have a hypothesis for which change made the difference.] On 2019-Apr-9, at 19:10, Mark Millard wrote: > [32-bit powerpc FreeBSD booting the same machine > does not have the problem, just powerpc64 FreeBSD. > I've been using -ap with ofwdump but it might not > be essential to the observed problem.] > > In trying to track down a problem, where I wanted to use > ofwdump -ap information, I ended up finding and checking > old boot media that happen to be around that target > powerpc64. > > The oldest failing: -r333594 (an 12.x-CURRENT time frame) > The newest working: -r302214 (an 11.x-CURRENT time frame) > (No versions around between those.) > > (As almost always, my powerpc64 builds are experiments > targeted via toolchains more modern than gcc 4.2.1 and the > like.) > > Those listed above long predate any useful usefdt > boots/operations in my context. The 2 powerpc64 builds > before -r302214 worked. > > (The original problem that started this is that usefdt skips > some ofw nodes. Then I found that not having usefdt mode > lead to crashes for ofwdump -ap . So I went looking at > the few historical builds that I found.) > > Modern powerpc64/head FreeBSD without use of usefdt mode fails > somewhat differently: scrolling console messages going by too > fast for me to read after starting ofwdump -ap. (It might be > back-traces.) No ability to get to the ddb> prompt and no > access via the network. But modern FreeBSD has various > blocking issues before one can even get this far. [The note about scrolling console messages was tied to an automatic bt that got another trap that caused another bt --and so on. I still had code for looking at early boot time frames enabled (covering before keyboard input works).] In observing a crash it appears to me from some register content that openfirmware_core had possibly called ofwcall and then an unexpected trap happened, which leads back to stop_cpus_hard via kdb_trap via trap_fatal. That stop_cpus_hard is what reported the "timeout stopping cpus" from what I can tell. (Trying to stop several already stopped cpus?) [The crash also happens on the PowerMac7,2 when used via powerpc64 FreeBSD (but not 32-bit FreeBSD).] Well, one possibility for new traps during some ofwcall use might be: Revision 330610 - (view) (download) (annotate) - [select for diffs] Modified Wed Mar 7 17:08:07 2018 UTC (13 months, 1 week ago) by nwhitehorn File length: 7642 byte(s) Diff to previous 328269 Move the powerpc64 direct map base address from zero to high memory. This accomplishes a few things: - Makes NULL an invalid address in the kernel, which is useful for catching bugs. . . . It is from the time frame between the two examples (failing vs. working). === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)