From owner-freebsd-ppc@freebsd.org Sat Jan 4 01:08:49 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 7210F1D9961; Sat, 4 Jan 2020 01:08:49 +0000 (UTC) (envelope-from bdragon@imap.cc) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 47qNvN34qHz4bB0; Sat, 4 Jan 2020 01:08:48 +0000 (UTC) (envelope-from bdragon@imap.cc) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 67A9B465; Fri, 3 Jan 2020 20:08:46 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute1.internal (MEProxy); Fri, 03 Jan 2020 20:08:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imap.cc; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=5qpwyyrIJBiGHrf9XWkey/iERAQoBmU lID7JKCk0GqE=; b=DXOBEoep51J2VlK0pNZ8EcJYAbm0NxkqcXnOIg98jG3tN5A UKmiGlTOirLY5KketkRhiVsQzTA+WhqBnoqSF0ygPunwNv1Rc5rR0IQnwCsclaxo g37mt19aX3/2Sbvs1DYXDeqtqR2oYofNaAMP3WLrG0XCwQuso2klZxINonPimEbS V7NIhXJM7Bty+tBZQBWD6fu9okOwylB2uFyMTdWI0QpYORJ0AFZybZpiSd1et9Z5 cxZ5dEWn6Jp5VlmVA3jid1JxyI85LcmP4PMYlVq+dtg/FZAu5LLyvj+aNs3BeQI7 sJLYY0BR/D3lOngR/5qVrihQBoxODEae3Lt9A5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=5qpwyy rIJBiGHrf9XWkey/iERAQoBmUlID7JKCk0GqE=; b=XbIIYwIoavVEj2sN0Gyt2z L/N5w6gsH+K2oDQWUbWi9yjPhW64v/X8vLv4vMMmo1rpVFrZa3z0pm59THqBzy5o WyVyPtzjEyGHLRm439lgvYu6CIOna907V2EDeKtUXNUJ9VQlClYCo+7M6z2H8gET 3SdUf2E0Hevs7ndVAUWyFFdAw5MH4We2C89GMsFp4z/Jtxps6vJF8v5X3QsaNdXz Ov1uRYXzIpnuhbNLzW2JENGrWlI8IRO6K3bzYm9pa/0/qNNZdmP/pkm34hM6w9+6 lf3js7csX1zo+4VOJLtfO/evObtdcif/DfdTL7q4fBq1oG4Ouk6lIbjVSLifEgag == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeggedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdluddtmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertder reejnecuhfhrohhmpedfuehrrghnughonhcuuegvrhhgrhgvnhdfuceosggurhgrghhonh esihhmrghprdgttgeqnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgpdgushhlqdho nhhlhidrnhgvthenucfrrghrrghmpehmrghilhhfrhhomhepsggurhgrghhonhesihhmrg hprdgttgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B8A48C200A4; Fri, 3 Jan 2020 20:08:45 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <74629EC2-E81E-44D7-B767-2B95084E8982@yahoo.com> References: <74629EC2-E81E-44D7-B767-2B95084E8982.ref@yahoo.com> <74629EC2-E81E-44D7-B767-2B95084E8982@yahoo.com> Date: Fri, 03 Jan 2020 19:08:24 -0600 From: "Brandon Bergren" To: "Mark Millard" , "Brandon Bergren" , "Justin Hibbits" , "FreeBSD Current" , "FreeBSD PowerPC ML" Subject: =?UTF-8?Q?Re:_head_-r354701_seems_to_be_why/when_32-bit_powerpc_FreeBSD_?= =?UTF-8?Q?stopped_being_able_to_boot__PowerMac_G5s_(2_socket_ones,_anyw?= =?UTF-8?Q?ay)?= Content-Type: text/plain X-Rspamd-Queue-Id: 47qNvN34qHz4bB0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=imap.cc header.s=fm2 header.b=DXOBEoep; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=XbIIYwIo; dmarc=pass (policy=none) header.from=imap.cc; spf=pass (mx1.freebsd.org: domain of bdragon@imap.cc designates 64.147.123.25 as permitted sender) smtp.mailfrom=bdragon@imap.cc X-Spamd-Result: default: False [-0.89 / 15.00]; XM_UA_NO_VERSION(0.01)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; FREEMAIL_FROM(0.00)[imap.cc]; MV_CASE(0.50)[]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[imap.cc:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[imap.cc,none]; SUBJ_EXCESS_QP(1.20)[]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.82), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.68), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_LOW(-0.10)[25.123.147.64.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; FREEMAIL_ENVFROM(0.00)[imap.cc]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[imap.cc:s=fm2,messagingengine.com:s=fm1]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_WWW(0.50)[] 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: Sat, 04 Jan 2020 01:08:49 -0000 I do have fixes for this (the offset computation was assuming generictrap was always generictrap) but there are still additional problems that I am trying to chase down. I was banging my head on the bridge mode trap code for days and I still haven't isolated what's going wrong with memory. I might just clean up and submit my fixes I have so far, even though they aren't sufficient to get things working fully again. I think we're also hitting a clang optimization issue. :-/ On Fri, Jan 3, 2020, at 3:18 AM, Mark Millard wrote: > (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) > > -- Brandon Bergren bdragon@imap.cc