Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1229092lqa; Mon, 29 Apr 2024 02:02:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjRUK8gzwdEd1zRHJUZKG+yyQJO9XQSz8BhxhjW2W4KikTJ2D9SaZwUV6N4//Qve0/ijYqgmaBpcHGX5ABngExGU21KEfigVNzf/QV9w== X-Google-Smtp-Source: AGHT+IFa14+VknIW7uI8wUBf81vK4/Hev+/6x60ZB2NsW1SC8bmAXb7aPQn2OewSWZP8MOsC5EhN X-Received: by 2002:a05:6a21:3995:b0:1aa:6613:2b5e with SMTP id ad21-20020a056a21399500b001aa66132b5emr13842947pzc.20.1714381357360; Mon, 29 Apr 2024 02:02:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714381357; cv=pass; d=google.com; s=arc-20160816; b=ef90gS88kgzAVcaiw/iE9XRMWBzNJDXWo7qX7//G6QsuUVF+JRcntGp1nPUCS5GcL2 823yYoPCPtCdDD5MfpVMq1D4MuXy1z0szWypqlcRv/pBiMhY0pFTfrEP9df/cU4VvPbR S20bGutqrJPTnwLDH8RF2RGChvNTmC6Yc8CfINydZQoY5MqUxsAvC3WainXhkMi+pFfD oTu1T2Nk2E4tp7y5IbmMMgKSVhg3yyjZ+WYY8rWIA5xqrxGDSiYirpwCAEPwpd/oEE83 PYxDPsXGbtBs/GFxyCfAyxvkZcI5qHPdWbmLzz/mwOjAXSeIuySqb5FVcWHRw+mlnwxL Bh2A== 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:cc:subject:to:reply-to:sender:from:dkim-signature :dkim-signature:date; bh=ogeoc09PssNiX+ZrFo0TjrSh9rtFLEIsFW15BoHbW0Q=; fh=JTk9+qr5gpUHTA82NAoTC2Dn364LtWPF0bcXdXoFHrA=; b=D7XOO3Jt17L0WbZjuzfHNT12AqX8R56YNOqv5iqrkcl6M9XGNiD9hHQRUtrTLZPfm9 /7osY6hw39pEm13RPU7Q9GcKRDFuSEBWX0hFE8+HoOUJzT25rZLDGmPKuBo9g6u0XKgA xqHLU5OO2jdn063EfKBGg1dtegMpI0eH0Ysfxa9ENAm5hesv+bIStfB6f8HOX0nA4lRz zU0b7G9VHIjvZHVvxvYOvBgi5c4VX3SNwCfhVlb6A5cVE+5MPrPGC0ARh+rkaIBm+YAB hDxYz4ktvEnuB83YHmj4SmjZbZ1O6huwsTUpCYVz0U5G/t5KUL0Os58OyBdH7kTzMHvD FaqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=M3qYQm4V; 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-161946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161946-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g21-20020a63f415000000b005e4901151ddsi19873739pgi.92.2024.04.29.02.02.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 02:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=M3qYQm4V; 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-161946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161946-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EB31F28159F for ; Mon, 29 Apr 2024 09:02:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BA98288AE; Mon, 29 Apr 2024 09:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="M3qYQm4V"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Rs9i9zbt" 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 42DB117C8D; Mon, 29 Apr 2024 09:02:01 +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=1714381323; cv=none; b=aYXpsxgKbMEtaUWH8SikxVKgII22iaiyI/AJmLDxVQ+JIVYcjGC2Jxg25I+Mkbvz8QSr+2X5Zvz+Tiq2SuRTED3cnNDIhahSE4UbqXKzB48+3j9R9S4hWWzuj8QqoFbI5RI0uopwVslS7TanXcKw1mbJE6C0tE+e7Kpn3gPxA0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714381323; c=relaxed/simple; bh=y9m9l6FwfStRD/VKBQNQwbRGqY1Ehc339DtZQQUbsjI=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=XEo3l/pGb73pZ8kHmbA6OAhhBUM9WQw5Dbs/okPcQMyf6m7WnHJ7pGIVURbYgw5ZvDCl/OgUYBZwTp3+nFtu3rHJv4zXLjVgb9PElcSskGdISUYSSXeIUWhEP8UuHpezkKNetWVeWM6HjqwRVqgQAV45lLUZ8sawsMqyDFzM2ro= 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=M3qYQm4V; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Rs9i9zbt; 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: Mon, 29 Apr 2024 09:01:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714381313; 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; bh=ogeoc09PssNiX+ZrFo0TjrSh9rtFLEIsFW15BoHbW0Q=; b=M3qYQm4VT1ZnfiMleXtX1LvnPzh7NQ8zGQmn9PxB4bSSK4Wvms1RLxkPIFb4Us9A1HorXY 5SfX5GIs7slWG7C2cWk1ybQx9ygAyrAZHHKYJ3V7FYBAN0jNr/XQs0AuJjR/hlxsWinIdt I0hRr2FXyE3E5+RRmaTXhIi0ZzDpYPcNMCWzWBeoAWHRnm44pvYtfjjz8KPjzPH//C52C0 DgNgZlXlVU7XXfRMHqO9wfxTdail7m6CdDxFA4iC7yfEqhhXdVTzjqyT30sRL+KVmiiGa5 nVStzh6aBwfp4t70NOXgQgD88wZWc0rPdiP3b6nw71n7JVOfQH69Ds1IqvyM2A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714381313; 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; bh=ogeoc09PssNiX+ZrFo0TjrSh9rtFLEIsFW15BoHbW0Q=; b=Rs9i9zbtpAcYYCX0gv/5BzFW30HltGHIStkxxyXkesBdLY2F8wqJIdHKXl1hiSidm22Tx0 lF7SsZUnRts6axDA== 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/mm: Switch to new Intel CPU model defines Cc: Tony Luck , Dave Hansen , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171438131342.10875.1337227132965342852.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: 2eda374e883ad297bd9fe575a16c1dc850346075 Gitweb: https://git.kernel.org/tip/2eda374e883ad297bd9fe575a16c1dc850346075 Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:18 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 29 Apr 2024 10:31:36 +02:00 x86/mm: Switch to new Intel CPU model defines New CPU #defines encode vendor and family as well as model. [ dhansen: vertically align 0's in invlpg_miss_ids[] ] Signed-off-by: Tony Luck Signed-off-by: Dave Hansen Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/all/20240424181518.41946-1-tony.luck%40intel.com --- 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 679893e..6b43b64 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), {} };