From: Eric Biggers <ebiggers@kernel.org>
To: Ingo Franzki <ifranzki@linux.ibm.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
linux-crypto@vger.kernel.org,
Harald Freudenberger <freude@linux.ibm.com>,
Holger Dengler <dengler@linux.ibm.com>
Subject: Re: CI: another regression on linux-next with s390 sha384/sha512
Date: Tue, 24 Jun 2025 07:14:37 -0700 [thread overview]
Message-ID: <20250624141437.GA1215@sol> (raw)
In-Reply-To: <9e33c893-2466-4d4e-afb1-966334e451a2@linux.ibm.com>
On Tue, Jun 24, 2025 at 01:38:54PM +0200, Ingo Franzki wrote:
> First of all sha512_s390.ko is no longer there. I guess that intended.
Yes.
> However, /proc/crypto does show
>
> name : sha256
> driver : sha256-s390
> module : kernel
>
> and
>
> name : sha224
> driver : sha224-s390
> module : kernel
>
> but no -s390 driver for sha512 and sha384. It only shows
>
> name : sha512
> driver : sha512-lib
> module : kernel
>
> and
>
> name : sha384
> driver : sha384-lib
> module : kernel
>
> The -lib variants are also shown for sha224 and sha256, but those also have the s390 variants.
>
> So it looks like the s390 optimized sha384 and sha512 are now missing ?
>
> Similar, the -generic variants are only available for sha256 and sha224, but not for sha384 and sha512:
>
> name : sha256
> driver : sha256-generic
> module : kernel
>
> Can this please be fixed? We really want to keep the s390 optimized versions of all digests!
sha384-lib and sha512-lib are s390 optimized (when the kernel is built for s390
and the CPU supports the CPACF_KIMD_SHA_512 instruction). Please see
lib/crypto/s390/sha512.h.
So, SHA-384 and SHA-512 are still fully optimized for s390.
Yes, I'll be making the same change to SHA-224 and SHA-256 so that it's
consistent. Sorry about the temporary inconsistency. Note that sha224-lib and
sha256-lib are already s390-optimized as well; the difference is just that the
unnecessary sha224-generic, sha256-generic, sha224-$(ARCH), and sha256-$(ARCH)
algorithms are still being registered. The *-lib ones just do the right thing,
and they are all that's needed.
- Eric
prev parent reply other threads:[~2025-06-24 14:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 11:38 CI: another regression on linux-next with s390 sha384/sha512 Ingo Franzki
2025-06-24 14:14 ` Eric Biggers [this message]
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=20250624141437.GA1215@sol \
--to=ebiggers@kernel.org \
--cc=dengler@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=herbert@gondor.apana.org.au \
--cc=ifranzki@linux.ibm.com \
--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;
as well as URLs for NNTP newsgroup(s).