Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2838998ybd; Thu, 27 Jun 2019 21:15:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeHA9839blyKRSd+rzRwLmuYwTuW4xvRK9g3Fj1WQTyAZz44KiJxjFZprZ7onY4fjjthlA X-Received: by 2002:a65:4347:: with SMTP id k7mr7303354pgq.253.1561695335608; Thu, 27 Jun 2019 21:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561695335; cv=none; d=google.com; s=arc-20160816; b=hFz6ciAgwUrq7M+sdSukgyy24GbsK0KU15Z6Z/LMlT+03ov7h50n50Q/Xri/Fc8mDx djcWd9b0kMAl4NaKqqhG2nh5lPN3IxYMiZI2rKmtg0wOoWixGvon505ITljhe15QcYea 2xF4WQiHxxAaC51Ps7A4c2+1DFrllQjbqsEebLo7XGSb/dXBIOBLlouoYDjda+Bs8y8d LG8lhs2kUOMe/9pubyRmOCBzGSYnz2qEDAtyY4tCgKIcb2DBU2U04D/9MD6a7GLfxB94 MTkIGd1prn0hd5w26aI9GQq3YmAiTdVlqwwACagDz3ZIqJxwU57Wg+PI+NrlYsA+vvTM /9Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wskEaZMaFBoycfWtxq3fq9AtJfP+IBGorvO/F2Y89ls=; b=Pb/8fFfj6j8ZHEpKbpVqUXSj1b9PT8h0WZtvLqubeIIXIrbplvRS2szCxMe+YenxMI umIKhYQG0zQJjCY3yq1gF52G5NbTkFpNm29wXcwr9edGflygTBPxLxgTr4FysCnSp+MI /H+ZcAIMZCfWsqp0yet1uOUtupGdWG5jCgeCyB7c3r+/ZQLeA4x4tnsuXJuC5vbCJYuy Fl04C5gJt6qoDjI9qSDeXgFOyTxKb4Psu/gy2phGJ/EdSukqczMAOpaHhmth60qFK5w1 unc2Xad+RRgCAwYddmc8p/UA3A1d2J32kHFby46CeFVjh8ah9BD9EnLOdHgmaN9yPsvG ee0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ebi/tmZi"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si1138711pfa.186.2019.06.27.21.15.19; Thu, 27 Jun 2019 21:15:35 -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=@gmail.com header.s=20161025 header.b="ebi/tmZi"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727272AbfF1EPO (ORCPT + 99 others); Fri, 28 Jun 2019 00:15:14 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:39174 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbfF1EPN (ORCPT ); Fri, 28 Jun 2019 00:15:13 -0400 Received: by mail-io1-f68.google.com with SMTP id r185so9665992iod.6; Thu, 27 Jun 2019 21:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wskEaZMaFBoycfWtxq3fq9AtJfP+IBGorvO/F2Y89ls=; b=ebi/tmZiTmZR58CGWM1DBvxgMSRk6yjKt8Dg4UdLy9wQ/qWCQv0CzwYY6orxTaLtLO Lt3Gy7QpQecCK4e7DR1bSwaOnGKjWfCUw+sqEWQWQwcgaixbPlOVqc4L2ITktT67J0tZ u5Cr3Vu0ZK3WMVVU2WcR96TkZH9aQOE8nUjO2fw26THNBzLo348oZKGBYpldECsT15Ba umWhUOkVv2xfFCOJjzSNsGSscFZaDu3rd4q8O3ExRDsb/tn8Rv4pjFaxlyizTwGhiBbP sWLOlThn478PtvZscYumkdcoRzCVVZLa4j+WNK6N0zhVmaYWDxP6zhrdMoW2r/q7ZExY e9xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wskEaZMaFBoycfWtxq3fq9AtJfP+IBGorvO/F2Y89ls=; b=llnoLprFzbai4nU7V0Ruk/jVuTKu+cnNCLVp9ERkal1qissi0Q/A4TqbXPHUvLdBNp wAvUZf4HgaeWtb5FEUJum2PZoia6RkCfDN+ay3/ceI8ivqaJ43Dtr8TZ/7fBHpqCenip dsEyvZhq+mcX1o263VptDXBqxBGSS82a1dhMUAR+ue34PdhmMJtpS6gnz2i9HwolJ+Sk se4oLqROUg6Y8kJ4YYhIc2biR34CpvRvRQkwCiQUqzZGCMYpCJIBblTgTCAORkXD7dQv 3FkzfsjFzdHhnQi9KuwKmPw34kTriSYgEb3wXEpyo3kk9xP1howIgS0F6oqGG4mMVuxo oeQg== X-Gm-Message-State: APjAAAU6++QhvGr6mMICAbmdfpCbGX1Iv1drePE7T8DUX+wrjeJhnHgp wuw11DyPaqEhRhe0LDaDrY4GeMxaqNL4Vk2w6Mk= X-Received: by 2002:a02:c6a9:: with SMTP id o9mr9167467jan.90.1561695312103; Thu, 27 Jun 2019 21:15:12 -0700 (PDT) MIME-Version: 1.0 References: <1560534144-13896-1-git-send-email-gkulkarni@marvell.com> <1560534144-13896-2-git-send-email-gkulkarni@marvell.com> <20190627100118.nfveq4oktomqybtx@willie-the-truck> <20190627162236.y3wb5sle6yjbwtzm@willie-the-truck> In-Reply-To: <20190627162236.y3wb5sle6yjbwtzm@willie-the-truck> From: Ganapatrao Kulkarni Date: Fri, 28 Jun 2019 09:45:00 +0530 Message-ID: Subject: Re: [PATCH 1/2] Documentation: perf: Update documentation for ThunderX2 PMU uncore driver To: Will Deacon Cc: Ganapatrao Kulkarni , "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@marvell.com, jglauber@marvell.com, rrichter@marvell.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Will, On Thu, Jun 27, 2019 at 9:52 PM Will Deacon wrote: > > 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. > Thanks for the comments, will update in v2. Yes, CCPI2 is 64bit counter and there is no overflow issue. > 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. sure. > > Sorry for the confusion, > > Will Thanks, Ganapat