Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp622820lqd; Wed, 24 Apr 2024 11:44:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVEJcQs9dXorKWPOXsjDzIIpBcDcCQn09ae2Yv+ZwE5yS0o/jVYP+yKoJaGEX1taRanLF4ZCsS1KFmwOdz8RmT8YHp8QJ3nq9WRVI8Gw== X-Google-Smtp-Source: AGHT+IEebqb2CZ6VtVfAgLjS1I+ePZSdw+9JaNmMPIfk9nc8tMCpri+S7RuLubqxzi4emkVx2cC5 X-Received: by 2002:a05:6a00:3916:b0:6ea:c5cc:f4d with SMTP id fh22-20020a056a00391600b006eac5cc0f4dmr4187530pfb.11.1713984248663; Wed, 24 Apr 2024 11:44:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713984248; cv=pass; d=google.com; s=arc-20160816; b=rT5mW9/hTyF4iYAIfsM1kg3LuvJJhs4yVg8PTGObI48LhY3CbMcPQ3gRwgxRncLK6c 0DFxUaMUTww0laLyDpyghxCzRc9FUJ5glyFX5L5NQZKStMId1HLT0/7GhI9dILKygt9+ 3tgiDrJDK25xeeovzAfG02B2PqGRD8HNGNwOTSpjCrf/N2wCHrftUXDU2hfXU31Mc/IS XuZR7V47OyJP9QgIEHyva/m0wxHWTC9lhKfBBbOlM0CTXEvgrwMqfLXDedCFNsVb2Ba0 5CkmLL801BfGHaUwcBADEQuJa2KmDoXS5LG14KuXJTQ46BEbKAeoiMDn+g7HEFVSjYVd ZEDg== 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=K9VoNuI6LTMowk6GwgRXNnsgosELELgkLa0wrK5PgVM=; fh=IlCRR68RLeKYCQ1N90QnE/WLEGx/uwzErRt0xXqsGko=; b=OXcc9uD7bnSSquaxjB1MoOGWQ35j3enIU5auEv13q3PerkW62SugRMgbpuZ9/Lem1U vhjiXoi+Kh23VcLACuaolx5x2l2f3WzIEojdEuJ3my+384gaRypf58ToYPNchb1cqsDP v8B+uX4AYLYCixWXoKMAzBoZXwl2GS0AQYV+/OE1l5ZLYiEuykYbrd3KeXgX71K+F1Js 4/6doQq15fktOAEkuQS27f7pzwod8KKwoKUOKuecyhCx8Li6XCzxdXZOKqT5yNYeVdmg kGYr0BTQykz92+3EVzgBQehF+zjpN1aj//MdPOabeI77wa+MsPBylm4Lkhd5D95fGTCi INEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LlQ0WAGc; 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-157476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157476-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p11-20020a62ab0b000000b006ed5f889124si11616422pff.133.2024.04.24.11.44.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:44:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LlQ0WAGc; 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-157476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157476-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 E8AF4B2B63B for ; Wed, 24 Apr 2024 18:20:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 254CD181B89; Wed, 24 Apr 2024 18:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LlQ0WAGc" 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 68F9A180A6C for ; Wed, 24 Apr 2024 18:15:19 +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=1713982521; cv=none; b=EIOm1yXagl4J6tliDbXZUmQlVcsBMX8KlBZhIkEGW0b010Y/7SDqcakYmCgi+4+wBN+xAIOa/A0C55+itwn6jen/nTR+4F+kBXlZtfjG4aghgKKCmwk89f1cGRYdC35YlslB5lzGisiHde1WgYU/gkNk3JhpAVto4eWts6CZyfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982521; c=relaxed/simple; bh=MQ97iLFFbgxQYCiSBsEDrW3R5WSpsqJ/JU/KTZPQ0ow=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KquNf80mU471iKxNR474JVX/EhTvYl2rBXooCrqsrgaOYF1P6SLPjvyKsdQWnSh3Kt7lb6krgoMRgC/ro9siieQ+tyANSPxg1x2mZnfcLb6Q3035uowLsZKzWYHllUx/ZX0iU2+tLJkXCExeXxTb/6QtqRN2n0tD2YRNUW2iB1Q= 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=LlQ0WAGc; 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=1713982519; x=1745518519; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MQ97iLFFbgxQYCiSBsEDrW3R5WSpsqJ/JU/KTZPQ0ow=; b=LlQ0WAGceM6Q025F8+v87+IN1IAVZyWavmTfXwS0ssUp/2vfvaj+VEAB Oz+v+wUoXUl56ww5TamItHXf4mLEcFFNp28LtTb9GkOvU5PTed0gyu3GI CaxZu2AoJsDc6aaCV9Vj01frAGbHQcv2mZifejg8yhKeMiw8Q73eQEP7O vp81rsiZE+8i/LeHVr3OayqDTny1xpH01+lQ3+Y23Xt5Zac1nt8GQkUPR J8Clvs+ZaOiXfioyGBxLnxEK9PSlw/PsfdrmGBSilBYBNLX/rSLmxPJeF QpjTx3fTfar3fU5b01n6UR/7oTR60cy7tVZ/j+YBY84V2e7VoARQn9ke3 w==; X-CSE-ConnectionGUID: imiSScCiQM6UnnXLZGeBVQ== X-CSE-MsgGUID: YfT6z1fWT1KkF5oYLOyg8g== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9481950" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9481950" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:06 -0700 X-CSE-ConnectionGUID: NQGb3yeuSbW5JeWJ/NDD0A== X-CSE-MsgGUID: SMvjHHtTQJySvBszTAF66A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262700" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:07 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Peter Zijlstra , Josh Poimboeuf , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: Pawan Gupta , "H. Peter Anvin" , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 27/71] x86/bugs: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:06 -0700 Message-ID: <20240424181506.41673-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424181245.41141-1-tony.luck@intel.com> References: <20240424181245.41141-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/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 ca295b0c1eee..32d86dd976c0 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; -- 2.44.0