Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D05D0C25B0E for ; Tue, 16 Aug 2022 19:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Cc:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Rwbhy1vr/BZab57v+EeCq7ZJJGbpbqQeIiZCdo/AQEY=; b=oYHAl/PXfsDK8X7RWQpBF7L5Q5 L/guE7IOBVeOXq9X+Yvpr1cvuisVsFa1rHcFczPQiBoS/K+KCrBfIqmnPtSDlN4my2sbHz8Edxx48 g0suNLYxBZ9gmO++XL3VrIFoVAu8X+knfNazAt9anXt3ph4lt3uzvXi2fZZtQjEEAe9THQ24KYb1l 6jIUSWav2DvzgY8PCkjJyHrXhBVbd9JXmp/JXkoaCts7nCBaAgPhr4VWEyvC3a5UnZwgCD5xhduL3 2C9mhspiB4kPo5UvRoG/lMpQyquWcZNZ5g1x/kAdu5D1pLCU2+KKGyisFYuTfDnPZ2XQYmcjP7mhh W2cLAKmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oO2FW-006PzF-Rj; Tue, 16 Aug 2022 19:29:14 +0000 Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oO2FU-006PvE-1m for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2022 19:29:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=53Zls/u6dm4UHFGfgA3D4eEt/P7hQROdIuRhyuM14sA=; b=cBDZRg7l0IdqpQZIDkPMUnC7OS S4y6Non+nH/UhK5ACDWHeR0TyDDIFCcz9LiYeHNx46gUF7A2wA9tnCCPBU9u2LCQyrPrMLeJYF9mi /RfdX08DzXt1/SQzuuyxU4JJ/vC2iF2PVICwX+6RoFXgLYrxh3hX++oMfDi620nlT+5q3V1bsoi9O EJQLRyL+AVDKjxz58gtDCKTULczashs+3MVcd6xtAPTyd5YYn5oC0X3Xc95xeRxd+MbcAkpKpNmvx TWfDaPMHuG3onAudEW+KepQSf9zAlWhxQEnCUE0YvvkT+5jsoPwXhsizhDX4x6A+Y1HcKBXJgto0C WIdqvn2Q==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1oO2FO-000Esp-QH for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2022 19:29:06 +0000 Received: from [2a01:e0a:406:7381:12d4:684f:f4be:978c] (helo=ohm.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oO2FL-009aBp-SA; Tue, 16 Aug 2022 21:29:03 +0200 Received: from aurel32 by ohm.aurel32.net with local (Exim 4.96) (envelope-from ) id 1oO2FB-0006mR-2G; Tue, 16 Aug 2022 21:28:53 +0200 Date: Tue, 16 Aug 2022 21:28:53 +0200 From: Aurelien Jarno To: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, arnd@arndb.de, will@kernel.org, mark.rutland@arm.com, maz@kernel.org, broonie@kernel.org, debian-arm@lists.debian.org, Vagrant Cascadian , Riku Voipio , Steve McIntyre Subject: Re: [PATCH v2] arm64: compat: Implement misalignment fixups for multiword loads Message-ID: Mail-Followup-To: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, arnd@arndb.de, will@kernel.org, mark.rutland@arm.com, maz@kernel.org, broonie@kernel.org, debian-arm@lists.debian.org, Vagrant Cascadian , Riku Voipio , Steve McIntyre References: <20220701135322.3025321-1-ardb@kernel.org> <20220714015214.GP27816@mail.wookware.org> MIME-Version: 1.0 In-Reply-To: <20220714015214.GP27816@mail.wookware.org> User-Agent: Mutt/2.2.6 (2022-06-05) X-Debian-User: aurel32 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220816_122912_125470_67DFD43F X-CRM114-Status: GOOD ( 25.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6015396103357280617==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6015396103357280617== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YlXoRLkXTYzJh984" Content-Disposition: inline --YlXoRLkXTYzJh984 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On 2022-07-14 02:52, Wookey wrote: > On 2022-07-01 15:53 +0200, Ard Biesheuvel wrote: > > The 32-bit ARM kernel implements fixups on behalf of user space when > > using LDM/STM or LDRD/STRD instructions on addresses that are not 32-bit > > aligned. >=20 > > This feature is one of the remaining impediments to being able to switch > > to 64-bit kernels on 64-bit capable hardware running 32-bit user space, > > so let's implement it for the arm64 compat layer as well. > =20 > > Note to cc'ees: if this is something you would like to see merged, > > please indicate so. This stuff is unlikely to get in if there are no > > users. >=20 > Decent 32-bit arm hardware is thin on the ground these days. Debian > still has some but it's getting old and flaky. Being able to build > reliably on 64-bit hardware is important and useful. Unaligned > accesses are much less of a problem than they used to be, but they can > still happen, so having these fixups available is definitely a good > thing. >=20 > Debian runs its 32-bit buildds with alignment fixups turned on. It > looks like the boxes still hit about 1 per day. >=20 > We also do 32 bit builds on 64-bit kernels (in 32-bit userspaces) and > it mostly works. We do have packages that fail on 64-bit kernels and > have to be built on real 32-bit hardware, but I don't know how much of > that would be fixed by this patch. Some, presumably. >=20 > So yes, cheers for this. It is helpful in the real world (or at least > it should be). I confirm that this would be very helpful to Debian, so that 32-bit binaries behaves the same with a 32-bit or a 64-bit kernel. Otherwise we need to keep running (old) 32-bit hardware. What's the status of those patches? Thanks Aurelien --=20 Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net --YlXoRLkXTYzJh984 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAmL77/MACgkQE4jA+Jno M2uCPA//UCpel4gWe+pd6gig8CVlxLRJMEcKrQCnOsZ1vrlxZTdvQx8bPdMJ9kP2 f7b178NhDkbfG/2R5pW3NPP9kPCpYt82nb9Pk1p6gueutn/7ZBLHbSCHhIBvZlFT zXgVAeXUnGiPGxAeQHRMX25z8yAd4Erpu9iS3nLCGZ3wOqk/4qCxmaOd84O45Ij4 /qpzcvcoOKV37EHMHHs7HD/F8CNlv4z/TqlIGl1tMG+lH8D6O13d8V+yR+tJ5pzN XIp3HfeQnw226ikrf6/T0VQtrTLbNzwU0wGrijahP/X59ykRkN70gFUC9aJASSxA iVyK8EJM9t+lfMmXTOm/Dl6sx+g1dx3CQ+/V3O5cAFE4kHypDYUN509kSOeYYh6p rNOgUMBdQPyidpZxntKugQKn94eF39HSMIgZiVYShfWGpKY4GTq91h08CaRE61ff F9llGFULNiqQEPewCzR9ckv8d/rKlLRKaylReCXpJ8+s4lahXl7ePJbAtVfI+1wP +l656WG13JXyF5IzPNJ+YyP6tfOEdPD3EKeYHM74K90DQNLi1hfB1fxP/HXEgeCj rXEg/bahJkPkHeFP3XvbJ2m9VrKi1NIoNeG5G4y1QHf8/RAc0dTrKjEbcr5+g2MK CXhn6lQ36Zxt/pojlmBxgVtK6gf2D277FtxIOOuR6CWXR1ze+lk= =AZY8 -----END PGP SIGNATURE----- --YlXoRLkXTYzJh984-- --===============6015396103357280617== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6015396103357280617==--