Skip to content

Commit 5171207

Browse files
ebiggersIngo Molnar
authored andcommitted
x86/cpufeatures: Make AVX-VNNI depend on AVX
The 'noxsave' boot option disables support for AVX, but support for the AVX-VNNI feature was still declared on CPUs that support it. Fix this. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Dave Hansen <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b522f18 commit 5171207

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kernel/cpu/cpuid-deps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ static const struct cpuid_dep cpuid_deps[] = {
4545
{ X86_FEATURE_AES, X86_FEATURE_XMM2 },
4646
{ X86_FEATURE_SHA_NI, X86_FEATURE_XMM2 },
4747
{ X86_FEATURE_GFNI, X86_FEATURE_XMM2 },
48+
{ X86_FEATURE_AVX_VNNI, X86_FEATURE_AVX },
4849
{ X86_FEATURE_FMA, X86_FEATURE_AVX },
4950
{ X86_FEATURE_VAES, X86_FEATURE_AVX },
5051
{ X86_FEATURE_VPCLMULQDQ, X86_FEATURE_AVX },

0 commit comments

Comments
 (0)