forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86: update AS_* macros to binutils >=2.23, supporting ADX and AVX2
Now that the kernel specifies binutils 2.23 as the minimum version, we can remove ifdefs for AVX2 and ADX throughout. Signed-off-by: Jason A. Donenfeld <[email protected]> Acked-by: Ingo Molnar <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
- Loading branch information
Showing
21 changed files
with
15 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2020 Jason A. Donenfeld <[email protected]>. All Rights Reserved. | ||
|
||
config AS_AVX2 | ||
def_bool $(as-instr,vpbroadcastb %xmm0$(comma)%ymm1) | ||
help | ||
Supported by binutils >= 2.22 and LLVM integrated assembler | ||
|
||
config AS_AVX512 | ||
def_bool $(as-instr,vpmovm2b %k1$(comma)%zmm5) | ||
help | ||
|
@@ -20,8 +15,3 @@ config AS_SHA256_NI | |
def_bool $(as-instr,sha256msg1 %xmm0$(comma)%xmm1) | ||
help | ||
Supported by binutils >= 2.24 and LLVM integrated assembler | ||
|
||
config AS_ADX | ||
def_bool $(as-instr,adox %eax$(comma)%eax) | ||
help | ||
Supported by binutils >= 2.23 and LLVM integrated assembler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
* Author: Jim Kukunas <[email protected]> | ||
*/ | ||
|
||
#ifdef CONFIG_AS_AVX2 | ||
|
||
#include <linux/raid/pq.h> | ||
#include "x86.h" | ||
|
||
|
@@ -313,7 +311,3 @@ const struct raid6_recov_calls raid6_recov_avx2 = { | |
#endif | ||
.priority = 2, | ||
}; | ||
|
||
#else | ||
#warning "your version of binutils lacks AVX2 support" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
#ifndef _NFT_SET_PIPAPO_AVX2_H | ||
|
||
#ifdef CONFIG_AS_AVX2 | ||
#if defined(CONFIG_X86_64) && !defined(CONFIG_UML) | ||
#include <asm/fpu/xstate.h> | ||
#define NFT_PIPAPO_ALIGN (XSAVE_YMM_SIZE / BITS_PER_BYTE) | ||
|
||
bool nft_pipapo_avx2_lookup(const struct net *net, const struct nft_set *set, | ||
const u32 *key, const struct nft_set_ext **ext); | ||
bool nft_pipapo_avx2_estimate(const struct nft_set_desc *desc, u32 features, | ||
struct nft_set_estimate *est); | ||
#endif /* CONFIG_AS_AVX2 */ | ||
#endif /* defined(CONFIG_X86_64) && !defined(CONFIG_UML) */ | ||
|
||
#endif /* _NFT_SET_PIPAPO_AVX2_H */ |