Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1279501lqd; Thu, 25 Apr 2024 10:32:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6gWCAn10BlXQYrs+0kTBRkycVRsOjVeNEZxLiyr84ZoEJnQ3YaLTyOQw9P9BY0q05uwpvEjhmmUN3Uxe+JzJVGCxYFcaGeohLAPcrvw== X-Google-Smtp-Source: AGHT+IHgo0KZPYslI3mlnXbpDTd0I/FbjUchtV/+c52mYNbeR7e6ohqnALWNmlzHwrYft1zI2D0N X-Received: by 2002:a05:6a00:1824:b0:6ea:b9a1:63d7 with SMTP id y36-20020a056a00182400b006eab9a163d7mr632050pfa.10.1714066321469; Thu, 25 Apr 2024 10:32:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714066321; cv=pass; d=google.com; s=arc-20160816; b=Q79YNBQcprgvwj605U5bWn2lcyYlwfcZnz/T/nmyahH0ABcaoSYNVTNhEDhvf1eMq7 ykHS1Q0GhQFNDHA6rzizdatOTc3JPQF3GUZRwWHLJ6YnZjCP6aFc2cARlhQs2oWJqU/g GTopVDzUa5OhJIY5v4KhbeTT9qiJCmQzzH+yzYVTmbIh0qMjfHwoLK6R6rUwNTurf71+ PGZJut0efiEwpA4Zc0plpfVjz1r0g/zmw4qGG6xcN4qSpMU/SAWuFUSyf0rriJx9Mr2A f2ooonPO/yfIYAumAFBeWC0Y8SEX2JiX604y2+i76WFh7+NemxWCDIx6Hb48fnq1sgmA OnCw== 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=jOPRF0wt/BZCZ+lgW593az2GM7U6utSE1IgkdElMnQ8=; fh=sRuoxverM9+fK9z5tkT0IKJpR0o28A+KF9ywarzvQRc=; b=WXBW9CoEToTnLw+GC2EV7nqQvCyCO2a54iY+B/kSxKs/YI38HPpmYrF9SLnQiHgsjm a4aw8WD7B3uy35fHy7b/zMfXjAJhspCT0RwSOS6E9SBx2LzEzZJDFEsUecSXb16xO2BK 6FvpRP/vv4fmN4XqdF9V8ltqE4o3ctev054TcYKyB2eJ+5XXwHGppLrGbY/VQsCJsOR2 uSseCSuDzxGuH4mUldPlJerqdZMEHGdXUCimMVHc9tq68mvTIa5KCOYItFa9UnIhK0vg c8d3sPSCjWLiT13AgiOa9zMj91UAD/d+f76KjrLWVj93uY15dhmJiCr6fkVnrsskkRTk mK3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="meYuRNU/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=hJNhkX5Z; 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-158947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ld14-20020a056a004f8e00b006ecf1c1746bsi14166554pfb.56.2024.04.25.10.32.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 10:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="meYuRNU/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=hJNhkX5Z; 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-158947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158947-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 815F7B22323 for ; Thu, 25 Apr 2024 17:10:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B85114E2D4; Thu, 25 Apr 2024 17:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="meYuRNU/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hJNhkX5Z" 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 24FC0149C41; Thu, 25 Apr 2024 17:10:40 +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=1714065041; cv=none; b=L6SpkT+rQduSxvF8isgYIKCsjt2i1MpIShsAqGryh2OVGdigR8TbgpH8tDhRZPq+GXB96V1GWCSiA7owyop2Npl+beOAIaJ9hMUG/6npwJmnesNpYvgTFzf74Op4Z8ZmAb+7ayMTL/dxfSQgFbApdeySrb47VYQNkhj+dbQAky0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714065041; c=relaxed/simple; bh=tXU3irorOo1XMSTox1sHKsdUBFcvEBxl2r+osifQUMU=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=SrZY9ukvZG/bhTcXzHuS44UENUMYFV5TQv0OBza7a9R1+jYzIn8/rcY99+YYM3lQCEb3T/S6uptAJK74fNARYq5HKHB+9lcAbxucZJ9qWDIT5s2/yG63WzKgXd9jne2BfNDmRBhriMYeXLCPVA0JiM2cseX2AEDiskNeezIvGI0= 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=meYuRNU/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=hJNhkX5Z; 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: Thu, 25 Apr 2024 17:10:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714065037; 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=jOPRF0wt/BZCZ+lgW593az2GM7U6utSE1IgkdElMnQ8=; b=meYuRNU/0Q91fpB7G1zlUfKGvL3Ph6yocfILUA2DXMIfQ05iENgcnBt7oUJ2TqtsKTsexE 3UDgMCRd3kQI3VHmw4h0wRM4TJf4g/rzFxaq1xLLJPAUPfXR3nimf6EoPNcfGLLLBUig3C MVOdQbIw1ZnGLndsjlDN8Yf9lMlsKFp+1qVmeGWDIOrZFXWW+MHpliQtwDzYWxVnvZOk3X ZxkT1Qgr2NgqaiHC+2Q510R1om4NjRWT3xcudmGR/nUsHsHrLF/IZuOCI3CjpeOjyVbIJ1 gCi68tHBgljeYHClLkHmyHGBmkX0cP31MASgZ/kXuNyKycnCdu8pTdb6oPp+SQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714065037; 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=jOPRF0wt/BZCZ+lgW593az2GM7U6utSE1IgkdElMnQ8=; b=hJNhkX5ZOL20FhLvXCI2FZstTwIIrLZ57JNBUyEO1RW+/+S/WkAGhBLVyYMkamsA9VvmAT T5tN6G4rKjV+rqBQ== 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/intel/pt: Switch to new Intel CPU model defines Cc: Tony Luck , Dave Hansen , 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: <171406503667.10875.13533038691665121015.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: a7011b852a30ab0fdb469991037613407e49f2cb Gitweb: https://git.kernel.org/tip/a7011b852a30ab0fdb469991037613407e49f2cb Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:00 -07:00 Committer: Dave Hansen CommitterDate: Thu, 25 Apr 2024 09:04:32 -07:00 perf/x86/intel/pt: 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 Link: https://lore.kernel.org/all/20240424181500.41538-1-tony.luck%40intel.com --- 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 8e2a122..14db6d9 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;