Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp625693lqd; Wed, 24 Apr 2024 11:49:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD7V4vq7MCrkaTEJmnqGzmNuXa+WnMEhr6UzPgzlNR4ACmukrgAxlL0fiIOQSO+ie0erXkN510GsEL7tVnMuW0gTAU7ryUNWwZOEJStQ== X-Google-Smtp-Source: AGHT+IGlOSOikgpGoVli7pmw6rGWiR++X/+39k1QXg6krOFAForTigxgoudKBXL3ZPFTSTDC1l5F X-Received: by 2002:a17:90a:db94:b0:2aa:b57c:b178 with SMTP id h20-20020a17090adb9400b002aab57cb178mr3783329pjv.34.1713984593662; Wed, 24 Apr 2024 11:49:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713984593; cv=pass; d=google.com; s=arc-20160816; b=JeY30bUV3ghw632A6PVpzDgA9nYNyxuj0PJYm9FWfTTqD+PgDLD/YHHK9RGU/ayT49 fRcprcQy1erg3MZNgWwdhlSXu/DShlYyy0xWio9Bh2UCHd/8NYgzE8innrmuQiLkVPl1 I1BjAYs9tUYPbz0Osw3owAaV0i/jgvxvRqr6Y3nCrNjzuegPWQXn2V751Rnh/hnM6cvL hX7xMO91/JcfYD0a8OGpOP1GrQIgO738mGGx7K1cVSP+MKnuP9FN7lLPCZHBx+SdRnSK o1zqCOXNpQqH+fL9DI3bEyh7kQosXoIf+TcrRqzRJQWQRKofXV4+I4xeJ4toAkrkZpql jw+A== 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=RfplRNdHMPzxMWVZvYnSVWDu3ZeKCz9s2dq8292IY1s=; fh=LZS6YN6A8lR5WSlhdwZ7GKOgJG7GSRUrT9fT0a9X5Nk=; b=Hq8/zXc8l1CdwrPV3jCrYUW/2Pmfha1VtnzSIohUbyNaBLsRiDRLGm4gA9yrKTmTPN Hhuo3TGqYMK7NfpDwPipttVWxNRcRpfpXPg5MzFS9trwSAmQXEusDAg+BTYPuVTj4SjT zZhVnSJmPs4jRHOd8MLhNzFOhwOHLBfspOkvlp6poHwNtGo2nx3Vkaopxx872SXcYTjb i0+6FlPAsE1N5bXKyEd2wNFPKdDZsbN4xHGKPCeVhg3AuPVQeJnURSAR4UoCNDJPeAtR NJOfoNkNWwyE6Np9otLMddiooT2oo+yQGMcibwEtK2FYUcoMonQwm8sHcCje2UjxdoGN TMMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="DsCe/ZYA"; 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-157497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157497-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 lw5-20020a17090b180500b002a527dfd962si654309pjb.40.2024.04.24.11.49.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157497-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="DsCe/ZYA"; 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-157497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157497-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 211AEB220C4 for ; Wed, 24 Apr 2024 18:24:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC39C1BF6CB; Wed, 24 Apr 2024 18:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DsCe/ZYA" 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 F078519DF7A for ; Wed, 24 Apr 2024 18:15:29 +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=1713982531; cv=none; b=qSX9tLnPyYMxQK5KUfc8SjUMjmLJUS5nUDydNNbmJzrzFD1i0+nJGNPkUOOPc55isQ4JbzFY0u9gn//8JdEDc9AGLcwprQeD6s0fFMyBaHpMujeKatk4keEVpPySUx9zwMGFxZP7QZuMaGsWN+3h/jKbnpxil5iOhn1seiFwHAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982531; c=relaxed/simple; bh=FfXHVVXxAXvXhf26U3fzvKJ4+8iaBCg597mpHe5hnu0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SU1QlC+B66f5wN0ZILvQYVrRvhs7zTwrJ80Jgt166CsxSSMVpQsQBWG4DjYuK6/0uamorPn/1UpvXLeYv5QpUhcqFlhekS7fPvRzIAQ3QBc6w1WXw1mLYgckZy9WWVhv0KOgl/3ldxiHMqFeTmInFTSYlKWQPnZP2VaJMezUbiQ= 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=DsCe/ZYA; 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=1713982530; x=1745518530; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FfXHVVXxAXvXhf26U3fzvKJ4+8iaBCg597mpHe5hnu0=; b=DsCe/ZYAU7iRq8SD1I9BTCYT6VYG5poUNnyh8yNEcnQ3rT2msr5nkZtS KbvjIxRQz1m6d7I2abvQbq1jT9WsWOiEVdKcmQZo3OJpLfC6DnXhq7jv3 AGEeUKulA1E3q9kvBT2x0zGh2CoAD0Hc2454cIg2lcXzVt4k7gUh7+N+k bmZExerT4CW+0buUkM7/d42P5URrXXLfo6HsFbPfv/fW5Mkg3bM3/ho8l QhidrqcC50bK7rpc5d3vH1SPgQTLSPJSzxFWxoBdKVInMI0W+EYsozFqa Z0x1jdqfPsUOPQd9kXkXwu6UAiBcO+Pcn1DD3gjjeJOmtVeo5JiLBqqT6 A==; X-CSE-ConnectionGUID: DQHxgBteQj2VnzYLmj3OVQ== X-CSE-MsgGUID: q8fCCNrGR/KxzN1kc0xW5Q== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9482081" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9482081" 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:19 -0700 X-CSE-ConnectionGUID: bO0fFlafRrua07hw4U++9g== X-CSE-MsgGUID: WU2AeidrSl6GnEj/OycV3w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262793" 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:19 -0700 From: Tony Luck To: Borislav Petkov , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , x86@kernel.org Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 41/71] x86/mm: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:18 -0700 Message-ID: <20240424181518.41946-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/mm/init.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 679893ea5e68..fadc3fc3ee41 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -261,21 +261,17 @@ static void __init probe_page_size_mask(void) } } -#define INTEL_MATCH(_model) { .vendor = X86_VENDOR_INTEL, \ - .family = 6, \ - .model = _model, \ - } /* * INVLPG may not properly flush Global entries * on these CPUs when PCIDs are enabled. */ static const struct x86_cpu_id invlpg_miss_ids[] = { - INTEL_MATCH(INTEL_FAM6_ALDERLAKE ), - INTEL_MATCH(INTEL_FAM6_ALDERLAKE_L ), - INTEL_MATCH(INTEL_FAM6_ATOM_GRACEMONT ), - INTEL_MATCH(INTEL_FAM6_RAPTORLAKE ), - INTEL_MATCH(INTEL_FAM6_RAPTORLAKE_P), - INTEL_MATCH(INTEL_FAM6_RAPTORLAKE_S), + X86_MATCH_VFM(INTEL_ALDERLAKE, 0), + X86_MATCH_VFM(INTEL_ALDERLAKE_L, 0), + X86_MATCH_VFM(INTEL_ATOM_GRACEMONT, 0), + X86_MATCH_VFM(INTEL_RAPTORLAKE, 0), + X86_MATCH_VFM(INTEL_RAPTORLAKE_P, 0), + X86_MATCH_VFM(INTEL_RAPTORLAKE_S, 0), {} }; -- 2.44.0