Skip to content

Commit 6d85a05

Browse files
aeglbp3tk0v
authored andcommitted
crypto: x86/aes-xts - switch to new Intel CPU model defines
New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Acked-by: Herbert Xu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9d22c96 commit 6d85a05

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

arch/x86/crypto/aesni-intel_glue.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,14 +1223,14 @@ DEFINE_XTS_ALG(vaes_avx10_512, "xts-aes-vaes-avx10_512", 800);
12231223
* implementation with ymm registers (256-bit vectors) will be used instead.
12241224
*/
12251225
static const struct x86_cpu_id zmm_exclusion_list[] = {
1226-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_SKYLAKE_X },
1227-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_X },
1228-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_D },
1229-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE },
1230-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_L },
1231-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_NNPI },
1232-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_TIGERLAKE_L },
1233-
{ .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_TIGERLAKE },
1226+
X86_MATCH_VFM(INTEL_SKYLAKE_X, 0),
1227+
X86_MATCH_VFM(INTEL_ICELAKE_X, 0),
1228+
X86_MATCH_VFM(INTEL_ICELAKE_D, 0),
1229+
X86_MATCH_VFM(INTEL_ICELAKE, 0),
1230+
X86_MATCH_VFM(INTEL_ICELAKE_L, 0),
1231+
X86_MATCH_VFM(INTEL_ICELAKE_NNPI, 0),
1232+
X86_MATCH_VFM(INTEL_TIGERLAKE_L, 0),
1233+
X86_MATCH_VFM(INTEL_TIGERLAKE, 0),
12341234
/* Allow Rocket Lake and later, and Sapphire Rapids and later. */
12351235
/* Also allow AMD CPUs (starting with Zen 4, the first with AVX-512). */
12361236
{},

0 commit comments

Comments
 (0)