From mboxrd@z Thu Jan 1 00:00:00 1970 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 114B3D2F7D6 for ; Wed, 16 Oct 2024 23:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ULleNVWhHCW4UATlA2O9G4aSTHX92mPDU7FxrgzQRTQ=; b=IY+zxZG+gon+x2if85iB9JcjqY P5jv9UBlOEpYTQayN11un1zM6zXMIE776EBO4KqG5qTjqfPWGuAzoPuBB0FhvIU/sqTaAx8enNxCU 2SpdOgFKubGY6rbkJl5CdZrxF6vIlwIjWUkn9JOwdzLbenk8yvjVzUMu7IjwAT3GOdwfVQg5O1LD1 QnXRjBjU3F1EHu9A9GGx4UCv8BVif+0XOp84QxNlBG/LVkrJtHvHfmJxTZdXi8Y0O+SKABAMdluOA e2UFODEgBxoIlZtVNUQd4DX1mJL8o/ezviGBd7a5xIywKMQJ4pTit5To+OnEGDuWL9+5GYDNtaSC9 iERUPcrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1D0g-0000000DByg-0Uvy; Wed, 16 Oct 2024 23:00:54 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1Bwc-0000000D5o6-1iw6 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 21:52:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6631D5C5CCB; Wed, 16 Oct 2024 21:52:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FDE4C4CECF; Wed, 16 Oct 2024 21:52:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729115557; bh=5tc1+82dp6wDe1R4Y7etxIIb810WNhycOeeJf1JlQOE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hDPsV29+EOm/ykfCjAsueOv7DoLTPE4U0loqcER2iuqKZiI6QHGOj3TtMlKsCgnwy y3DQF7YygsKF/7QQCGIK1IQrPCNyxSl6InmpA0hM48nZrY+pNYH1aGPRwBofUgDrCW sc6OVe/571EutZXrhKX5xKPH00IN1/1ZvPbIWTNzjzudvgp/QeQR+p7Vfs4dMG12uy APbFiFVjelbLehAZavKop2ikrr77OwthCl6TgTcu7xDnxPBQ4ElfSXQu5YpyifSvzJ 9XCv9FHLxeacIFA18pgyxyptaztTK2Ozm8sMYGbm9lGXPYx2heIwYdDQWvVSs/thhR lTXoFH7AEEOfA== Date: Wed, 16 Oct 2024 14:52:35 -0700 From: Eric Biggers To: Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, will@kernel.org, catalin.marinas@arm.com, Ard Biesheuvel , Kees Cook Subject: Re: [PATCH v2 1/2] arm64/lib: Handle CRC-32 alternative in C code Message-ID: <20241016215235.GB1742@sol.localdomain> References: <20241016192640.406255-4-ardb+git@google.com> <20241016192640.406255-5-ardb+git@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241016192640.406255-5-ardb+git@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_145238_510082_448311D8 X-CRM114-Status: GOOD ( 11.90 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Oct 16, 2024 at 09:26:42PM +0200, Ard Biesheuvel wrote: > From: Ard Biesheuvel > > In preparation for adding another code path for performing CRC-32, move > the alternative patching for ARM64_HAS_CRC32 into C code. The logic for > deciding whether to use this new code path will be implemented in C too. > > Signed-off-by: Ard Biesheuvel > --- > arch/arm64/lib/Makefile | 2 +- > arch/arm64/lib/crc32-glue.c | 34 ++++++++++++++++++++ > arch/arm64/lib/crc32.S | 21 ++++-------- > 3 files changed, 41 insertions(+), 16 deletions(-) Reviewed-by: Eric Biggers - Eric