Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp314634pxa; Wed, 19 Aug 2020 01:57:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwohFmYH2ni/6FXmnsVAsoFEuhnDbFitv2bEEgiNLvqm8epMsyHtpmadDQCwqf7hRKabC6o X-Received: by 2002:a17:906:248f:: with SMTP id e15mr22877233ejb.296.1597827463930; Wed, 19 Aug 2020 01:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597827463; cv=none; d=google.com; s=arc-20160816; b=hQ75mD+MpKeNZ/2gVsNUVTk1huBDvFMHASkHlhR68D6bVc6eLruP8CcQRLNdKP5KaL +Pl6qQf6aGb0cuq5mlvjHilhtTpV4hn6mtg+RXtjn5Clydow30P+9o2Ox7BleLeZeur5 Y6sz2TZagY1UnBuVF4haTsxnKGmXmeNLoYasshyN5y8ap4q6npehptQVs59fX+l205ca jjpG7yt60z/sU8R8LB2ULjWPoegst0I3FHF93xmVBvSJo7fFKiTphQWX1F/yERqw+NQs +aN9ylOdFcU/tN4UGYJLJgg6ZSgPSrIgKN2EMEFVw5Y7cB83msff2iSuSEtzka/duFzH 34+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=Q6CFsOUoNTluhfglb0v5+LmkpgxLObqsXne93Y1Feuo=; b=vV8JdSRJtWuolq4ryXFGqQffYAmMEPkucTyxNaDgkDk01hf7t31OZmeGjIc+RBVhk/ DaHnzvL9eaKL68a8pEIyTqqQqmL1Si4ciRBS/213KYcWfgHAaMENXKeowKAeTN4tI647 Mat1ihpSEf50UlVOZy1Pp1QIe8zSvo6bhvd8Ohng+w+FUiUcI9aD0+woRJrN11iDGC8c ZfSNxu96971tzH5WaBE3xt4KIn66U8rklFqOkNSmaoXg13ysWcTo2xLC3G39L4xsdKEU WXDUjJwyhX29+bVDDRe9hqccwJF1MnkV+gx0Da9pWWpaLJYsxBYojr249Llh+3pgaFuX cAIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=DS+M9xQF; dkim=neutral (no key) header.i=@linutronix.de header.b=wwnnw3fQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si15276962ejc.182.2020.08.19.01.57.20; Wed, 19 Aug 2020 01:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=DS+M9xQF; dkim=neutral (no key) header.i=@linutronix.de header.b=wwnnw3fQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727941AbgHSI4s (ORCPT + 99 others); Wed, 19 Aug 2020 04:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbgHSIxv (ORCPT ); Wed, 19 Aug 2020 04:53:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B259C061346; Wed, 19 Aug 2020 01:52:12 -0700 (PDT) Date: Wed, 19 Aug 2020 08:52:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597827130; 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: in-reply-to:in-reply-to:references:references; bh=Q6CFsOUoNTluhfglb0v5+LmkpgxLObqsXne93Y1Feuo=; b=DS+M9xQFtnTV+CZgGdKkLr4Jn8NV7KfAV0Kyw7R7PNAytocOsXuYEdUEdHHnNmHrj4DpMC X2ND3xYqqJfa8pMB2iiZWPSkPV7aA9s3sK2oDJ/73HMzArP1j8dfN+aMNZHaWpzBYciUqz pXB0b2WDavBL1DC899+EzKllGX3HY1eXxyFJl0u0R8zbDjvkWRH580UNFx1RexVgmd9BnR ih1e1c2PihB7m0fSE92VSsV0qK0QxoaPiIXu3x/Fd/5/xYbOKeBb4lYn9AzYxTb/M1J3+o aen1lumKRTQWihKYo/mbD+EvcIYl7U4mle49OfmMwykPBSgYBvmQS3YfYl8OvA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597827130; 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: in-reply-to:in-reply-to:references:references; bh=Q6CFsOUoNTluhfglb0v5+LmkpgxLObqsXne93Y1Feuo=; b=wwnnw3fQP87jZBSg2wFImOgIuErzCUC9MaGrHj3OHdPIQkYDr/Z/AfNKUHiMcnyBPzc5t5 AwMdQxAscHJTabDA== From: "tip-bot2 for Kan Liang" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/intel: Move BTS index to 47 Cc: Kan Liang , "Peter Zijlstra (Intel)" , x86 , LKML In-Reply-To: <20200723171117.9918-5-kan.liang@linux.intel.com> References: <20200723171117.9918-5-kan.liang@linux.intel.com> MIME-Version: 1.0 Message-ID: <159782712960.3192.1851522875229637809.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: d39fcc32893dac2d02900d99c38276a00cc54d60 Gitweb: https://git.kernel.org/tip/d39fcc32893dac2d02900d99c38276a00cc54d60 Author: Kan Liang AuthorDate: Thu, 23 Jul 2020 10:11:07 -07:00 Committer: Peter Zijlstra CommitterDate: Tue, 18 Aug 2020 16:34:35 +02:00 perf/x86/intel: Move BTS index to 47 The bit 48 in the PERF_GLOBAL_STATUS is used to indicate the overflow status of the PERF_METRICS counters. Move the BTS index to the bit 47. Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200723171117.9918-5-kan.liang@linux.intel.com --- arch/x86/include/asm/perf_event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h index fe8110a..58419e5 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h @@ -238,11 +238,11 @@ struct x86_pmu_capability { /* * We model BTS tracing as another fixed-mode PMC. * - * We choose a value in the middle of the fixed event range, since lower + * We choose the value 47 for the fixed index of BTS, since lower * values are used by actual fixed events and higher values are used * to indicate other overflow conditions in the PERF_GLOBAL_STATUS msr. */ -#define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 16) +#define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 15) #define GLOBAL_STATUS_COND_CHG BIT_ULL(63) #define GLOBAL_STATUS_BUFFER_OVF_BIT 62