Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1229814lqa; Mon, 29 Apr 2024 02:04:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0XuJz4jFpE6RuYUh5t+DXUNQ0itij9+nzej3m2vKVlEXRUYo3YaQzDwc+sWeaPqWQhXKOI4MX5w3KK2D0mNUS6KJRGJXkVXQ8Nqdt+w== X-Google-Smtp-Source: AGHT+IE+HoQn+gP79GzsRm5iWShC0/HHRimDg0RYPvzleX+0DgI7shq5/GbDfBu0T9QX5j1VCefk X-Received: by 2002:a17:906:1b10:b0:a55:5698:3ea6 with SMTP id o16-20020a1709061b1000b00a5556983ea6mr5883701ejg.29.1714381450749; Mon, 29 Apr 2024 02:04:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714381450; cv=pass; d=google.com; s=arc-20160816; b=XGhod7HRptp/T5l5JBGb5Kbupp15fyzUh0OWhMvnMiCkH1/+j9ktNB6JZiFuE70yDG TUcZ0PUWqcjWZwj70k6wSviD0bvJKciwA+exT7BJodGdZn/bBU6Sd7NfcXevNq/podFA RGFk/P/7giGyLqy9aRr7mj92R0wTsg3L9wD/0TynpkIYl0z+YC3NpeIZOxlJfX+TNfeN QFDJLR/tFicL612wRucqHdBewslpVx6doHKVC1XJ/o9VPPosg6BmCbJvvy+zzOXe20YJ WwkiTJNeoWPTPkyz+stQYS+lW9J754xLpueOV/a6jNLyI2O5Ws1QOuKKX1PuxY50nyUX fg6A== 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=QMKZE/xVoBE0rclF6s10FaX030kZcRkb7pIxKsHIfiU=; fh=JTk9+qr5gpUHTA82NAoTC2Dn364LtWPF0bcXdXoFHrA=; b=MqtBg1/MHaAd1KGQDpwC11P4UYPKxk9vfm51/VZTA98Z3lsURIgyh8QxYapEB/PrZH H2qK9OVDZZ8ic87n6GdbBAzzffO3+bRIOVn1xXlOqeyYhyJElR+kHtxDxNIaPPj0lT8s F14Lf/bWL9UisdtvrNwf+jyOWFNzckX4N+DsNMG+Ld0ynHyXasTgPm8It2t0DIxaZGUJ NUGqJP10Ytf+kFZXDGnNy9SzSk2DLrppvVeobpGRcNRpUWAsPZ5PPuT8WpYliI1xLyK5 khwRaUhRKe8sod3E2KNzoB1O+gOk6fuMf0kU0nnD0MgAti/yjTunJmKVD63uijNJ+C3K 0iOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ZCAxuJAM; 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-161955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161955-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 g16-20020a1709063b1000b00a580302d546si8393773ejf.878.2024.04.29.02.04.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 02:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161955-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=ZCAxuJAM; 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-161955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161955-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 4DCD71F21D0C for ; Mon, 29 Apr 2024 09:04:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A0D043AB5; Mon, 29 Apr 2024 09:02:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZCAxuJAM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="smLIzmti" 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 590BA2E40E; Mon, 29 Apr 2024 09:02:05 +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=1714381328; cv=none; b=nY2M9dXBKyCu1syICxjTMXFT2etSv1jTpavbqqNC2NewSK3MNobRUxVFdOQrNzDkzdzo7GyoBZzY4lJd6xrxFwciSnjku1xyt9p4VSsKwHnPtmqYpdUb9+oe18R8i1TFhFBmEXa9dDkO5GdJgLNkzBteCMsgryKR2AAgjVYf4JY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714381328; c=relaxed/simple; bh=0Dr8LDhEEQEuzxPttKUTBGK5m8Ypx7Gk1/MO4suDsOc=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=pZROHRRJ4XEgVOfejw3oSsEfpH7wh53JmldIEBUImJ6gSfoBFbsWUH1DCQsEPsdiBfQJf/QE2+sGwCTWYqwfmxhnNMZhZ7XsPvVFfl2miK7brVaAd6yEtXLM8TLGUbasslVKR7v6nToOHpB8oJd3Kdwe5dP1cI+jVcFalx8Ubww= 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=ZCAxuJAM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=smLIzmti; 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:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714381315; 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=QMKZE/xVoBE0rclF6s10FaX030kZcRkb7pIxKsHIfiU=; b=ZCAxuJAMKUE1QCa/hOyAwPgLqtoGpIyM3qq98vhL9559i5LKVSAj1eP2/lTSYiX51ydjRe n7prLtHB8diEOY15JCI3/lbR75qXptoTGeFmX+/gZxGz10WphGV91HNRKzRR51rsjqQEQC cbEnNxIpuSefWDtQYV4MLkRXWLCtwOMLpq78Fxx0m8XMvY92iQafusopLVFOF35TRT/6Qn 5acaopAGizo801jFmSBy+AmaTHjvGJBy0dZzNyUKcYANjQ4MkZuUY5ygTejoHfJxQX5lVy bAzj/GzchaTdSAAK5C8hQBra3jJTSOZ2/CYFRLQZVmTDekNrefL5S313nBB31Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714381315; 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=QMKZE/xVoBE0rclF6s10FaX030kZcRkb7pIxKsHIfiU=; b=smLIzmti14EM4PKyiMCZX/9z8uNfyUPg8DPDgp8X5kUApPPCkuYcvZMQS2CDsHnfUaMJAy 2ZMNf35LAEgWG7Dw== 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] perf/x86/msr: 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: <171438131547.10875.14597368227632566318.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: add69475de4b5196da9c58ba2d7c0182e70da2cb Gitweb: https://git.kernel.org/tip/add69475de4b5196da9c58ba2d7c0182e70da2cb Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:03 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 29 Apr 2024 10:31:04 +02:00 perf/x86/msr: 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: Dave Hansen Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/all/20240424181503.41614-1-tony.luck%40intel.com --- arch/x86/events/msr.c | 132 ++++++++++++++++++++--------------------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index 9e237b3..45b1866 100644 --- a/arch/x86/events/msr.c +++ b/arch/x86/events/msr.c @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include "probe.h" enum perf_msr_id { @@ -43,75 +43,75 @@ static bool test_intel(int idx, void *data) boot_cpu_data.x86 != 6) return false; - switch (boot_cpu_data.x86_model) { - case INTEL_FAM6_NEHALEM: - case INTEL_FAM6_NEHALEM_G: - case INTEL_FAM6_NEHALEM_EP: - case INTEL_FAM6_NEHALEM_EX: - - case INTEL_FAM6_WESTMERE: - case INTEL_FAM6_WESTMERE_EP: - case INTEL_FAM6_WESTMERE_EX: - - case INTEL_FAM6_SANDYBRIDGE: - case INTEL_FAM6_SANDYBRIDGE_X: - - case INTEL_FAM6_IVYBRIDGE: - case INTEL_FAM6_IVYBRIDGE_X: - - case INTEL_FAM6_HASWELL: - case INTEL_FAM6_HASWELL_X: - case INTEL_FAM6_HASWELL_L: - case INTEL_FAM6_HASWELL_G: - - case INTEL_FAM6_BROADWELL: - case INTEL_FAM6_BROADWELL_D: - case INTEL_FAM6_BROADWELL_G: - case INTEL_FAM6_BROADWELL_X: - case INTEL_FAM6_SAPPHIRERAPIDS_X: - case INTEL_FAM6_EMERALDRAPIDS_X: - case INTEL_FAM6_GRANITERAPIDS_X: - case INTEL_FAM6_GRANITERAPIDS_D: - - case INTEL_FAM6_ATOM_SILVERMONT: - case INTEL_FAM6_ATOM_SILVERMONT_D: - case INTEL_FAM6_ATOM_AIRMONT: - - case INTEL_FAM6_ATOM_GOLDMONT: - case INTEL_FAM6_ATOM_GOLDMONT_D: - case INTEL_FAM6_ATOM_GOLDMONT_PLUS: - case INTEL_FAM6_ATOM_TREMONT_D: - case INTEL_FAM6_ATOM_TREMONT: - case INTEL_FAM6_ATOM_TREMONT_L: - - case INTEL_FAM6_XEON_PHI_KNL: - case INTEL_FAM6_XEON_PHI_KNM: + switch (boot_cpu_data.x86_vfm) { + case INTEL_NEHALEM: + case INTEL_NEHALEM_G: + case INTEL_NEHALEM_EP: + case INTEL_NEHALEM_EX: + + case INTEL_WESTMERE: + case INTEL_WESTMERE_EP: + case INTEL_WESTMERE_EX: + + case INTEL_SANDYBRIDGE: + case INTEL_SANDYBRIDGE_X: + + case INTEL_IVYBRIDGE: + case INTEL_IVYBRIDGE_X: + + case INTEL_HASWELL: + case INTEL_HASWELL_X: + case INTEL_HASWELL_L: + case INTEL_HASWELL_G: + + case INTEL_BROADWELL: + case INTEL_BROADWELL_D: + case INTEL_BROADWELL_G: + case INTEL_BROADWELL_X: + case INTEL_SAPPHIRERAPIDS_X: + case INTEL_EMERALDRAPIDS_X: + case INTEL_GRANITERAPIDS_X: + case INTEL_GRANITERAPIDS_D: + + case INTEL_ATOM_SILVERMONT: + case INTEL_ATOM_SILVERMONT_D: + case INTEL_ATOM_AIRMONT: + + case INTEL_ATOM_GOLDMONT: + case INTEL_ATOM_GOLDMONT_D: + case INTEL_ATOM_GOLDMONT_PLUS: + case INTEL_ATOM_TREMONT_D: + case INTEL_ATOM_TREMONT: + case INTEL_ATOM_TREMONT_L: + + case INTEL_XEON_PHI_KNL: + case INTEL_XEON_PHI_KNM: if (idx == PERF_MSR_SMI) return true; break; - case INTEL_FAM6_SKYLAKE_L: - case INTEL_FAM6_SKYLAKE: - case INTEL_FAM6_SKYLAKE_X: - case INTEL_FAM6_KABYLAKE_L: - case INTEL_FAM6_KABYLAKE: - case INTEL_FAM6_COMETLAKE_L: - case INTEL_FAM6_COMETLAKE: - case INTEL_FAM6_ICELAKE_L: - case INTEL_FAM6_ICELAKE: - case INTEL_FAM6_ICELAKE_X: - case INTEL_FAM6_ICELAKE_D: - case INTEL_FAM6_TIGERLAKE_L: - case INTEL_FAM6_TIGERLAKE: - case INTEL_FAM6_ROCKETLAKE: - case INTEL_FAM6_ALDERLAKE: - case INTEL_FAM6_ALDERLAKE_L: - case INTEL_FAM6_ATOM_GRACEMONT: - case INTEL_FAM6_RAPTORLAKE: - case INTEL_FAM6_RAPTORLAKE_P: - case INTEL_FAM6_RAPTORLAKE_S: - case INTEL_FAM6_METEORLAKE: - case INTEL_FAM6_METEORLAKE_L: + case INTEL_SKYLAKE_L: + case INTEL_SKYLAKE: + case INTEL_SKYLAKE_X: + case INTEL_KABYLAKE_L: + case INTEL_KABYLAKE: + case INTEL_COMETLAKE_L: + case INTEL_COMETLAKE: + case INTEL_ICELAKE_L: + case INTEL_ICELAKE: + case INTEL_ICELAKE_X: + case INTEL_ICELAKE_D: + case INTEL_TIGERLAKE_L: + case INTEL_TIGERLAKE: + case INTEL_ROCKETLAKE: + case INTEL_ALDERLAKE: + case INTEL_ALDERLAKE_L: + case INTEL_ATOM_GRACEMONT: + case INTEL_RAPTORLAKE: + case INTEL_RAPTORLAKE_P: + case INTEL_RAPTORLAKE_S: + case INTEL_METEORLAKE: + case INTEL_METEORLAKE_L: if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) return true; break;