Skip to content

Commit 018ebca

Browse files
gkammelaKAGA-KOKO
authored andcommitted
x86/cpufeatures: Enable a new AVX512 CPU feature
Add a new AVX512 instruction group/feature for enumeration in /proc/cpuinfo: AVX512_VP2INTERSECT. CPUID.(EAX=7,ECX=0):EDX[bit 8] AVX512_VP2INTERSECT Detailed information of CPUID bits for this feature can be found in the Intel Architecture Intsruction Set Extensions Programming Reference document (refer to Table 1-2). A copy of this document is available at https://bugzilla.kernel.org/show_bug.cgi?id=204215. Signed-off-by: Gayatri Kammela <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 1e0c08e commit 018ebca

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/x86/include/asm/cpufeatures.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@
353353
/* Intel-defined CPU features, CPUID level 0x00000007:0 (EDX), word 18 */
354354
#define X86_FEATURE_AVX512_4VNNIW (18*32+ 2) /* AVX-512 Neural Network Instructions */
355355
#define X86_FEATURE_AVX512_4FMAPS (18*32+ 3) /* AVX-512 Multiply Accumulation Single precision */
356+
#define X86_FEATURE_AVX512_VP2INTERSECT (18*32+ 8) /* AVX-512 Intersect for D/Q */
356357
#define X86_FEATURE_MD_CLEAR (18*32+10) /* VERW clears CPU buffers */
357358
#define X86_FEATURE_TSX_FORCE_ABORT (18*32+13) /* "" TSX_FORCE_ABORT */
358359
#define X86_FEATURE_PCONFIG (18*32+18) /* Intel PCONFIG */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ static const struct cpuid_dep cpuid_deps[] = {
6464
{ X86_FEATURE_AVX512_4VNNIW, X86_FEATURE_AVX512F },
6565
{ X86_FEATURE_AVX512_4FMAPS, X86_FEATURE_AVX512F },
6666
{ X86_FEATURE_AVX512_VPOPCNTDQ, X86_FEATURE_AVX512F },
67+
{ X86_FEATURE_AVX512_VP2INTERSECT, X86_FEATURE_AVX512VL },
6768
{ X86_FEATURE_CQM_OCCUP_LLC, X86_FEATURE_CQM_LLC },
6869
{ X86_FEATURE_CQM_MBM_TOTAL, X86_FEATURE_CQM_LLC },
6970
{ X86_FEATURE_CQM_MBM_LOCAL, X86_FEATURE_CQM_LLC },

0 commit comments

Comments
 (0)