Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2747741lqo; Mon, 20 May 2024 15:52:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkHGQyarGGonpou8XTBgpf8PNxgFJUTeCJzOo9EkT+5na+jYCvtHmUSUrp0J5tKCIPUUq159h/iosZQj+VfoOul3QQ5OfyD9HxsRDWbA== X-Google-Smtp-Source: AGHT+IEPMnmt3uUuB3uPTaX06P78SMldvysMqESXpBV+zPxw6AAR3gfXjTHuxUTYTkKCGK8cGVv6 X-Received: by 2002:a05:6214:3a08:b0:6a3:c13c:3865 with SMTP id 6a1803df08f44-6a3c13c38bamr138502896d6.40.1716245557910; Mon, 20 May 2024 15:52:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245557; cv=pass; d=google.com; s=arc-20160816; b=SikkEvpSIxW+w6eYCKeleflPpA/x/mrjE13bmBHzn/uqGllROFGa/docTRkLfG26x8 3wERsyEXJwg50xcLs6orIpfWPheGSAZ0eFMyDScoZ3tWOED5LU+IGEhPVgFx3vFKcOpf 8pi1LELmxHjJEij6uB5ofTbhR8evpLN6Ep6N+Nze/w6AAZ5EJa7MWO1UX9D+0trzLexn BES+LhNleN2stKt5AiOkydoyMhdEo1IPsSqGEBUhCHFo0y5PhyVYbfWswL7YXS53h9iz ntG6TeObzLIHm0ZOriERXjbbPYbMfj+mUkP8vqNqGKLczigDehD8E3otNTSq5s5FXpLE wZmw== 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=s2E3kHm8u4BPEmWAmAIEzguhmFiGAzCm98infEt/Vvo=; fh=T26ksdX6UpceKBTmCjnZX4okm/RnV1G8gmRkfePNArg=; b=yuHGwQbDYs2/z7bNl4Z5/mNX4JPGGYEzMLPvj0W9PUxRpGzLOH/52EBZu8tN1bYllk PfDFd3qalEf9O6qiS7bCUmAZdkXTJCO9m5RMGe67RsITY6sYnKrvTr5lhxK09wU3fK89 rVuKYjznloLBU5AB7DV0KGBzUs+QhW58JeMECXkJS8UO1WMmwOzOjnsJUC0SNaJcwaAl kpHoitOlb3sL/OFnOCEXpDkBo7OzXKlD6SO3e33O7NxVA7x8o4cEjYaYZuYa//RNRLjG FrBrooCQzPyjW3ggr73fpRHD2XUtnYm7J9D4TlYoEWFAYVTJAPLYfssj1Xsz1hPShj1+ jeYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cKMSI+dF; 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-184261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184261-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab72541048si3410536d6.103.2024.05.20.15.52.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cKMSI+dF; 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-184261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184261-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 11DD31C216A4 for ; Mon, 20 May 2024 22:52:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E02C13D258; Mon, 20 May 2024 22:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cKMSI+dF" 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 93C4613C903 for ; Mon, 20 May 2024 22:46:52 +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=1716245214; cv=none; b=V5Af9zRZ/RavPV+UnHbsUVTI8XJ05RrWRfhuylpjy5A11JonV/w4Ul2U63Do3fq8lsamo9FmhQc38jHPJ3nqBdvOUucFLxamk0CFnqJ570G/EEPZbpndtA8h8LXCKPkb6edkkvce1XiCKErRvpm1pMN79rxqMrlm4Cg/OtVTgL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245214; c=relaxed/simple; bh=sASbPr2zR3JdDKlYAQlWUeMercohyneum+eNLKpGg/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e3rco2bg6IGHAcRotsgBFM+GM19AyIMDN5vrw0t2v4/gMGTaQIFrLuZJ8dXO07piBSiLmdGhowlSRswaxCQ15Udb03UEPrW/Fj6inchCH0lqZK7Whz+Vm45jNOyQv4zl0dsbZbkpOrPNK1prdSQKCPnt81yx9Pgdr0SctDJf/zg= 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=cKMSI+dF; 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=1716245213; x=1747781213; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sASbPr2zR3JdDKlYAQlWUeMercohyneum+eNLKpGg/c=; b=cKMSI+dFAGRDXbJv3aOwGwutUZKZ+KU5pvE/r0Aoig36o4BlMWE9eyfa Z+dRvnECzZHcmiwQ8rAjG46v3z8CzCF1F1GC72L8YbXhjBtPLaUzsAlAx x/osZD3MhEXLb4ZJpyOGnlRUmaMrliOjwaWGXMhSHs/fOPNQUeJ9oFAkC 1IUybRzAvsVDmqSRHemlO87i1aSUAj4qRt+ENRvelfCBNPh4IcFxUZh+i 5qj3Fl44mV+y8780q52Cu2BvmTH7LYadV1gw1CfU75FgE3Lp6nW7ol3nJ HtsNa42UmdwCHzfCYbDR1+SWDHVVUWTh6cN1SE8e3aFA9BlHMUU8RfHJ6 g==; X-CSE-ConnectionGUID: PLqZ0/pdQXS0kc0t/BbOmw== X-CSE-MsgGUID: GNkGNA9cTJuoabxnS4e+pg== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199878" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199878" 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:39 -0700 X-CSE-ConnectionGUID: nlACXApCRPuDY0QXHvTOlQ== X-CSE-MsgGUID: rNZxRk8JRsmWn+lR2jNOeA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593486" 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:39 -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 34/49] x86/boot: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:46:05 -0700 Message-ID: <20240520224620.9480-35-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 but boot code doesn't have all the infrastructure to use them. Hard code the one CPU model number used here. Signed-off-by: Tony Luck --- arch/x86/boot/cpucheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/cpucheck.c b/arch/x86/boot/cpucheck.c index fed8d13ce252..0aae4d4ed615 100644 --- a/arch/x86/boot/cpucheck.c +++ b/arch/x86/boot/cpucheck.c @@ -203,7 +203,7 @@ int check_knl_erratum(void) */ if (!is_intel() || cpu.family != 6 || - cpu.model != INTEL_FAM6_XEON_PHI_KNL) + cpu.model != 0x57 /*INTEL_XEON_PHI_KNL*/) return 0; /* -- 2.45.0