Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2173455lqa; Tue, 30 Apr 2024 09:56:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9kzhrm/wCKhZGS3H7eMuP1+IJRzmDD+IQ89lSV2Fy5bsyC3imhbQRu4XUAkXJS5mR9vcnt/rood9kjHv86tzPLDwWS0mpRDQ2gcw3lw== X-Google-Smtp-Source: AGHT+IF97JuDaY7aTYCTl1e/6FvD9wfc4/O7VVhcknTfJkp/9DdLVlGNYToENYuIFuFAErfJMUgT X-Received: by 2002:ac2:57ca:0:b0:51d:8330:9ef3 with SMTP id k10-20020ac257ca000000b0051d83309ef3mr51845lfo.21.1714496185007; Tue, 30 Apr 2024 09:56:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714496184; cv=pass; d=google.com; s=arc-20160816; b=vc8po5KK1XVAoOGiz49fFdwoxPzBMcoz2x+0tJ//yCZDwBATWe9jRmUoQGy75Qp+uV qOwPXHWXiC3c/bKxqKrC3fZzVwaqTlnW5WpXgT6uHtRrqzhKitWXThAiSoU0G5NFJuYc MGzvgy3hT0m/CAFEmAJdBNAbeQrKU+utOlQxckGpB56z9qFaF8VUg/J/kt0KKCXWetZY lK9iWH/p/IAOToBOfQSb5VvGgdCkq34FmHOsDeZS6rl+sDFaAXDVo5QfTmpnnf89QLFg eq4J71AF+7ScrU0kA88UnRvp+QJ2lpTfkI1Q55HT8X45QCz2f17s5DkGLcd1N/x16J7c 6u1Q== 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=KkIeP3soIISeB72c/G/fCo0eRGbH8O2TanwklLMcsqM=; fh=fCCNFvJbPqqXo45yXdlgqaDimb/JVSzwDZSVTcpWFog=; b=buBdxr3suQhK9KxRFBKFu6rBgSwEVqMK7HaWcSbiWr2vEY1hxs6m8IvryF6kFm5Lmc QmTPgzfkFCV+mhYoWNT0q5QXbG5FkqtN04b+L6aH20Hm7mlI2si9pUD/68e0PHDAplqB 1iGWOFcHcGOe0MmC9vdYnJkpP/O1VuccKZj9cBDqNeO4lUoI3olTP20NsBqCT+TQeJYC MQ5w7txCToGC6EmeEU1TOzs9xL4jmmbVFN6P14S1czrHA/NSbOv2A2z8NGggZKnYM3+V XVDcj+nKkjieHYvIhd4X/FqblHXyUS1ra3TsBKAGpJZ0YVYzGLyGtZRnifNLNNpInJNw aNcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fu0UYF7n; 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-164457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164457-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ne10-20020a1709077b8a00b00a55bb1872desi11786480ejc.643.2024.04.30.09.56.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:56:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fu0UYF7n; 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-164457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164457-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B3F7D1F28D9E for ; Tue, 30 Apr 2024 16:56:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5263B1C8FB9; Tue, 30 Apr 2024 16:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Fu0UYF7n" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 89AFF1C230A for ; Tue, 30 Apr 2024 16:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495909; cv=none; b=G0e6eFKhNv8V7Pta0VNEgn6vj/ESWkhJHT9jIHO04L/9IIyMPrrpOYAdGdkmNFfrluyyUCytPfOpT5hpz4GTeZybAKu8r4XDNUHu59s66HjIZ1sOOwq/nlJU03V8vfllsgQbbKA1CSHO3L5AXsPxssnrudopOoqNmhYXeShaOnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495909; c=relaxed/simple; bh=EzHNCGkFW4pzZxYwMtbicWPPZh4LNVsfxDMf79eOOok=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PWMrBAPpWNxiMhti4RZCxF4W1aE/zC0ikLuEvRMmxRVQ7P5SbkZ1Y5iVK7b672TAU9VLydTaHTlntFQsytCRu7dDlXSVMn6nX2RpADpC7xPjVZaf0qVudVEoi0WA+pO+5g+LqM7ve6Rtr02Zob4XTB5x9FvHkSVtey9PXJj4yZo= 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=Fu0UYF7n; arc=none smtp.client-ip=198.175.65.19 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=1714495908; x=1746031908; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EzHNCGkFW4pzZxYwMtbicWPPZh4LNVsfxDMf79eOOok=; b=Fu0UYF7njvVHVwr3d33mFKWTbDvbYREYYZJSStey3QjnULGK6mhXWpmU h6MewpOxO9lfJ+m+oFT3CNaY7QQEmfDe9gZ3GHiMFOzLK2Om1YpzWDmme +/EN7m/rJY+I3GeexF6dDTwMouorpj5qMLiOwe9GQJ5TQ8f/u5l5eoDK4 UmOv/LQvwnucuPfDy3tXr3l+HpOfbTi5Hzdi9ksvoZU5smztrW6hi/fZo soTyw6JQ5Yd6DKJOmAhuq9jwSX4gUGJiaGLMYgdTvGv41CoMhx2XFPNC+ HuT0iE3N0vZxnz8UJd00Ndk7dYEta7/hqe4njdqPvNBxpRlOMibnwsvma w==; X-CSE-ConnectionGUID: qye7ZsHAQUK6PALkqpxtwQ== X-CSE-MsgGUID: SEFSxFOyTb+yD/UV4N5jkQ== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10075769" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10075769" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:23 -0700 X-CSE-ConnectionGUID: 0VLHcjPJTOCTYD8CqY/1zA== X-CSE-MsgGUID: OaNTei8vTqKF+koxjRmoJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26515499" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:19 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v5 32/47] x86/boot: Switch to new Intel CPU model defines Date: Tue, 30 Apr 2024 09:50:45 -0700 Message-ID: <20240430165100.73491-32-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430165100.73491-1-tony.luck@intel.com> References: <20240430164913.73473-1-tony.luck@intel.com> <20240430165100.73491-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.44.0