From owner-freebsd-ppc@freebsd.org Fri Jan 3 09:18:29 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 680811EBE29 for ; Fri, 3 Jan 2020 09:18:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-20.consmr.mail.gq1.yahoo.com (sonic309-20.consmr.mail.gq1.yahoo.com [98.137.65.146]) (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 47pzpq3PlXz4bRl for ; Fri, 3 Jan 2020 09:18:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 7XB1gfUVM1m3RI1RsXNC6kcfmgWPE.WM9dOnJ2ACTRoP_VI6I8arMNMrPSZhwc9 4fz346tVHvhcX8h6OUbLjo6jaRzp_nkW0g4P9dSqXriXIg5U9SkyGNmITt3F0TqigLUPZT66.IrL JcAI9VQylGVqlG3Y5a0cYyWMfeF42qVz5ov07qjHygwuE99Kb5bvnSGt0wem5G_mOQ8XmxqIPHCv v_ABmuBy17Gz867hd1u0lyshEB.KunXho4FxnHew0_zf_t9e_PMwy6Abz2drRXLGvHaEmiIKB5h_ 5ogFKeQFVZjE_z9CHFGr0Y06NrP8fUkfJEWTiArmGXwQjzO2TEkimiU2NSut1dRRzqqVlSNPSCw0 r_4BiHSg_hyonUn0W.g7Vbpz6ha40F3d9X2v3geWSrQ9.xo7E7HN3xVxGfqcqlaYrj9pytF6ABGY dsOOx5tkWX_M.SJyGro_mG6nyAb9n2__.NvONYIv7oMEj42IBopVcQI0H7gdD2M0WAm1uCrG5hZN awzC8MM.mWzlaoUpGjXLDYdfAvmjiuqJ0KWskWZQjcLNmwITS8Hi.GZHL8idahVjKe1MWtoXsegO JHheXQNlTAeA58uoyY1gYdKjU6cTNqLl.R1hDq1TxUZKYsZ.6xq4oRFLCgdpxexfyJbEz_Z0sK4o d6OeNc8oDrc1ZcouWWO2PLb.sC1tapXGAFiLaSbQ5OmeG2iOq0N1L0eBOdMRfTl7WAQ9yruwXLbX BmxXtDWIvY99xWDcqV5LoHfVh4jFbLPyO7TaykZ17ztlsLghRpxGSVt4zJy6kfV.v7ojTR5eloew t7mxB6KGaLqfwoXeMNi3Gqu70SgRChVnQSayXI3i44bxa22d2PKjVYL1xXXyfAukeMg_gYzMKbB5 g4lahkm0NtfdmItu7V88ciZnSoahdM1O66WWHjNZov7PyqVWlLuYBsz.35G1z8RGXjFG8yzf1XPV T_2CyNZ2Bra7zXCOKJxu2bSBpGWodGQV31DzK1NEB9YozcCwP7YAUuYG1A5_z2S_YEZKEcgiRLiD AGpeudvM3Ge7eUoHnKvluw52sUXPZMeUTVrGwoIWZ_bSNpkfmxfimYKAHDZWSR0sFQfCF4K7Whzl J9fW_IOth13mA3SM_VxbPnoFv2QhZ3NID_w9iWd1Qq8prgkZ3oBbguLXiB3CHGeEZA8kbGEWYDzf TYYrdGIt4vEHDqYl1RXAqTeL5zniVGm7ZglA2fCBbaiGL5.Z4oU8T_FDKTZ7ZojKbAtN_w0QiPCa WX8WX9uP5Nr8GiEq.k4uUB_Fgrg4YMLWiqPvLw168MQ7AXn.fwq6YFYJ52Tb4ypuFEqAic68U.FG MJqpZpOCHaNwDnfhZHYncPxYAM8b709WeuPchIaFQby1495K82DynU6fT8RqTH2tJa9SfDnpw81l Md71Gyo4T0GibVjW72aoVQuhxon2N1RU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Fri, 3 Jan 2020 09:18:25 +0000 Received: by smtp415.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 474d053d45a3b4a793bc816ed52fb0df; Fri, 03 Jan 2020 09:18:20 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: head -r354701 seems to be why/when 32-bit powerpc FreeBSD stopped being able to boot PowerMac G5s (2 socket ones, anyway) Message-Id: <74629EC2-E81E-44D7-B767-2B95084E8982@yahoo.com> Date: Fri, 3 Jan 2020 01:18:19 -0800 To: "bdragon@freebsd.org" , Justin Hibbits , FreeBSD Current , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <74629EC2-E81E-44D7-B767-2B95084E8982.ref@yahoo.com> X-Rspamd-Queue-Id: 47pzpq3PlXz4bRl X-Spamd-Bar: / X-Spamd-Result: default: False [-0.98 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; 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.28)[-0.277,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-0.20)[-0.203,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (7.42), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.70), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[146.65.137.98.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] 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, 03 Jan 2020 09:18:29 -0000 (NOTE: I only have access to 2-socket G5's, so I do not know the behavior for other kinds. I've access to both 2-cores-each and 1-core-each contexts.) This analysis is based on installing artifact.ci.freebsd.org materials and testing if they boot the G5's or not. Other than a little /etc/fstab and /boot/loader.conf material, the artifact materials are unchanged. My builds are not involved. -r354702 fails to boot. (Details later, below.) -r354700 (the closest prior 32-bit powerpc artifcact) boots fine. -r354701 and -r354702 are: Author: bdragon Date: Thu Nov 14 04:34:17 2019 New Revision: 354701 URL: https://svnweb.freebsd.org/changeset/base/354701 Log: powerpc: Kernel fixes for ppc32 and powerpcspe w/ lld Fix wrong section ordering that was causing a ".got is not contiguous with other relro sections" lld error. This also brings ldscript.powerpc and ldscript.powerpcspe closer to ldscript.powerpc64. Also, remove unnecessary text relocs from the ppc32 AIM trap code. Author: mav Date: Thu Nov 14 04:34:58 2019 New Revision: 354702 URL: https://svnweb.freebsd.org/changeset/base/354702 Log: Make ntb(4) send bus_get_dma_tag() requests to parent buses passing real bus' child pointers instead of grandchilds. DMAR does not like requests from devices not parented directly by PCI. At this point I'm guessing -r354701 since it is powerpc specific. The following is based on typing from screen images . . . Failure style #1: . . . Trying to mount root from ufs:/dev/ada0s3 [rw,noatime]... SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken WARNING: WITNESS option enabled, expect reduced performance. (And that is all.) Failure style #2: . . . Trying to mount root from ufs:/dev/ada0s3 [rw,noatime]... SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken WARNING: WITNESS option enabled, expect reduced performance. [ thread pid 1 tid 100002 ] Stopped at dsmisssize+0x68c: illegal instruction 0 db> (So just 3 more lines showing up.) NOTE: I do not claim that there are not more problems later in head's history that fail even earlier in the boot, thus hiding what is reported here. There is one that I've not yet isolated the first artifact version for. Thus, testing for what I'm reporting here may require using older vintages of FreeBSD, unless other problems are dealt with first. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)