Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2747307lqo; Mon, 20 May 2024 15:51:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7A4Dddg5O8FR/ysPwMOpkuI/GmYWyXmzd+wRDA2HgilDJdeQHLYU3lO1e4y8CvXxyFw9yrqUUN08/FLocPQiBpzWGOv1sJ7TY+hxwBA== X-Google-Smtp-Source: AGHT+IFylmbIvkenGUnynVq7/W7uDGxSFIXlSOawNXPBmWVtNjeAGPs/UhU/PEwEJl0FfHtQ0aWu X-Received: by 2002:a05:622a:11d5:b0:43e:3bc9:b5f0 with SMTP id d75a77b69052e-43e3bc9b7fcmr146306621cf.57.1716245474096; Mon, 20 May 2024 15:51:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245474; cv=pass; d=google.com; s=arc-20160816; b=vLQouvNl6MJDxmx/pSt7FCI637G+HItl2qBkUWiUv9JIzlG/p6gdw3xh9Qt9z/eEPq WBHfC9TukhiCWV/ZVUbCUG8IJgRLzMg2pG57XvsHITDrIADUtlajeFHzn69ber2GG+yo gmDhN4e+97Wiuo6ZWoZoNsrkW8o7AojEhzyxnXpxrHkRd3ue2MPZ0gSnJI9GeehJNoET LV2qzElWOCqUwMraOgbnKWFH7dk1VyQ9zcXs2SEfvTTXGPHV3T3m90bN9t7lMFZ0QQBv bxDPtvpT5XHWePhn3cjhev3KWKE329VSmkY+lhWKzoLkGU5DhcLQqXf/V53Y5xzPDpdj /BYw== 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=9n/2X5o0KEbVwtUW2If2EK6+8Ve4s3vijJBFROxIl8M=; fh=T26ksdX6UpceKBTmCjnZX4okm/RnV1G8gmRkfePNArg=; b=VuhZfe9sp9YIgHduKoE7sIBcVTiMEskJqfmJoPvpM7J96LE5LhP/wusXoCHCiBEO0J /wrx78V2N8iZIDDT2gp6Zzjt9AkwVXw4TmSEy72sOBu+PCr91s6mYC7xxldqv5y65IAE Ysv/i9N2/raZEK+3ULIvAfj5p9fssC9wN17b98wmsmhVx68vvoi8cvaqJYjTKXVUWzci x7SYXyqCQjDpPYxHsXc5m+P0FcdRAmNtA0wvGnGr+wDI4MB4pRCz4nd3jLmSEgKL3inL ia3T97MkhENoLA77YtWb7Ioeh1sOlOFhkxxjBwvFN/5e52CqeGISqZ2WXvjASX2KiU7a 5GXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NDIPZWCc; 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-184254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56c1946si274431281cf.616.2024.05.20.15.51.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NDIPZWCc; 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-184254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184254-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CF3701C211CD for ; Mon, 20 May 2024 22:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9271213C902; Mon, 20 May 2024 22:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NDIPZWCc" 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 550F413BC2F for ; Mon, 20 May 2024 22:46:49 +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=1716245211; cv=none; b=aPplTXm57pGtg/vtdkr7plHhEK3B4qsM9EW5C6Bngc0V2jrndEZDIZaSXGkyDp419DvLvt6vByY/zkLmi5bmv4GElvrMRriF5Upns4sak5aZzKO75xnfeGFZKWL88vxsATEXHyOeddYJp+yEXr5xe8FsuYR5T2fnFOinhYPRaKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245211; c=relaxed/simple; bh=3xWAckKLedIRwhhdnl1v4yxZLvPVQHJ+27f28hvh3oU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pmcsDCcqmb17Q9r+gn0LfbSJrq+ddLcJ1TSjyZusxKdWMrxaQK0yMS+al9qWUndGEXCpXULiRx7Luz2FGh+Pdu7QTHq4EWwjuXpk/X7prBNeh6Ndx2gLxfuaZLcVpyeiUUD6g2upNemUws7BtP06fWxFenGLuWgLua5QbEAU9Nc= 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=NDIPZWCc; 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=1716245209; x=1747781209; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3xWAckKLedIRwhhdnl1v4yxZLvPVQHJ+27f28hvh3oU=; b=NDIPZWCcq2FfOTuFzkRC/7emjTspGRQl6EQuD6zNJVdKD4gcRn3eJEvJ +QUWa40yAH5phNbLo2AeXtjXRJfuK4sKSf6i9j34m+8KkZh2moG7W1yw0 CiaGIQ2EQxRXwrQShig2Ela4IRpJr5m1wuumY9kMQ+GifAGTLhojf1axF n5q+uj6GGeMXJ21h8aFCKR/uyFBsYRfzIx25huSVNgXnTVfYeanCAsynt mX0Ifhw8rbDxLg4bmGODBqOFA+JEN2DMtq2tK6y01yrJFocKwCyLiOJPq uYGbxHeTfVVxT16GW57ugHDOSQycMT/Ud+HQrLwmG7dFqX09hlJvu5Yn1 w==; X-CSE-ConnectionGUID: gacjDGHCRRqwYhdSOiP2Cg== X-CSE-MsgGUID: BInRG8LdRCKH1jwwfahLRw== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199789" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199789" 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:38 -0700 X-CSE-ConnectionGUID: E2xYQU4GSbqWd4uI7Ldm0w== X-CSE-MsgGUID: CP8JBdBpRDyt4+UbVW5oMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593460" 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:38 -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 26/49] crypto: x86/poly1305 - Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:57 -0700 Message-ID: <20240520224620.9480-27-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/poly1305_glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/crypto/poly1305_glue.c b/arch/x86/crypto/poly1305_glue.c index 1dfb8af48a3c..08ff4b489f7e 100644 --- a/arch/x86/crypto/poly1305_glue.c +++ b/arch/x86/crypto/poly1305_glue.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include asmlinkage void poly1305_init_x86_64(void *ctx, @@ -269,7 +269,7 @@ static int __init poly1305_simd_mod_init(void) boot_cpu_has(X86_FEATURE_AVX2) && boot_cpu_has(X86_FEATURE_AVX512F) && cpu_has_xfeatures(XFEATURE_MASK_SSE | XFEATURE_MASK_YMM | XFEATURE_MASK_AVX512, NULL) && /* Skylake downclocks unacceptably much when using zmm, but later generations are fast. */ - boot_cpu_data.x86_model != INTEL_FAM6_SKYLAKE_X) + boot_cpu_data.x86_vfm != INTEL_SKYLAKE_X) static_branch_enable(&poly1305_use_avx512); return IS_REACHABLE(CONFIG_CRYPTO_HASH) ? crypto_register_shash(&alg) : 0; } -- 2.45.0