Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2263106ybd; Thu, 27 Jun 2019 09:23:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRk6YGfRYkJUpljsmhZ7oRrVcZo+N5edHnuRfBbBmJ7diWrVckjGz1f3xMtab1RcgEjQjY X-Received: by 2002:a17:902:8a87:: with SMTP id p7mr5639689plo.124.1561652592106; Thu, 27 Jun 2019 09:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561652592; cv=none; d=google.com; s=arc-20160816; b=ZEFAyKxGFM38vRBrCtchkmITZiMBEcQLARwnLAjLqikMlj6DNbPJjGNC7dwP0wVMsC DjF4ecjXsjMxcrZwe92/kQeYw1yMoIlC0WHL/aLGyPK3i5T7xbbFmRz+4aAG3HtcV1a+ Kd9GLPsZI6+Wd7VMpIZ7ZEimnRSeXSTvGpx0yZwCb5PzE17aRfPYlWYsPq8gXBUltH8C WBE4/AiZRG+PGKGsNu0usx+EEw1uMQd0X+Xi5AL2vDICBSkNrJfh8aJXChKrxhMuSQ8q Pe0MCTsYFu4F20SbVs41OIamRwGtHu1Plklsyw2CWeqqUnH6+t2E/Q6K3XdKZcoNkKbH Y9Ug== 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=0vVOUlMLGE4AEumjx8u8piYIImOZaB7bx3yr2dk7DRE=; b=agr8X9BcfNlAxMeHjsrYvcPVKuGmTnmQ4bLq34+wkGHukDWmFkl6OA8Yuy9hwnrqtS 5ESHUMAX+tGQX2ZXeThsl7H2ypI/k0DxM67gFpH/EDp1ZrglIdQsYDTvly1LwLOFC1vT GnvwO4enzZTrUvxMlm1CvWKoM+FraZYXYy1SgXWqm1/RFiJOpiDCclPGdqi+h6stAhHI 0dS1rZuSxQ70DMEV+ru/NbrHwApZ4rbriy0uPFEzu1seEeva1tFedPXy92bnkTLzxpdc CqAvVERH+/KCRNKnAUZJYbk40hTOCv5rKNFnCAQJ7hl3twooy5C3UIKDxXgOuG624Nzj nYew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LVg0Ecdy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si2801271plc.356.2019.06.27.09.22.55; Thu, 27 Jun 2019 09:23:12 -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=pass header.i=@kernel.org header.s=default header.b=LVg0Ecdy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbfF0QWn (ORCPT + 99 others); Thu, 27 Jun 2019 12:22:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:50284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbfF0QWn (ORCPT ); Thu, 27 Jun 2019 12:22:43 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4B7A32080C; Thu, 27 Jun 2019 16:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561652562; bh=XANE2VhVUGz0tCaYce+E3tgK+iSMPwffhn6oVDGjCZw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LVg0EcdyXbOBXgTkd2XcOQaBxPyrPhiaqbNwgyqfwF/QwNgvl6UCKJ50T0o/RjiC4 sDeBKd+ZeEM/5/qPs4soGGqNMWpA0kr7j5WkTng2+O1OeDYYMcO0fMrlHY7/x17Kli kVFw/fJcFWHDzB35wrdWFUO0CZj8yp0b4LBvKvtA= Date: Thu, 27 Jun 2019 17:22:37 +0100 From: Will Deacon To: Ganapatrao Kulkarni Cc: "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Will.Deacon@arm.com" , "mark.rutland@arm.com" , "corbet@lwn.net" , "jnair@caviumnetworks.com" , "Robert.Richter@cavium.com" , "Jan.Glauber@cavium.com" , "gklkml16@gmail.com" Subject: Re: [PATCH 1/2] Documentation: perf: Update documentation for ThunderX2 PMU uncore driver Message-ID: <20190627162236.y3wb5sle6yjbwtzm@willie-the-truck> References: <1560534144-13896-1-git-send-email-gkulkarni@marvell.com> <1560534144-13896-2-git-send-email-gkulkarni@marvell.com> <20190627100118.nfveq4oktomqybtx@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190627100118.nfveq4oktomqybtx@willie-the-truck> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 11:01:18AM +0100, Will Deacon wrote: > On Fri, Jun 14, 2019 at 05:42:45PM +0000, Ganapatrao Kulkarni wrote: > > From: Ganapatrao Kulkarni > > > > Add documentation for Cavium Coherent Processor Interconnect (CCPI2) PMU. > > > > Signed-off-by: Ganapatrao Kulkarni > > --- > > Documentation/perf/thunderx2-pmu.txt | 20 +++++++++++--------- > > 1 file changed, 11 insertions(+), 9 deletions(-) > > > > diff --git a/Documentation/perf/thunderx2-pmu.txt b/Documentation/perf/thunderx2-pmu.txt > > index dffc57143736..62243230abc3 100644 > > --- a/Documentation/perf/thunderx2-pmu.txt > > +++ b/Documentation/perf/thunderx2-pmu.txt > > @@ -2,24 +2,26 @@ Cavium ThunderX2 SoC Performance Monitoring Unit (PMU UNCORE) > > ============================================================= > > > > The ThunderX2 SoC PMU consists of independent, system-wide, per-socket > > -PMUs such as the Level 3 Cache (L3C) and DDR4 Memory Controller (DMC). > > +PMUs such as the Level 3 Cache (L3C), DDR4 Memory Controller (DMC) and > > +Cavium Coherent Processor Interconnect (CCPI2). > > > > The DMC has 8 interleaved channels and the L3C has 16 interleaved tiles. > > Events are counted for the default channel (i.e. channel 0) and prorated > > to the total number of channels/tiles. > > > > -The DMC and L3C support up to 4 counters. Counters are independently > > -programmable and can be started and stopped individually. Each counter > > -can be set to a different event. Counters are 32-bit and do not support > > -an overflow interrupt; they are read every 2 seconds. > > +The DMC, L3C support up to 4 counters and CCPI2 support up to 8 counters. > > The DMC and L3C support up to 4 counters, while the CCPI2 supports up to 8 > counters. > > > +Counters are independently programmable and can be started and stopped > > +individually. Each counter can be set to a different event. DMC and L3C > > +Counters are 32-bit and do not support an overflow interrupt; they are read > > Counters -> counters > > > +every 2 seconds. CCPI2 counters are 64-bit. > > Assuming CCPI2 also doesn't support an overflow interrupt, I'd reword these > two sentences as: > > None of the counters support an overflow interrupt and therefore sampling > events are unsupported. The DMC and L3C counters are 32-bit and read every > 2 seconds. The CCPI2 counters are 64-bit and assumed not to overflow in > normal operation. Mark reminded me that these are system PMUs and therefore sampling is unsupported irrespective of the presence of an overflow interrupt, so you can drop that part from the text. Sorry for the confusion, Will