Linux cryptographic layer development
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: "Shreesh Adiga" <16567adigashreesh@gmail.com>
Cc: "Eric Biggers" <ebiggers@kernel.org>,
	"Demian Shulhan" <demyansh@gmail.com>,
	linux-crypto@vger.kernel.org
Subject: Re: [PATCH v4] lib/crc: arm64: Add NEON PMULL+EOR3 crc64_nvme implementation
Date: Tue, 01 Dec 2026 17:00:36 +0100	[thread overview]
Message-ID: <bf801287-53fc-4129-81bb-a67bddb5ab61@app.fastmail.com> (raw)
In-Reply-To: <CA+-x59ZLjoR3eBnW1XKg4z1_pg7Q04pP2PmyE3DdO_NxbfM5+g@mail.gmail.com>



On Tue, 1 Dec 2026, at 16:53, Shreesh Adiga wrote:
> On Tue, Dec 1, 2026 at 8:27 PM Ard Biesheuvel <ardb@kernel.org> 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?


  reply	other threads:[~2026-12-01 16:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 13:02 [PATCH v4] lib/crc: arm64: Add NEON PMULL+EOR3 crc64_nvme implementation Shreesh Adiga
2026-12-01 13:22 ` Ard Biesheuvel
2026-12-01 14:38   ` Shreesh Adiga
2026-12-01 14:56     ` Ard Biesheuvel
2026-12-01 15:53       ` Shreesh Adiga
2026-12-01 16:00         ` Ard Biesheuvel [this message]
2026-12-01 16:13           ` Ard Biesheuvel
2026-12-01 16:14           ` Shreesh Adiga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf801287-53fc-4129-81bb-a67bddb5ab61@app.fastmail.com \
    --to=ardb@kernel.org \
    --cc=16567adigashreesh@gmail.com \
    --cc=demyansh@gmail.com \
    --cc=ebiggers@kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox