From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796140861; b=ys1kBbcqBxfKxbOTxZ5z4tp9XjzmQ2Ld1Y5RqSLTpFgJ0hAU05caaLZY+oND720SGmb2 QUzgP1s9xhiDKTETHA4uW4x6AY2fnjBkJX0XkR7/1tdLbkP5iV+k3IcIA0pbw7roLMpc6 1ISvgGIF69/prgsz1JSirfP+lQEN1paYwQ6E/cfr3G/0TEEFZAjgp8syKqdez/iUowDwq +T/R4OycQe37ZZkSQq7WuJ9nfR/kFZwQ9GINRb4IVyBtY/vAkxhEZvoZXm7007hZ9poiF iOusq1p84YDsRwEHWOZoy+sHH36MSoSxXZeMTmMulzQlERurwpwJpySWxGtXlz1nLYg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796140861; h=Received:DKIM-Signature:Received:Received:X-ME-Sender: X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer: MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type:Content-Transfer-Encoding; bh=YAIC+idfFC46ZfudVKBvKRRl3Zu13kupl4InwiQH22s=; b=Dtx9VdiA7OQfLn1QHQ79RzbOjaNcT490hcQj/9uLXC3OQbL5HykDacBBXzDtoj1iZTt6 rwVENjRkq45/VDxNkFsIS5bLD/AfSWRfAztD08pwNR994wXYjHToW6cc2PsV02GUC7LZM y0K/M7aARGeyogwHf789paaDHaLxil7AmMpZUy2B43YidhVATqTocp60WNvwRXghcPztR VUZ6/ELp0pOp/Pswg5jqneTKaB3YYUE7U1kjFohpuKQWgcWapkfpdEdNyWSCZoKZSkiHG gw/2aC9fhBcbyNO8uvOydwKy6SuN6w3Ehm49dPS1jrzS2N2l72YNqzRfeJAaa/KO+mw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LmBLHW2x; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29E53606A31A for ; Tue, 1 Dec 2026 16:01:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LmBLHW2x Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C95E1F0089F for ; Tue, 1 Dec 2026 16:00:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796140860; bh=YAIC+idfFC46ZfudVKBvKRRl3Zu13kupl4InwiQH22s=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=LmBLHW2xq/1q7dT8dqa9a+b2A9lAs65L2fIW+Uo3vI0LIITPHW4uMFGa6anmjjdG8 7u9mVY8xaWUP5XTNcZxfX48y+rCDgFHDv8zvOTohXF3fVFh7wMfercV3gT4hP0dezX HFKMNRR3uA3aAGBlEsYGlp7B8+2hhb1YfLv8G0D1QUhTiv7k6WSurrVDJ7SPs7ozHt WjyTtcK+HxpGCn3nNsBZE2xAAg1hMD94S6zl2Qn9q3jwFNi6akGhmHNQ9bLSiabHan YokKk5fGq3jCQokCX6l8a4Kdw12F1Y8D7EPTfiqp2x/pCY08+hcq8cARzX5ffcdiy+ /rEaDlI4N6pWw== Received: from ams-compute-02.internal (ams-compute-02.internal [10.64.2.62]) by mailfauth.ams.internal (Postfix) with ESMTP id 2CE6D198003A; Tue, 1 Dec 2026 11:00:58 -0500 (EST) Received: from ams-imap-11 ([10.64.2.31]) by ams-compute-02.internal (MEProxy); Tue, 01 Dec 2026 11:00:58 -0500 X-ME-Sender: X-ME-Proxy-Cause: dmFkZTGGSQ/TnZHbXMIiY2KLMZtijNooh6XtgwH3twG8PQSXpxYi17CRMe++bQmFXQiv8J pjiD5WRcrRepZwJL82V0fEyDVMGfnggv4rwTG71PpkOZwfUX2gue3sKeSQaDwQr++2sGsq oU0uCM1YoeHwOk3W9jRY478QwCjJBAEaaSUA3xkvnMD4m5lIVf0ks5Fik/enUjtPZ5mCHw KDAaiSH8kU/FlSm7BAa/iOO5bgpP0gaMYz/1BRasgSKHRlpQQhT30M3FnsgHzfwB9kkqRE I0jy9ACknqMo01GyJgCvOfwwwMRUOYKESd424xdo+Y4scbzcaN2QTko9sIwn+gXBIq+Aqb gmRPBmPKE6TpLtzPwy8FS7vJTt5QzfPIgR0zDf2mrNafo175IoaVHF44oDeFPP0uzEcD0c GwXbRSk36sI6zzNixmn2eK5s0+wigw/5c3EGVJ44X0Y7ENiEeev2zizLLAZp+/gjccotz3 GWj8Isli5LsXuOXa1bD/pfDjZg0bGbQx7nrk6ybO8CO99Rj33V5ErEtXfhz+BVQzKwGAcz lc5Xpb20vRHonZvoiloKq3Kv/vPZV1Y/+hgGUXSGeziSbiNTrMfwIIOCQsA3WfBUTURvhl mKaFWPyml1V9teryLvhBf7U+tVCHw9uGJzToPSd6cYAmMi1tPeyCzpMJ5pPg X-ME-Proxy: Feedback-ID: ice86485a:Fastmail Received: by mailuser.ams.internal (Postfix, from userid 501) id DD2B2F8009A; Tue, 1 Dec 2026 11:00:56 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Tue, 01 Dec 2026 17:00:36 +0100 From: "Ard Biesheuvel" To: "Shreesh Adiga" <16567adigashreesh@gmail.com> Cc: "Eric Biggers" , "Demian Shulhan" , linux-crypto@vger.kernel.org Message-Id: In-Reply-To: References: <20261201130244.1490096-1-16567adigashreesh@gmail.com> <189970d3-d56f-4a58-a4c9-52343f18952c@app.fastmail.com> <99f8ab26-4e80-4baf-870a-002c82a5c389@app.fastmail.com> Subject: Re: [PATCH v4] lib/crc: arm64: Add NEON PMULL+EOR3 crc64_nvme implementation Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, 1 Dec 2026, at 16:53, Shreesh Adiga wrote: > On Tue, Dec 1, 2026 at 8:27=E2=80=AFPM Ard Biesheuvel wrote: >> ... >> However, Neoverse-N2 is similar to Cortex-A710, and the latter is >> widely used in big/little configurations, where the MIDR based >> logic does not work. > Correct, A710/A715 have similar pipeline as N2. My reasoning here was > that this nvme crc calculation is more relevant for server side > datacenter cores which appears to be homogeneous rather than > big.little systems where MIDR based logic will be accurate. > >> I'd prefer to just drop that logic for now, and enable this code >> for all microarchitectures (assuming the 4-way version with EOR3 >> does outperform the original code on those cores) > Based on theoretical llvm-mca analysis comparison, the clock cycles > required for EOR3 loop body was more than the 4-way version with EOR > though (about 12 cycles for EOR3 vs 8 for EOR). Therefore I am not > sure if EOR3 will be better on those cores and I'd guess it would be > 20% slower. 20% slower than what? > It would be great if someone with access to the hardware > could confirm the behavior. Dropping the MIDR logic is an easy task > and I can do that but just wanted confirmation if the potential > performance regression is not a problem. > Are you saying 4x+EOR3 is slower on those cores than the 1x version you are replacing?