Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1019973lqd; Thu, 25 Apr 2024 03:52:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAYuDfWUgD7Y1eqzIxR67EQkSdbd6EdVlT5aOMyMIlwMEJYFm1CkN30tP3xTCiNmt71rxoGBOPU21Ark7huI77/yPpi43onx/oUd6VcQ== X-Google-Smtp-Source: AGHT+IHvz+K+lsCfTwrN1tKbCUYz8Ehgc0rHEWL4EorOYllyVEGSejQyYWfdeN2iWGD3uO580K0I X-Received: by 2002:a50:d7c4:0:b0:56b:986b:b4e7 with SMTP id m4-20020a50d7c4000000b0056b986bb4e7mr4383835edj.27.1714042378089; Thu, 25 Apr 2024 03:52:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714042378; cv=pass; d=google.com; s=arc-20160816; b=kSKQVtjPeXxydJc9/dPYP2uD9px+02fSOLpMaRxT0N5zxk42swKk6FE1l7WW/6dIyy 4eoq2EAHeFJEEAwZ+36sIv65hkxaF8d7U8lnAb2qifWzas6TZDI4qJWH1qURGEoqwUIB usUWoh3haRcPHQjyzwtFwNOcD5eRiovxWO50rxSdcj6gYbKrC0p/F7FSsmz9M+7iYFZ8 FrNgAabsDumOje9Q7WMB1rW1WEWk5vhmXdKY95e43fZn5OKUmwzcJk9aIyfhnQF2Vude 87fePla9K1D3VhWwG9YFKvPGDuFpjRbBI0EaFcQew4uxdcd1wz30ekbfcQMn8UMDtjME V7lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=tPZfu3AAsXB7okaVcD/0QHI6MFbUYpenoIlPfWwqYVM=; fh=LgFc870L8V6i61dsd4t0F39B7O2lxA1GtgFrC15d478=; b=Rb2EokB9F9YJDcEo2HkprabxsbJTwK+w8KfX6wtk8kak6q6d8h9DAWuFbt6vDKdUZQ +tPIIgQ633G+oqAkueQ6tQzUPB2BQoSzNJq8/YzlW5/RGTZmaiHpGoBf+J3e5RT21dpZ Lfewkx+LtEKJokyQYwmlmoBwTIUdGBLqfOHC4BQr0XbBddEvCJJE+DnsFet5XIcZWINx 11FIfFOD75tBFiO5FNvrWa5W6IC8QDeyjuOt9y5iW1MRfM4cophFc9cVDp0lor4PqN25 RinovsTI3x/5IvHzrug9FXLyGeB4FCnWDTIX0dPOZDnSmSSUes/mw0Zgn5faA5yOh5zE fmnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="vSV0dd/e"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-158414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w8-20020a50d788000000b00568b4af7206si9691609edi.482.2024.04.25.03.52.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 03:52:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158414-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=@linutronix.de header.s=2020 header.b="vSV0dd/e"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-158414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 A4B411F23B40 for ; Thu, 25 Apr 2024 10:52:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD2CA2374E; Thu, 25 Apr 2024 10:52:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vSV0dd/e"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="89X14WQJ" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 72F441D53F; Thu, 25 Apr 2024 10:52:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714042344; cv=none; b=pl+BjdEL4T1U3qpw1nFQwcIFJ2DG3DURDApUjZh+wwmhlWv+qyPXjI/pVMgelBg7Hb51hPjFFKcvI5gaBlcQ290opdQBeG9C04BcvqNcxm5S6JykfasukHc5DfFbmDG8cBn2T+gFEa6DxkWi3EuMTcBpeoMvdMtHQJpGzF0hxTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714042344; c=relaxed/simple; bh=pShO0c7KzGz61XItFLkgN19PQLdEoC1UOl8AH5BK24A=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=DlL/W/d4c62F8bIVJfnhkDNpCuAE941VD8vbOohi7bgk5jIicslrzUtrHWtqfcV0nvrFRkwT3DiaaARg0GNMgfJBAQe4Pgh03qIsdagf4BQmegbQlRiOcr1rkqiW4nqS+9Z5RCxDWxDJMGj/pmKEmmurjVYIHfUYNdyBcCgL3LE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vSV0dd/e; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=89X14WQJ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 25 Apr 2024 10:52:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714042336; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tPZfu3AAsXB7okaVcD/0QHI6MFbUYpenoIlPfWwqYVM=; b=vSV0dd/e8rNJqu5sh667dn9uRXAPUI1X0eh18ubVedkH7q91ekOfrXS3r8KqqGpgKj601z m19TAGy+PBgDYp3WKc2wAEDEDtA/2YYC9/pRC0MZag+H/sLeZ236cCEISmVgtdzBKNm0h4 XSu/ecCzyH3RhC1HDwrQ6+D6VWaMSNzQnMUwEMhpslt2ghnHXcwmd03g4L6M+j0ctoARus kRcNaxZNU3lQL3u5db85t08jA+oVciHnLpy9R15cBSlTWJpaoU+yXuaivJ1YR0lFlQN0EC dzc6IGFTuD1T9otQAOmnUE2CPZqBXJHyivGqGZ8PW5gFS7mcFJOZRAAP7/hAPw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714042336; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tPZfu3AAsXB7okaVcD/0QHI6MFbUYpenoIlPfWwqYVM=; b=89X14WQJuPMuauRViNPa8IcTCeTPWWHi2tseiO030s+cpNW/F1m6J+p6eT+4zGEwqy6nI8 sLRHAyLjP/Z99ICw== From: "tip-bot2 for Tony Luck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/bugs: Switch to new Intel CPU model defines Cc: Tony Luck , "Borislav Petkov (AMD)" , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240424181506.41673-1-tony.luck@intel.com> References: <20240424181506.41673-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 Message-ID: <171404233198.10875.13057892909385015693.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 8a28b0220266e2b8290e696d4b21c88f32e6aeb1 Gitweb: https://git.kernel.org/tip/8a28b0220266e2b8290e696d4b21c88f32e6aeb1 Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:06 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Thu, 25 Apr 2024 12:27:25 +02:00 x86/bugs: Switch to new Intel CPU model defines New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck Signed-off-by: Borislav Petkov (AMD) Acked-by: Josh Poimboeuf Link: https://lore.kernel.org/r/20240424181506.41673-1-tony.luck@intel.com --- arch/x86/kernel/cpu/bugs.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index ca295b0..32d86dd 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include @@ -2390,20 +2390,20 @@ static void override_cache_bits(struct cpuinfo_x86 *c) if (c->x86 != 6) return; - switch (c->x86_model) { - case INTEL_FAM6_NEHALEM: - case INTEL_FAM6_WESTMERE: - case INTEL_FAM6_SANDYBRIDGE: - case INTEL_FAM6_IVYBRIDGE: - case INTEL_FAM6_HASWELL: - case INTEL_FAM6_HASWELL_L: - case INTEL_FAM6_HASWELL_G: - case INTEL_FAM6_BROADWELL: - case INTEL_FAM6_BROADWELL_G: - case INTEL_FAM6_SKYLAKE_L: - case INTEL_FAM6_SKYLAKE: - case INTEL_FAM6_KABYLAKE_L: - case INTEL_FAM6_KABYLAKE: + switch (c->x86_vfm) { + case INTEL_NEHALEM: + case INTEL_WESTMERE: + case INTEL_SANDYBRIDGE: + case INTEL_IVYBRIDGE: + case INTEL_HASWELL: + case INTEL_HASWELL_L: + case INTEL_HASWELL_G: + case INTEL_BROADWELL: + case INTEL_BROADWELL_G: + case INTEL_SKYLAKE_L: + case INTEL_SKYLAKE: + case INTEL_KABYLAKE_L: + case INTEL_KABYLAKE: if (c->x86_cache_bits < 44) c->x86_cache_bits = 44; break;