From owner-freebsd-ppc@freebsd.org Sun Sep 27 20:44:34 2020 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D0E43427E44 for ; Sun, 27 Sep 2020 20:44:34 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-24.consmr.mail.gq1.yahoo.com (sonic311-24.consmr.mail.gq1.yahoo.com [98.137.65.205]) (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 4BzyLn5Y96z4L8y for ; Sun, 27 Sep 2020 20:44:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Lb_q6_oVM1nn5TaUCu0I7TuMLJQxjaGI06rYDxub9OjJtmA2VRutGmIYjwHIklb Rkzwbm60O3Un3dhetwDqstEGJoW8zNvc1kDLacCWAp38ojBx.MxFtDmZdR21qPXubAdLoUhUP64p 0C6OqkmBppVqExfQ.ZB08ehu44nOG5v5bAQFWxmSLYl7Jk0ZxAU.DAkfAYblOqO8cTUwy4Waidd0 2LqsFhPg0dWCfJBxY5Jv6PTaEse02OTakyiPw1Q3nxLCkJBbDdh9ImTlwP_JFJantE6S4tHyCREA BbZE_gjR7TxM0nr22Wi3eZ_YwhWvpc_FZpyGzUYPE8Yfzyz9PMRrl3YRExPGSnCNME6QAJQd6L67 rXT3ElECmuO5Ga8IqcaJ_32PkgigWRnx5J5Id3JNIwy9QFNiIbL35IQjQ5Fvvt_sNfG3I04Ut1e4 6.8fVUr_8vKE3GgLMw4r4ZOO0jBLRzcI5X47qWFMBHbVRHE12irKhFLn0LVvg4NwPUeyJx28UVc_ 6ihAlgwxrAWlOX9ryJwO8XptQzEBom8zffB7n.QlsS2hnfEQAGru3IP.zG0bRGi4mlbA7UtHbE_n dGq5Cn0BDr79pxQUCZos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020 20:44:31 +0000 Received: by smtp407.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3c1cfa7ce9a4109a59c206e98fed7b5b; Sun, 27 Sep 2020 20:44:29 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: head -r365932 on PowerMac G5 (2 dual-core sockets): Crashes before login prompt if powerd is enabled in /etc/rc.conf From: Mark Millard In-Reply-To: <88052e3f-4b79-45ca-8ebb-9fc19cbc558b@www.fastmail.com> Date: Sun, 27 Sep 2020 13:44:29 -0700 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <7DC3081D-8B19-476A-990F-4DFD7003672C@yahoo.com> References: <52783D16-5DCA-45BC-9238-2518326454A1@yahoo.com> <6E99EE39-D2B8-415A-A5BF-823C0F0C22D6@yahoo.com> <11fe573a-24c3-47be-95ed-c601ec54f168@www.fastmail.com> <92f57afb-33cb-4d38-be17-4b8c81cb9c89@www.fastmail.com> <6a0ade9d-26f2-4448-b066-0b06ed3ba5ef@www.fastmail.com> <9D4314E7-92C9-4BDD-B023-8C9BC3DCCAB0@yahoo.com> <5E79BB07-D54B-4A8E-B592-F480211D0B92@yahoo.com> <88052e3f-4b79-45ca-8ebb-9fc19cbc558b@www.fastmail.com> To: Brandon Bergren X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Rspamd-Queue-Id: 4BzyLn5Y96z4L8y X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.35 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.86)[-0.861]; 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/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.978]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; NEURAL_HAM_LONG(-1.01)[-1.012]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DBL_PROHIBIT(0.00)[0.0.0.0:email]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.205:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.205:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ppc] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2020 20:44:34 -0000 On 2020-Sep-23, at 09:09, Brandon Bergren wrote: > On Wed, Sep 23, 2020, at 3:58 AM, Mark Millard wrote: >> On 2020-Sep-23, at 00:04, Brandon Bergren = wrote: >>=20 >>> . . . >>>=20 >>> Are you making sure to use the "dev /memory@0 100000 1000 do-unmap" = trick on 4.8.7f1 devices? >>=20 >> I know nothing about that and have never had to do such a thing >> historically. I've never had to identify "4.8.7f1 devices". >=20 > There is a bug in some versions of the PowerMac BootROM where a memory = page at 0x100000 would remain mapped without being properly listed in = the mmu properties (likely due to the way Open Firmware was initialized) = that breaks bootloaders that touch that page. >=20 > It is known to be a thing on at least 4.8.7f1 BootROM, but may also = affect other versions. You can see the BootROM version on the = OpenFirmware screen when the machine turns on. >=20 > On affected devices, the bug can be permanently repaired using nvedit = to execute the workaround automatically, or it can be typed in by hand = every time. >=20 > This is described on https://wiki.freebsd.org/powerpc In case it is related: in ofwfdt_fixups my environment uses: offset =3D fdt_path_offset(fdtp, "/rtas"); if (offset > 0) { . . . } else { #if 0 // Without the /memory0/available information the example // MPC750 iMac G3 PowerMac4,1 crashes shortly after booting // --from trashed memory contents from use of RAM that was // not excluded when available was being deleted. // // My guess is that openfirmware may also report to // avoid address ranges for which other things in the // environment are the cause, not just openfirmware's // internal memory use. // // So do not do the following . . . =20 /* * Remove /memory/available properties, which reflect = long-gone * OF state. Note that this doesn't work if we need RTAS = still, * since that's part of the firmware. */ offset =3D fdt_path_offset(fdtp, "/memory@0"); if (offset<=3D0) offset=3D fdt_path_offset(fdtp, = "/memory@0,0"); // G5's if (offset > 0) fdt_delprop(fdtp, offset, "available"); #endif } The // G5's line is also mine. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)