From: Eric Biggers <ebiggers@kernel.org>
To: Borislav Petkov <bp@alien8.de>
Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org,
x86@kernel.org, linux-block@vger.kernel.org,
Ard Biesheuvel <ardb@kernel.org>, Keith Busch <kbusch@kernel.org>,
Kent Overstreet <kent.overstreet@linux.dev>,
"Martin K . Petersen" <martin.petersen@oracle.com>,
Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH v4 1/6] x86: move ZMM exclusion list into CPU feature flag
Date: Mon, 10 Feb 2025 13:01:03 -0800 [thread overview]
Message-ID: <20250210210103.GC348261@sol.localdomain> (raw)
In-Reply-To: <20250210204030.GBZ6pkPumjGQMaHWLb@fat_crate.local>
On Mon, Feb 10, 2025 at 09:40:30PM +0100, Borislav Petkov wrote:
> On Mon, Feb 10, 2025 at 09:45:35AM -0800, Eric Biggers wrote:
> > @@ -1598,11 +1578,11 @@ static int __init register_avx_algs(void)
> > ARRAY_SIZE(aes_gcm_algs_vaes_avx10_256),
> > aes_gcm_simdalgs_vaes_avx10_256);
> > if (err)
> > return err;
> >
> > - if (x86_match_cpu(zmm_exclusion_list)) {
> > + if (boot_cpu_has(X86_FEATURE_PREFER_YMM)) {
>
> s/boot_cpu_has/cpu_feature_enabled/
>
$ git grep boot_cpu_has arch/x86/crypto | wc -l
87
$ git grep cpu_feature_enabled arch/x86/crypto | wc -l
0
It wouldn't make sense to change just this one. Should they really all be
changed?
I see that cpu_feature_enabled() uses code patching while boot_cpu_has() does
not. All these checks occur once at module load time, though, so code patching
wouldn't be beneficial.
- Eric
next prev parent reply other threads:[~2025-02-10 21:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-10 17:45 [PATCH v4 0/6] x86 CRC optimizations Eric Biggers
2025-02-10 17:45 ` [PATCH v4 1/6] x86: move ZMM exclusion list into CPU feature flag Eric Biggers
2025-02-10 20:40 ` Borislav Petkov
2025-02-10 21:01 ` Eric Biggers [this message]
2025-02-10 21:17 ` Borislav Petkov
2025-02-10 21:37 ` Eric Biggers
2025-02-10 21:49 ` Borislav Petkov
2025-02-10 17:45 ` [PATCH v4 2/6] scripts/gen-crc-consts: add gen-crc-consts.py Eric Biggers
2025-02-10 17:45 ` [PATCH v4 3/6] x86/crc: add "template" for [V]PCLMULQDQ based CRC functions Eric Biggers
2025-02-10 17:45 ` [PATCH v4 4/6] x86/crc32: implement crc32_le using new template Eric Biggers
2025-02-10 17:45 ` [PATCH v4 5/6] x86/crc-t10dif: implement crc_t10dif " Eric Biggers
2025-02-10 17:45 ` [PATCH v4 6/6] x86/crc64: implement crc64_be and crc64_nvme " Eric Biggers
2025-02-10 18:01 ` [PATCH v4 0/6] x86 CRC optimizations Eric Biggers
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=20250210210103.GC348261@sol.localdomain \
--to=ebiggers@kernel.org \
--cc=ardb@kernel.org \
--cc=bp@alien8.de \
--cc=kbusch@kernel.org \
--cc=kent.overstreet@linux.dev \
--cc=linux-block@vger.kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mingo@kernel.org \
--cc=x86@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.