From owner-freebsd-ppc@freebsd.org Wed Sep 23 06:53:20 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 162BD3F0982 for ; Wed, 23 Sep 2020 06:53:20 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4Bx85W6xtZz4Njn for ; Wed, 23 Sep 2020 06:53:19 +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 D30432380B for ; Wed, 23 Sep 2020 06:53:19 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 9FC8D27C0061 for ; Wed, 23 Sep 2020 02:53:19 -0400 (EDT) Received: from imap1 ([10.202.2.51]) by compute4.internal (MEProxy); Wed, 23 Sep 2020 02:53:19 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudehgdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdluddtmdenucfjughrpefofg ggkfffhffvufgtsehttdertderredtnecuhfhrohhmpedfuehrrghnughonhcuuegvrhhg rhgvnhdfuceosggurhgrghhonheshfhrvggvuefuffdrohhrgheqnecuggftrfgrthhtvg hrnhepvdefkeevhefgiedvfefgtdegueeuhffhueelleetgedvgfejjeeiueehtddthfev necuffhomhgrihhnpehllhhvmhdrohhrghdptghpuhdrmhhknecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsggurhgrghhonhdomhgvshhmthhp rghuthhhphgvrhhsohhnrghlihhthidquddtgedvfeehkeeigedqudekuddtkeehuddqsg gurhgrghhonheppefhrhgvvgeuufffrdhorhhgsehimhgrphdrtggt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6AA7EC200A5; Wed, 23 Sep 2020 02:53:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-355-g3ece53b-fm-20200922.004-g3ece53b9 Mime-Version: 1.0 Message-Id: <6772c0dd-600c-49ea-91dc-9babd042a4e5@www.fastmail.com> Date: Wed, 23 Sep 2020 01:52:00 -0500 From: "Brandon Bergren" To: "FreeBSD PowerPC ML" Subject: PowerPC64LE is landed in HEAD Content-Type: text/plain 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: Wed, 23 Sep 2020 06:53:20 -0000 As of r366063, all of the relevant bits of my work tree (minus enabling if_bxe, which is not yet working properly due to some queue initialization issue I haven't figured out) have been committed, making powerpc64le buildable and runnable without needing patches. Current status: * Self-hosting on POWER8 and POWER9. Cross build from AMD64 well tested as well. (Depends on the in-tree clang 11.0.0-rc2 compiler or a clang otherwise patched with https://reviews.llvm.org/D73425 -- the next time devel/llvm-devel updates to a new snapshot, it should become usable as well. The patch itself is a trivial change to the target code and should work on other versions just fine.) * Installer works fine on POWER8 and POWER9. (Tested and supported on Raptor Talos II/Blackbird POWER9 and Tyan POWER8 equipment.) * Will be part of the next snapshot run. Todo: * Update the platform support matrix to list the new TARGET_ARCH. * Send a pull request to add powerpc64le to the CI build matrix. * Fix pseries loader logic to be able to interpret little endian kernels. (Initial bringup was done with -kernel / -append, bypassing loader entirely, and then switched to hardware as soon as the system console was working) * Generally go through and retest qemu. Fix any issues preventing easy installability. * Update bsd.cpu.mk for targeting a baseline MACHINE_CPU of power8 instead of "aim". * Default to having the ISA207 atomics turned on. * Fix the string optimizations I skipped in libc. * Fix POWER9 Radix mode. * Look into the feasibility of switching to 128 bit IEEE long double (it's dependent on software emulation on power8, which is supposedly something provided by the compiler.) * Join or otherwise work more directly with clusteradm@ so I can help out with the POWER8 / POWER9 cluster hardware issues. -- Brandon Bergren bdragon@FreeBSD.org