lkml.org 
[lkml]   [2022]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2 14/19] crypto: x86 - load based on CPU features
Date

> Subject: [PATCH v2 14/19] crypto: x86 - load based on CPU features
> 23 files changed, 230 insertions(+), 8 deletions(-)

Here are some things I've noticed on this patch that will be
addressed in v3.

- Add aria device table (new algorithm added at end of 6.0)

- Change camellia_avx2 device table to not match on AVX (just AVX2
and AES-NI). There's a separate module for AVX.

- Remove ADX from the curve25519 device table. That is optional,
not mandatory.

- Remove AVX from the sm4-avx2 device table. There's a separate
module for AVX.

Here is a script to review the device table aliases:

modinfo /lib/modules/6.0.0+/kernel/arch/x86/crypto/* | grep -E "filename|alias.*cpu" |
sed 's/.013D./\tSHA-NI/' |
sed 's/.0133./\tADX/' |
sed 's/.0130./\t\tAVX512-F/' |
sed 's/.0125./\t\tAVX2/' |
sed 's/.009C./\t\tAVX/' |
sed 's/.0099./\tAES-NI/' |
sed 's/.0094./\tXMM4.2/' |
sed 's/.0089./\t\tSSSE3/' |
sed 's/.0081./\tPCLMULQDQ/' |
sed 's/.001A./\tXMM2/' | # aka sse2
cat

\
 
 \ /
  Last update: 2022-10-14 16:27    [W:0.667 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site