Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp239703lqb; Tue, 16 Apr 2024 14:21:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhesfAjVrATvl4yO1x6PYQ6Au+LaliqAlwFFnkyj5BEpY2gPB4aylQDDnmBP4Atmm+VMjerwc07pitSrmu9U29jjhg/BaiKxjYjkNeDA== X-Google-Smtp-Source: AGHT+IFTSjUT0eh2JoAd2cHQveIrRokxm3yZR3AKZzWDI9A4r1z6chN1jl5+8djK8psDNJlkoAMS X-Received: by 2002:a17:902:f542:b0:1e2:58b7:2dd6 with SMTP id h2-20020a170902f54200b001e258b72dd6mr5191922plf.21.1713302471817; Tue, 16 Apr 2024 14:21:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713302471; cv=pass; d=google.com; s=arc-20160816; b=EdPWOvyvhfuw9IRxWSPZnAD0oU3mPvrA26HsYxebpk9p5m5o5UpHm17Pwq+taKtZi+ BNokH/J6wJskyLbn3kgoYEp5UPK6hNJrMd/HbYT0kDCnJiEuEllWJM/87AufLGqWhVfc o8W0li61ya4P11swd+DpuFrqNuQm2zpKhBdoR+x1QoNjC3jWoLRxlqbKC3K0wED+u/Fd Vs5MfMIC5EECDxrh2CgRWv7wSrLEPws59Uv898BQAHWdqLjweehdh+R9hycftcvZVzrL 1IdSLUECb9Sf+mxKUNaO9/KgqPYjMbY5zrDm0qM0SPwOo8QKahjVh0tq39Ef2yHTmwTu Hsig== 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=DmwoUQM2/jqQdkgAFCwcH2c9Q0oMlBK9FpuHcn48YlM=; fh=fCCNFvJbPqqXo45yXdlgqaDimb/JVSzwDZSVTcpWFog=; b=fhj5Eyi96ysbFCUh9IeftUIHQjeDGrDq4eLQ4KlmYc5O8Q/Mudx7QQeHEZBmWueEwB idxaj9gpNqgo4CFEB5XHSQi+cei91RzT4XAlz0Eoz2VxxI/RS7TZHEeFqu9bFaL1Mx4r AFCLDA4yvxPId85vHFRL8pqE20ZylVPDibCvGgqeBLNJn3DbN0vqOfqsfNldaZmzfbQe 490NeTZZuZ0xHdILuqZWHD2tzrp4hDsm5c3TVyt5pNSHu4U7JXBLPun1qSceckvz3FlY 04LuY7g42EKS77gjhDKTbICj8mD12QiCJksRLEWGF+hYCH0C/hIpCfzjyjiC4JesP5Ur 9TvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="machQB9/"; 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-147564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147564-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. [147.75.48.161]) by mx.google.com with ESMTPS id q13-20020a170902f78d00b001e49cdc0631si10868655pln.259.2024.04.16.14.21.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:21:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="machQB9/"; 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-147564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147564-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 87DFDB232E1 for ; Tue, 16 Apr 2024 21:20:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6E886EB5B; Tue, 16 Apr 2024 21:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="machQB9/" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 86BDF6BB4B for ; Tue, 16 Apr 2024 21:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302400; cv=none; b=YrEsmx5b4ORtXkUGrQREYJkTeqsKPr/ShZ3UxMCwucl6gFeOHvRGwHBAJRv5SkJF3x62ujQKckTkLSlHRN/ubs4FuTEB6GG0pgpV482oLFx8t44AEyLqySXF8KWdjuFOq2bIjfUcmk3weZJKetm56zP/f1RdxAuSpYcNwkBognA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302400; c=relaxed/simple; bh=AAxq3Dn0QuXe2vl7CnrIifkDHLAbXL8hnyPhGpmPU4g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=m04YWW+a7Alvy+q+R/kf1YEi27L0vuBGV/0TQzPCzvR16o4lPwNYeiVk7qXyaeU3kziyHWtE4ym/vHpNpq3dBDLqFQd58bgw8O+d7aACEKmbDnAZ6TwResKEwYOrvd1rYeAVWwXHkjgwa6jRAfNR8qNOdzrcLauZKLNu8ni5u0c= 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=machQB9/; arc=none smtp.client-ip=198.175.65.13 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=1713302400; x=1744838400; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AAxq3Dn0QuXe2vl7CnrIifkDHLAbXL8hnyPhGpmPU4g=; b=machQB9/kGMqfoXA0qXu7wioxaectU29Qk0NrgF6rFYLOnLK1VvBs4az v65ItCuxI6+CNcDJPlOhCfC247kQv2wAinI1T7HMJat6hfK2gc3vLd4fa YGb8pj/xNzhwEA7YpJPsVmhH6hEXu9+mdqHTD/L5s155C2KRsJwvCoNU9 hr1z1dwQ0ZH6Hptp5x+ykTPx9u/MNuqbRzBzqBuXb4B6L2HUnqaea1Fip 9Z5SLi+Z/vr4QcczbEZWlBU37ynxGiWDtgxKYbJnvFakhLkZEmGBtK4Bc Lx8LNvFrNbPJRWE3WBzqFZJ0tBkstkt1ePbOicrzOK4JTRYJpdi5CYxPR w==; X-CSE-ConnectionGUID: zvx/EmShSwef3CktVEi4gQ== X-CSE-MsgGUID: dz/A6AtPT3axC9IdiFqhIw== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="19914683" X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="19914683" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:19:57 -0700 X-CSE-ConnectionGUID: lfmOZzp3QUakIJxXmm9qBg== X-CSE-MsgGUID: OAv0MYosRCOYhnnAWgnwkQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="22871883" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:19:57 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v3 04/74] x86/cpu/vfm: Update arch/x86/crypto/poly1305_glue.c Date: Tue, 16 Apr 2024 14:19:06 -0700 Message-ID: <20240416211941.9369-5-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240416211941.9369-1-tony.luck@intel.com> References: <20240416211941.9369-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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/crypto/poly1305_glue.c b/arch/x86/crypto/poly1305_glue.c index 1dfb8af48a3c..9738995080bc 100644 --- a/arch/x86/crypto/poly1305_glue.c +++ b/arch/x86/crypto/poly1305_glue.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -269,7 +270,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.44.0