Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp604397ybl; Fri, 30 Aug 2019 04:36:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZIvCX7frEmmCROCnD/aIg/tDr3v+CcPOe32LKNR3+Ds4EJzP7yRhIT1MWucvr5VKMczsk X-Received: by 2002:a17:902:e188:: with SMTP id cd8mr15182462plb.175.1567164978352; Fri, 30 Aug 2019 04:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567164978; cv=none; d=google.com; s=arc-20160816; b=uL3OPHuaFyM6PKhdxHgNzOv1orB+0Egps5LX5a/d/1dxK9LKu7CUwPxtu1KBE9GR6P ghdxEwSnlm3Vq4nYkc92xFAlfZ0mCB69QjjZIYQkbp289q0pZHVdlbzwxAMYZic/Y2n7 NwNi77d22YhSSgRuBKrZ5qLf5rBWjWWarH+lduC3PWVpVtVBHsGjzA/FHn0uHMqLAwzv YIDFwWCwctXHEB10gh7lU+QIE3uq2v7T7Ds7fJGQ5dUbs8a4B8Ff0DKC7Ly4WUa+82fR Ix7IpW4DtuPulkZWsM9RPxoTcSBeJMd8SlQ0zKxGH6D1v4y/2V4+e3YfWRf319pA2Ik4 0eTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xRwLham4pk66OEWPaOwLBhsQ46VMNlLT4cSKhSz70R0=; b=x1JtKMG4J1SnpFxxFq9989x5buh5KfetEVuv7yEqoJyrXbqxQ0Vo0LWV3Rogl8hCIz +zH/AMyxM50jSePMt97qYa8bMnKky4c/vAcsXYRqORG5CMOGE9waF49pY9oIU5gmzfON WiixjqvkKqAi+mmu5kwFW9LPgVbPoeIsYbhRR4HD40qYPMYwMK8BpNR+M/ESPSFPN116 LuMacS9VLxH+dZIbFoq2Oxecn+wZKLhmgZTuKAMWeytgGdZLxGs83EaCNdzi7CZlWQl/ NHPOA5GeVBbggPV8K2k96gn9YBOKIPTUITDCWEEBKrfC78SyEt4HfHq2/L5S5JCmlhrD pAPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iKaa+7WA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si4421261pla.40.2019.08.30.04.36.02; Fri, 30 Aug 2019 04:36:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iKaa+7WA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728170AbfH3Ldn (ORCPT + 99 others); Fri, 30 Aug 2019 07:33:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55370 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727578AbfH3Ldn (ORCPT ); Fri, 30 Aug 2019 07:33:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xRwLham4pk66OEWPaOwLBhsQ46VMNlLT4cSKhSz70R0=; b=iKaa+7WA7GlEl/xhNoNvu07Rq EG7NwGLB9i6CMa5I/Nv4egb6sB8Q/kySrM63kYt+Et8OkevLhoRtZYIc44NKmSAmSwChpQYNcTbgy KbKxmmZZxl00z6FAUOPY6km31obzzdVA0y+dsbKAE/c5EYHBbcgoMUXf0wOsvgI9bNF2lGGsJO6R+ hFaqynrSXqPjR1kFtK3HZOTflPcH+spkjRTCZYfONgmuTnOMQIXCjJ+i6u3jzdiRnQsOqzUCZlzwr tUVY1qKq2HJjvUZXbtM7Vz0o3a412sm7uISzXQ274gVD7KmSFp1A6EuGJLVP4/YmpeQitd5LeFRl7 nJS5OsXPA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i3f9s-000116-7u; Fri, 30 Aug 2019 11:33:36 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 74FA63035D7; Fri, 30 Aug 2019 13:32:59 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1355A200AB64F; Fri, 30 Aug 2019 13:33:34 +0200 (CEST) Date: Fri, 30 Aug 2019 13:33:34 +0200 From: Peter Zijlstra To: Harry Pan Cc: LKML , gs0622@gmail.com, Namhyung Kim , "H. Peter Anvin" , Borislav Petkov , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Jiri Olsa , Alexander Shishkin , Arnaldo Carvalho de Melo Subject: Re: [PATCH] perf/x86/intel: Update ICL Core and Package C-state event counters Message-ID: <20190830113334.GF2369@hirez.programming.kicks-ass.net> References: <20190726090846.6109-1-harry.pan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726090846.6109-1-harry.pan@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 05:08:46PM +0800, Harry Pan wrote: > Ice Lake microarchitecture inherits Cannon Lake, it has CC1/PC8/PC9/PC10 > residency counters. > > Update the list of Ice Lake PMU event counters from the snb_cstates[] list > of events to the cnl_cstates[] list of events, which keeps all previously > supported events and also adds the CORE_C1, PKG_C8, PKG_C9, and PKG_C10 > residency counters. > > This benefits users to profile them through the perf interface. > > Signed-off-by: Harry Pan > > --- > > arch/x86/events/intel/cstate.c | 26 ++++++++++++++------------ > 1 file changed, 14 insertions(+), 12 deletions(-) > > diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c > index 688592b34564..08291233f5c9 100644 > --- a/arch/x86/events/intel/cstate.c > +++ b/arch/x86/events/intel/cstate.c > @@ -40,51 +40,53 @@ > * Model specific counters: > * MSR_CORE_C1_RES: CORE C1 Residency Counter > * perf code: 0x00 > - * Available model: SLM,AMT,GLM,CNL > + * Available model: SLM,AMT,GLM,CNL,ICL > * Scope: Core (each processor core has a MSR) > * MSR_CORE_C3_RESIDENCY: CORE C3 Residency Counter > * perf code: 0x01 > * Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,GLM, > - CNL > + CNL,ICL That has a missing * introduced by the last such patch. Please take this opportunity to put it back in.