Re: [PATCH 0/8] VAES+AVX2 optimized implementation of AES-GCM
From: Ard Biesheuvel
Date: Fri Oct 10 2025 - 14:22:04 EST
On Wed, 1 Oct 2025 at 19:34, Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
>
> This patchset replaces the 256-bit vector implementation of AES-GCM for
> x86_64 with one that requires AVX2 rather than AVX512. This greatly
> improves AES-GCM performance on CPUs that have VAES but not AVX512, for
> example by up to 74% on AMD Zen 3. For more details, see patch 1.
>
> This patchset also renames the 512-bit vector implementation of AES-GCM
> for x86_64 to be named after AVX512 rather than AVX10/512, then adds
> some additional optimizations to it.
>
> This patchset applies to next-20250929 and is targeting 6.19. Herbert,
> I'd prefer to just apply this myself. But let me know if you'd prefer
> to take it instead (considering that AES-GCM hasn't been librarified
> yet). Either way, there's no hurry, since this is targeting 6.19.
>
> Eric Biggers (8):
> crypto: x86/aes-gcm - add VAES+AVX2 optimized code
> crypto: x86/aes-gcm - remove VAES+AVX10/256 optimized code
> crypto: x86/aes-gcm - rename avx10 and avx10_512 to avx512
> crypto: x86/aes-gcm - clean up AVX512 code to assume 512-bit vectors
> crypto: x86/aes-gcm - reorder AVX512 precompute and aad_update
> functions
> crypto: x86/aes-gcm - revise some comments in AVX512 code
> crypto: x86/aes-gcm - optimize AVX512 precomputation of H^2 from H^1
> crypto: x86/aes-gcm - optimize long AAD processing with AVX512
>
Acked-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
Tested-by: Ard Biesheuvel <ardb@xxxxxxxxxx>