Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp609242lqd; Wed, 24 Apr 2024 11:19:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ4wMKby1LaLL+VWE010pYOgtV+dGbxI6/UOy8xxnE4jS+TId7cJ+swpKKwLZN7xw8wM5FDBuIZhO/v9AoARyBOUW4Qq79XPM3DL3jeA== X-Google-Smtp-Source: AGHT+IHgyYDKq/T1+V8Pm2xW4goNRyyo5eaui8McCiJvZxardf6Gov3+MU6BCd/zajIvtBB1g7q1 X-Received: by 2002:a05:620a:205e:b0:78e:d140:c2c3 with SMTP id d30-20020a05620a205e00b0078ed140c2c3mr3454463qka.54.1713982767336; Wed, 24 Apr 2024 11:19:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713982767; cv=pass; d=google.com; s=arc-20160816; b=ZDVW/NZisNCKJG2TCCuZGQwxe3qp6DxJwEEMvATnsFjudsMrFm+U3kkKsL/nb9rXkz iycz/tKGF9SeDdzzULr5Qw/ddh5dWKaaYrp3AmvDdrRfzNiTAMYZFg+gZBwLYhcBU2vj f4VL/N4N5iksF5202dZ7W1BU8t0GwNSHrygfTmkNixLMm/8TWcrRSGGyonBvc3AuM+NQ C3ChtIgSBJdBGiFxJR2O1mP9Ooum5Tlot5PzSCoIRLKYVProLksiuKxfhndMHE1sGhiH C/xx05fQdz4ZA3cjQUx9TiYxBa9CuZRAX7ZOOThDak2k+KYnLoiJNKdaygzx2TOkDgVv yhzw== 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=44M3M9vO4XGOVxM9ITZOwkh+3vX/s40rxHgCeuAcZZw=; fh=5s6W4w6x1Zs0Fr3OEets4qgL7TMNt4/0CDcX9+H43TU=; b=KR9HRt8CXhu4fxnwxuBrYIWjmx0XOezzNv5YYLFx/nGPfOwz5LEpuEsbATwlOTROPb 3RAbP6Jpwof2Hel6V6oWpvHcu+qf2Y5EHNL+10QCmSNUHw1v97BX+e9NW7c5aQISdQO4 JKB61tziCufcVeKMtBxQ+y1jOyDs5xihcc3WLs4ea5hiqTbqWy2VsZHspl2jQEibu0w6 7rMUN0iHQn4t6TPOH5qCWhOJ2MtNoRackvyr5CPjhcL7ZP3KBiTN3QFvm8tgpD+sRZ8d iuaDG02IJOZTod1fXQDaWAfsaxVLFJe8nZcddmsKNnxxbXPMpyotZn8Q6lXddHwtqFsd y+Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XxRrveoH; 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-157469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a12-20020a05620a02ec00b0079065e4fbdbsi9991394qko.200.2024.04.24.11.19.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XxRrveoH; 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-157469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157469-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F35151C23914 for ; Wed, 24 Apr 2024 18:18:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A23D17BB3E; Wed, 24 Apr 2024 18:15:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XxRrveoH" 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 8DEE417B4E5; Wed, 24 Apr 2024 18:15:13 +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=1713982515; cv=none; b=XMR4rl/2K9x5Y7AFUbs/NcMzg4PvzccIG1bp44+AFeB9R6rKm551dJ4r4THfQlKQfNFvbOLdBBkHr3gN6Kb12ljaXPOYpyBs22bFhQnoLEancjW3mYtI0H+h4Ho/r9OqeFXOE6Gx57rhst6IgZ6DKt4IhcNxrgNme6q66yb7IRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982515; c=relaxed/simple; bh=xV3Oh1McKHpj/3XYu97f2x4TjCIeJO+j0gsK/dnPiOQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XfRBzUQ/bSpAv4lfiPIhShVJLepehOUZjqSof1KpxRBq2194lSW7opMC36Lz79JjCnYAwgBfoKlaA2GhfV5N8p+HYQQOOagnfEJ6mJ557/ZUAbdAAwIhOpFuaNtEHH+KIEIwFNWbV4KoU5IS+QIfGns6xvQ0egf5xLmF5QN4Z4s= 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=XxRrveoH; 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=1713982513; x=1745518513; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xV3Oh1McKHpj/3XYu97f2x4TjCIeJO+j0gsK/dnPiOQ=; b=XxRrveoHcMyP9i05jFIY6svpOvO2/gQ4UPK/+YCOFjNGIXJo6OqQHSLY 1MGwoOM3/VcO3WX4NrICdlX/T/h2XYksjnFVSQzXgPbVA7gX2uadPmQeU eQRzGg0CYe7WcP9vjrGzAiOsEv1F8/PMHmQm7+qTWzYVQ09NMYIwH6Auj fkz0l7ZbwOSvtSVUkeX8YnYC20EzCJb1A7FFC8b22nByfGL9diSEoqMDm su04SATE4LJY2hfN7o3/SJ8mEjyBeWufC2mzgF1rHhJIc1z5WMbKMplSX 68MTQNeyMi5kXwK/adePGLeWv3c9zhSVdaV3OirM2iRIBsL/EonoYz/uO w==; X-CSE-ConnectionGUID: qFLZMwO4R1CNsO+qJ1DOSg== X-CSE-MsgGUID: exIjYjvkTgaEJLfpEjfr6Q== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9481876" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9481876" 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:01 -0700 X-CSE-ConnectionGUID: S4RPMVBYTBGkd5lj1nvPXg== X-CSE-MsgGUID: 879y5PT3TXSQjKvb/qvLQA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262647" 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:01 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Dave Hansen , x86@kernel.org Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , "H. Peter Anvin" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 20/71] perf/x86/intel/pt: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:00 -0700 Message-ID: <20240424181500.41538-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/events/intel/pt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 8e2a12235e62..14db6d9d318b 100644 --- a/arch/x86/events/intel/pt.c +++ b/arch/x86/events/intel/pt.c @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include "../perf_event.h" #include "pt.h" @@ -211,11 +211,11 @@ static int __init pt_pmu_hw_init(void) } /* model-specific quirks */ - switch (boot_cpu_data.x86_model) { - case INTEL_FAM6_BROADWELL: - case INTEL_FAM6_BROADWELL_D: - case INTEL_FAM6_BROADWELL_G: - case INTEL_FAM6_BROADWELL_X: + switch (boot_cpu_data.x86_vfm) { + case INTEL_BROADWELL: + case INTEL_BROADWELL_D: + case INTEL_BROADWELL_G: + case INTEL_BROADWELL_X: /* not setting BRANCH_EN will #GP, erratum BDM106 */ pt_pmu.branch_en_always_on = true; break; -- 2.44.0