From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752857AbbG3MOo (ORCPT ); Thu, 30 Jul 2015 08:14:44 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:50346 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbbG3MOm (ORCPT ); Thu, 30 Jul 2015 08:14:42 -0400 Date: Thu, 30 Jul 2015 14:14:35 +0200 From: Peter Zijlstra To: Alexander Shishkin Cc: Ingo Molnar , linux-kernel@vger.kernel.org, adrian.hunter@intel.com, x86@kernel.org, hpa@zytor.com, acme@infradead.org Subject: Re: [PATCH 1/3] perf/x86/intel/pt: Add new timing packet enables Message-ID: <20150730121435.GJ25159@twins.programming.kicks-ass.net> References: <1437140050-23363-1-git-send-email-alexander.shishkin@linux.intel.com> <1437140050-23363-2-git-send-email-alexander.shishkin@linux.intel.com> <20150730104046.GV19282@twins.programming.kicks-ass.net> <87vbd1kgde.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vbd1kgde.fsf@ashishki-desk.ger.corp.intel.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2015 at 02:57:17PM +0300, Alexander Shishkin wrote: > Peter Zijlstra writes: > > > On Fri, Jul 17, 2015 at 04:34:08PM +0300, Alexander Shishkin wrote: > >> +#define PT_CONFIG_MASK (RTIT_CTL_TSC_EN | \ > >> + RTIT_CTL_DISRETC | \ > >> + RTIT_CTL_CYCLEACC | \ > >> + RTIT_CTL_MTC_EN | \ > >> + RTIT_CTL_MTC_RANGE | \ > >> + RTIT_CTL_CYC_THRESH | \ > >> + RTIT_CTL_PSB_FREQ) > >> > > > > #define RTIT_CTL_CYC (RTIT_CTL_CYCLEACC | \ > > RTIT_CTL_CYC_THRESH | \ > > RTIT_CTL_PSB_FREQ) > > PSB_FREQ is not, strictly speaking, related to cycle accurate mode. Both > adjustable psb frequency and cycle accurate mode settings are enumerated > with the same CPUID bit, but they really do different things unrelated > to one another. RTIT_CTL_CYC_PSB then, to match the CPUID bit name? > >> + if (config & (RTIT_CTL_MTC_EN | RTIT_CTL_MTC_RANGE)) { > > > > if (config & RTIT_CTL_MTC) { > > > > Would that make sense? > > To me either way is fine. Want me to respin it? Please.