summaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig.assembler
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2023-01-15 13:15:34 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2023-01-20 11:29:31 +0100
commite3cf2f8794b031ec0e640cb2dff95f45139ac4e9 (patch)
treefe8fb30a151daa1d11476d1d89273adba53bc047 /arch/x86/Kconfig.assembler
parentcrypto: seqiv - Handle EBUSY correctly (diff)
downloadlinux-e3cf2f8794b031ec0e640cb2dff95f45139ac4e9.tar.xz
linux-e3cf2f8794b031ec0e640cb2dff95f45139ac4e9.zip
crypto: x86/aria-avx - fix build failure with old binutils
The minimum version of binutils for kernel build is currently 2.23 and it doesn't support GFNI. So, it fails to build the aria-avx if the old binutils is used. The code using GFNI is an optional part of aria-avx. So, it disables GFNI part in it when the old binutils is used. In order to check whether the using binutils is supporting GFNI or not, AS_GFNI is added. Fixes: ba3579e6e45c ("crypto: aria-avx - add AES-NI/AVX/x86_64/GFNI assembler implementation of aria cipher") Reported-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/Kconfig.assembler')
-rw-r--r--arch/x86/Kconfig.assembler5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/Kconfig.assembler b/arch/x86/Kconfig.assembler
index 26b8c08e2fc4..b88f784cb02e 100644
--- a/arch/x86/Kconfig.assembler
+++ b/arch/x86/Kconfig.assembler
@@ -19,3 +19,8 @@ config AS_TPAUSE
def_bool $(as-instr,tpause %ecx)
help
Supported by binutils >= 2.31.1 and LLVM integrated assembler >= V7
+
+config AS_GFNI
+ def_bool $(as-instr,vgf2p8mulb %xmm0$(comma)%xmm1$(comma)%xmm2)
+ help
+ Supported by binutils >= 2.30 and LLVM integrated assembler