Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp240066lqb; Tue, 16 Apr 2024 14:22:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaPgza0gcpbKzm7r8OF4VNKDj1tP14yBcC125pNDrx2pN4vY+9Nbq9Gw+GUn7e0h4YWRU3SBDESEBzg7POwrhgdC6OVK2n56ZcDUB8QA== X-Google-Smtp-Source: AGHT+IFyjb/wLRuQkmmi7hoyoi1lY7TXDCt421CoZOgSX5WGTFrd3B+XvJDEO05lvh8m9kP2MeC2 X-Received: by 2002:a05:622a:1a8c:b0:434:fea0:656b with SMTP id s12-20020a05622a1a8c00b00434fea0656bmr16363076qtc.12.1713302529689; Tue, 16 Apr 2024 14:22:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713302529; cv=pass; d=google.com; s=arc-20160816; b=CTeICT27wGfDM26flCkJaHw8v3oNLDj/Ts/UtUuVs70P/S4/helNP0xMdCZsZA9rrl Ng2egaTzpr0+qf2KNaZropTJYxIKIIouhTdQvA6OVBvYj92ddDwPvrPFElky8x63UeZK cHBvq3uVm9eSLS6mgiWM431gUVZ+crNAUlVB13CwyZSiBZl5zhcQJ1NgCq1vwl8QaSL0 X7U4bUpVb5MiL5kNqcXhVWEyxJaUwNxPRznqAhF9fwem94YBLvdLvxOLB0rAGfxfPNkn r3zvGZhWRwN6L9kU2udpW5jD9FUQA5qd+Ap9OtxNi9UIYmJHwP6hQ6woLnzi/qEgCmV2 svVQ== 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=dL2QCUxi4CzqYOXMCN5zxu+iE4Z4SlrQuZRtNUFA0iM=; fh=fCCNFvJbPqqXo45yXdlgqaDimb/JVSzwDZSVTcpWFog=; b=n4RW7ET+GJdfUzimckL4yrQXOmZooiTMgpiqBfZCbizHs3O64cNakLy6rwgPrMkwvB pJ1nP/CGjv/QHq9KxYbkUofylyfdzW7H2m22joMReC302j0LhuGRHaaeWr0x9+BHRVOy DwtmFHmuZ45QiBV/qLqkzfJIoaZsDulD7d9p+kyZS5wFupPQiaJCR4WHMdkXqdfy/P+4 uQJ8eRiMLhVdeEn9kTSzhF5HI13q0dUhImij4ByI13V/4IMN7ZuIa8mHLyHEkhHbl3c0 OsD7V2aneEAQUf0j9F6sjA35Ru1x04cTNNI9ssY3LTKc7rnbGlNHkfDrR9wZ8EkrCxZr +ahg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X6dN4BvZ; 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-147568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147568-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. [147.75.199.223]) by mx.google.com with ESMTPS id l14-20020a37f50e000000b0078ede305e4dsi7036797qkk.167.2024.04.16.14.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:22:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X6dN4BvZ; 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-147568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147568-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 288D81C22A09 for ; Tue, 16 Apr 2024 21:21:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C151A13AA39; Tue, 16 Apr 2024 21:20:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="X6dN4BvZ" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 449BC6E61F for ; Tue, 16 Apr 2024 21:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302403; cv=none; b=MQ+RDJouoP3wdCU2Yyd4pa1eypRSBnrgajUqKsCiRiMMwLZUEYtZ++ZZoj5m8nSEAnV/RdSTsQiXmfO26TgorIUtxtXkTMSSuTTjsfW5IGwEf34r6E0lYA1TIYhSg4n2eMJjgtgfit16uTysWVUQP/myA4BuaRJ1UQI1E/TmsX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302403; c=relaxed/simple; bh=dOmQ7jUeo78k2rwa4FbxrxxtpSbAveIjEYydSHsCBrw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B8EKsUy2HG3vx8BhC6g0UmwoeNjL+tLpfye9/MjwfkBy7UbN/6nkUmYFmwzkmH9xs6OFfvXzLhSXE23oOcR0tmZTyNuQvcVNW1+0wX3aKNMVLHJOopCC/upq5ZtT1MJioIyPIi6zwiMARuuSj1unYgGDKZZ8ygz1Ri9TJuBF7pg= 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=X6dN4BvZ; arc=none smtp.client-ip=198.175.65.13 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=1713302401; x=1744838401; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dOmQ7jUeo78k2rwa4FbxrxxtpSbAveIjEYydSHsCBrw=; b=X6dN4BvZgqoSWGBi0z4k3zNgEHWWjWkejQaEFHWEIZb8+kSmjLkvelYl CFe7KsfZtd4ctBh9/gOKnkx97POexKBZN8gFeShsc1NzaA+b5QB3Lq9Mp 7/7JUWQAvUZ6fNxYLrDBOCAyuU1rg51ipdKtNdTVOCiRGICKpqqF9KOC1 NWIFFJQnLX2fD5aFvS4XV7nXfTxjIgeulpkA+rogPdBc+SbL2FZ+2BY82 lYsyRy/TcI7J/0LBMBJEjg/WBbXeHnxsu+V/8A0hm1/gsV4ejFzjzLM6K KmEnTzf/cbxA1masr/LqiVLYzmKFNgZWrur2fsDk/MOjwQ7YExYXLbrQj w==; X-CSE-ConnectionGUID: rL/26N0bR22Y6+JOSt4QQg== X-CSE-MsgGUID: lBmFJ3LHSQSZwPHTD6FFDw== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="19914700" X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="19914700" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:19:58 -0700 X-CSE-ConnectionGUID: aR8oZ0HFSq2pax2xgW7KwQ== X-CSE-MsgGUID: DeE0Jp8YTFuGRY5XaZsF+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="22871897" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:19:57 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v3 08/74] x86/cpu/vfm: Update arch/x86/events/intel/pt.c Date: Tue, 16 Apr 2024 14:19:10 -0700 Message-ID: <20240416211941.9369-9-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240416211941.9369-1-tony.luck@intel.com> References: <20240416211941.9369-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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 8e2a12235e62..e3320c2ee7c6 100644 --- a/arch/x86/events/intel/pt.c +++ b/arch/x86/events/intel/pt.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "../perf_event.h" @@ -211,11 +212,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