Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2745980lqo; Mon, 20 May 2024 15:46:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUR9+5cuvE+dbXsXVM7qSTXrzCfKB4EqQVKDhNLxJloK38JGtbqhj4CEG+U0+1p6MVIRhIQ97QKDaQsrPH6gglaSifrZrNd1iB/Ia5Y7A== X-Google-Smtp-Source: AGHT+IHD6Tdl9QEimZ8KiYYqG+8hkFh66sOKTJtw1T1G8h0TP7TfLZffZygWtxNYRX/OvY+mzAyz X-Received: by 2002:a17:902:d2c6:b0:1f2:fdc8:e2da with SMTP id d9443c01a7336-1f2fdc8e6b8mr44387445ad.55.1716245208701; Mon, 20 May 2024 15:46:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245208; cv=pass; d=google.com; s=arc-20160816; b=uRltHaOo4npeiBb0FT/DNWB0VfKamjg217ElcJkvk986twFwbVE+LgILeXk0nXmexQ rJXaC6ViRqyoD3xmtrTjWEIpcnk5+fAR71Dt21rO6vhmgRX69vYBx3aIzguMAX8WRopC 13S4LnSODz3VE1TIvcvDO+hHYMgjd+X7k3yDX+kAPpZoac78pzsb8SdpDIrdxDPJba0D DyG4kPTp28FoJDCGCVYcELgFOqBG+dfARukFOzv9jnzsjWaLuyw/uRWJ2hlWW1imkk5L AQ/tUVloez5DnUasvzCcFu7kknY+Z7Pyj01kwq8/CAeFtGlgYwiUf323+W7Fhh1XfAjv oXEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7VK+xsmJoqHVpO4gWP9LuvzWMIKedyZlDPmXtEZPM60=; fh=T26ksdX6UpceKBTmCjnZX4okm/RnV1G8gmRkfePNArg=; b=IZ740tgVOmMI09qnQU/TnYjdBCHs68dkw4uTQn6FYXGREHcNicXvHEyoyNbybhgc7M w7qnFYlSrzBsbVzfeVRwK8KA+RiCPmawQ5VfX+0GTKpP0LUF+usfX2fid15Ge7xe290t MRgGtt9Qhs5aSXJ1w3s8I/eYyhQTB4KepHNVn3gDP9uTPa3AQ2/V8lvcDvNnfup1BEd2 H1jE24XuOT/B9c0XSWAVxWeEaZenUIrDzdGnFrPNWnrWTP4d7UE1GRjC65SDp+1dshuE fD0BlLyjvQFOmC5C2vH1vfY+/GxtqkQKziId4t2k3MftLI5f5/Vou55Ew37+REW+EA2w EVjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="bh+JK/xw"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-184228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bad7d5asi5689415ad.165.2024.05.20.15.46.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="bh+JK/xw"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-184228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AE1C9B21AA1 for ; Mon, 20 May 2024 22:46:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5280E4AEF0; Mon, 20 May 2024 22:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bh+JK/xw" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BE389475 for ; Mon, 20 May 2024 22:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245197; cv=none; b=ny1nu1R4I5NSFiweE+JPqWOmW1qsv4jo/KuB749EflYUHeQqlaUQeQ4KkWtEPTYMUoGBZreoYKuREqu4EuWnnZZqw+ueYcN6F3RgIaJaRU0SGV9l/llp+VQute+f+VsVSwsbS7ZpCDxgO+twvlzmge7qG6UzHZV+jH48OJxqcq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245197; c=relaxed/simple; bh=kIehCYoVRHdNFqIBmNYxgDHHhCKlxbzEjpk5eAB0vUE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aHnn0Yi8yxqu4HRkJQAIKWqfbh3QkhtYIfrgBw/GvdmUx/rO/cnlGH6SuXx4oh73UXOimK4hsf9oV6YKjso0kM5eay1Up6TcdbSIKvFDN+3ul/Hk2rS9M0Timi8qPGxWTpR3qn3rYeCfEorwc1VtKKNFDhY2YawmMGDiZWhiIeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=bh+JK/xw; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716245196; x=1747781196; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kIehCYoVRHdNFqIBmNYxgDHHhCKlxbzEjpk5eAB0vUE=; b=bh+JK/xw3fJLQlk7cDEmaXIxGOvk8VrLdE//aLRy4lszdqvfwRyIecKk jUnM4Xx/iKmOK1sk74QxOVAkMLOVPfbssqcFxtdjGZbm6pZZdAzzcUCpU BClpfCF2vq85aiICeyiXPDqn1kj9OMWNemp+9h4+ZxX+cK3HvZDYhBIIt cNtkaleQg2FCixRxnYbyzB/bguwoskYwdurp/wwK8yfyQJ17OQm/KeiFu WW2Iz2JHmFwerbWow/mmXEZ5IDWczvj1tn7Og3rDyuHoN9ND7Tzpx89Mo IQh+VphtNoUhc3uacMZtnw/6DfVX13jGfbzbNX/a/SaBkY0YHERP6Ofi8 g==; X-CSE-ConnectionGUID: STPuWpKxR2u18Q/UTy+Mjg== X-CSE-MsgGUID: x62QIYI8Q+uUlVhYPz1vrA== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199506" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199506" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 X-CSE-ConnectionGUID: 7zCOw3olTjmXtHS6hd08jg== X-CSE-MsgGUID: Uc5pQ15xRMCSMMfd0vta5w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593382" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 From: Tony Luck To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Tony Luck , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v6 01/49] crypto: x86/aes-xts - Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:32 -0700 Message-ID: <20240520224620.9480-2-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240520224620.9480-1-tony.luck@intel.com> References: <20240520224620.9480-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck --- arch/x86/crypto/aesni-intel_glue.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index 5b25d2a58aeb..ef031655b2d3 100644 --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c @@ -1223,14 +1223,14 @@ DEFINE_XTS_ALG(vaes_avx10_512, "xts-aes-vaes-avx10_512", 800); * implementation with ymm registers (256-bit vectors) will be used instead. */ static const struct x86_cpu_id zmm_exclusion_list[] = { - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_SKYLAKE_X }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_X }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_D }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_L }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_NNPI }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_TIGERLAKE_L }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_TIGERLAKE }, + X86_MATCH_VFM(INTEL_SKYLAKE_X, 0), + X86_MATCH_VFM(INTEL_ICELAKE_X, 0), + X86_MATCH_VFM(INTEL_ICELAKE_D, 0), + X86_MATCH_VFM(INTEL_ICELAKE, 0), + X86_MATCH_VFM(INTEL_ICELAKE_L, 0), + X86_MATCH_VFM(INTEL_ICELAKE_NNPI, 0), + X86_MATCH_VFM(INTEL_TIGERLAKE_L, 0), + X86_MATCH_VFM(INTEL_TIGERLAKE, 0), /* Allow Rocket Lake and later, and Sapphire Rapids and later. */ /* Also allow AMD CPUs (starting with Zen 4, the first with AVX-512). */ {}, -- 2.45.0