From owner-freebsd-ppc@freebsd.org Sat Jan 2 17:54:56 2021 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 82A3E4D8ECF for ; Sat, 2 Jan 2021 17:54:56 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D7V0J33Yfz4jCR; Sat, 2 Jan 2021 17:54:56 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com [66.111.4.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bdragon/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 5667178CB; Sat, 2 Jan 2021 17:54:56 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id E7BE227C0054; Sat, 2 Jan 2021 12:54:55 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute3.internal (MEProxy); Sat, 02 Jan 2021 12:54:55 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddvledgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdluddtmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertder reejnecuhfhrohhmpedfuehrrghnughonhcuuegvrhhgrhgvnhdfuceosggurhgrghhonh eshfhrvggvuefuffdrohhrgheqnecuggftrfgrthhtvghrnhepteefveelueekieeltedv jeeuuedutdfgtddviefhgeekhfeuledtteelvdffffetnecuffhomhgrihhnpegushhlqd honhhlhidrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegsughrrghgohhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqd dutdegvdefheekieegqddukedutdekheduqdgsughrrghgohhnpeephfhrvggvuefuffdr ohhrghesihhmrghprdgttg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 49FD1C200A5; Sat, 2 Jan 2021 12:54:56 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <00423D88-0367-4220-B20A-50307DA72A81@yahoo.com> Date: Sat, 02 Jan 2021 11:54:35 -0600 From: "Brandon Bergren" To: "Mark Millard" , "Justin Hibbits" , "FreeBSD PowerPC ML" Subject: =?UTF-8?Q?Re:_CURRENT_-r361544_breaks_2-socket_PowerMac_G4_booting:_"pow?= =?UTF-8?Q?erpc/mmu:_Convert_PowerPC_pmap_drivers_to_ifunc_from_kobj"?= Content-Type: text/plain X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2021 17:54:56 -0000 I was testing this myself yesterday. Things seemed to be working (other than usb weirdness) on my MPC7400 rev 2.9 dual processor G4 (PVR 000c0209) with latest. Can you tell me the exact PVR of your processors? (can find it in OF with 'dev /cpus/PowerPC,G4@0 .properties' and looking at the cpu-version: property.) I'm wondering if it is an errata that we're tripping over here. Regarding the alignment problem, I'm hoping to be able to update the busdma code to lean on the new MI bits, it's a bit of a mess currently. On Thu, Dec 31, 2020, at 3:35 PM, Mark Millard wrote: > [Continuation of testing kernel builds, but testing my own kernel > builds for the head powerpc updates not available from artifacts.ci. > Ends up: -r361544 breaks things.] > > On 2020-Dec-30, at 17:07, Mark Millard wrote: > > > A quick summary of what I found in a crude artifact bisect is coded into > > the filenames listed later. The earliest major point is the "1 CPUs woken" > > issue from what I can tell. It still happens in -r368820 . > > > > "2cpus_booted" means things booted and worked normally. > > > > "1cpuwoke_" means that the following was reported: > > > > SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken > > > > "_hung" means that it appeared to stop without reporting a crash. Never > > got to login prompt. > > > > "crashes_quickly" means that the the kernel did not get very far before > > the crash happened. > > > > -rw-r--r-- 1 root wheel 19179328 May 25 21:44:01 2020 kernel-r361494-2cpus_booted.txz > > > > Note: No artifact kernel.txz files for the range -r361495 .. -r361583 . > > powerpc checkins in that range include: > > > > -r361542 : [PowerPC] Fix invalid asm in trap code (Brandon) > > -r361544 : powerpc/mmu: Convert PowerPC pmap drivers to ifunc from kobj (Justin) > > -r361545 : Properly sort ifdef archs in vm_fault_soft_fast superpage guards. (Justin) > > -r361568 : [PowerPC] Fix radix crash when passing -1 from userspace (Brandon) > > -r361570 : powerpc/pmap: Remove some debug from r361544 (Justin) > > > > -rw-r--r-- 1 root wheel 19133836 May 28 04:28:01 2020 kernel-r361584-1cpuwoke_hung.txz > > -rw-r--r-- 1 root wheel 19181596 May 29 04:42:42 2020 kernel-r361624-1cpuwoke_hung.txz > > -rw-r--r-- 1 root wheel 19254832 Jun 3 10:26:42 2020 kernel-r361754-1cpuwoke_hung.txz > > -rw-r--r-- 1 root wheel 18869112 Jun 10 16:53:57 2020 kernel-r362034-1cpuwoke_hung.txz > > -rw-r--r-- 1 root wheel 19245524 Jul 8 06:04:41 2020 kernel-r363008-1cpuwoke_hung.txz > > -rw-r--r-- 1 root wheel 19259816 Aug 16 12:03:55 2020 kernel-r364274-1cpuwoke_hung.txz > > > > NOTE: -r364284 is where clang 11 started and the -O newly meaning -O1 problem started. > > (Previously -O meant -O2. -O1 messed up the kernel's ifunc handling until it > > was changed to explicitly use -O2.) > > > > -rw-r--r-- 1 root wheel 19369960 Aug 22 11:38:22 2020 kernel-r364488-crashes_quickly.txz > > -rw-r--r-- 1 root wheel 19203632 Sep 1 01:38:18 2020 kernel-r365024-crashes_quickly.txz > > -rw-r--r-- 1 root wheel 19367776 Sep 3 11:02:58 2020 kernel-r365304-crashes_quickly.txz > > -rw-r--r-- 1 root wheel 19279564 Sep 6 08:06:11 2020 kernel-r365378-crashes_quickly.txz > > -rw-r--r-- 1 root wheel 19205456 Sep 7 22:53:14 2020 kernel-r365444-1cpuwoke_crashes_late.txz > > -rw-r--r-- 1 root wheel 19446448 Sep 10 08:08:23 2020 kernel-r365578-1cpuwoke_hung.txz > > -rw-r--r-- 1 root wheel 19398268 Oct 9 06:05:48 2020 kernel-r366598-1cpuwoke_hung.txz > > > > Note: -r368820 still has "1cpuwoke" status and its USB is messed up (and > > it reports DMA misalignment) but it does boot. (I accessed it via ssh.) > > Note: for the below kernel builds I provided a "int yydebug;" for: > > usr.bin/localedef/localedef.c > > so kernel-toolchain could build (avoiding a link failure). > > Other than that, the kernel builds are of pure code from git using > KERNCONF=GENERIC , > TARGET=powerpc , TARGET_ARCH=powerpc and no other tailoring, avoiding > any questions > about my personal patches contributing. > > > -r361542 (64cc3b0c28b9) : [PowerPC] Fix invalid asm in trap code (Brandon) > > Things booted and worked as expected. > > > -r361544 (45b69dd63e84) : powerpc/mmu: Convert PowerPC pmap drivers to > ifunc from kobj (Justin) > > SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken > > was reported and it appeared to stop without reporting a crash. Never > got to login prompt. > > > NOTE: -r361453 was on stable/ instead of head/ so the above is a > works-then-fails pair with nothing between on CURRENT. > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > -- Brandon Bergren bdragon@FreeBSD.org