Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1723368ybg; Sat, 19 Oct 2019 01:06:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9Y1l2kolA1TdVXO7OHSDW6ONM3MwvCZ5qsnP7bEmuLJ7j0QxoIo18LwXun5o65/R0hXss X-Received: by 2002:a17:906:af5c:: with SMTP id ly28mr12208076ejb.228.1571472408532; Sat, 19 Oct 2019 01:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472408; cv=none; d=google.com; s=arc-20160816; b=Wg3nZFSPeoDW4+4sa98wnmLxRA1CCeH5kuWFB7oheNUdiDxU6Jnfumn1YpP3/d5ERy bF0ZuSXQAr25JlkHMyrOBUFEeHVeY/JgDApnSjwrJcXTNCtmszAmUtiGw4z49stYZo/1 04ztIY8D8DiwQCCRLQmJOK7MalM6ZMYYonCl7LCZU1vwgj0TdH2Igrk/EWIvVSwDsuDd NV4jQFutNJpa4CkWKW0Fk3FitE7Wnn8723LhSgZKTbCV9UGzZ4AlXShtUUzIm0qaJnuC fNatiY85P+aSoawSd942COTVBLOoNHmD4vrTk2N4fSrEjwkbOpQ0z9Ijdr7hmrBR6p1I m4Ww== 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=Z+lQ2vvz51oFYeiM6k7BQbwMui72bfHQHjmRy0L+AxA=; b=ujWj7ymQad1v1OhPeATA6cJPWsfzo23d9qF+kYiQtJoGqPhHTE7sportgBkkjDEo5P kZbbrnGJJZc96q65FCnRsMHsGA55DV/F7f6bXUWNOs3vI+IOux6xATY9qapuwgb3n2tn jyuGKq3eYV9bq1f9sgbFbX+ik+ammnkB3vH54fjd3pcZY9ZIhzy3SsV4bnvxDmUPKVDR xOmP+jyknmIWF+HAHhby73r5BnVgqdKuryWt49Q/Bne9Nuw7jGJIeuRAz5Mz1KQ44xNX X652wYjZWug9VnQcEimBwv0wC2Ng2g/Yfjw4QNL5fAFHaqarzsmc7/aRPnf8wYglxj8w qkrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ACvp92dW; 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 a36si5746008edf.123.2019.10.19.01.06.25; Sat, 19 Oct 2019 01:06:48 -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=ACvp92dW; 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 S2409655AbfJRJTH (ORCPT + 99 others); Fri, 18 Oct 2019 05:19:07 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:46932 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390499AbfJRJTH (ORCPT ); Fri, 18 Oct 2019 05:19:07 -0400 Received: by mail-yw1-f67.google.com with SMTP id l64so1908814ywe.13; Fri, 18 Oct 2019 02:19:06 -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=Z+lQ2vvz51oFYeiM6k7BQbwMui72bfHQHjmRy0L+AxA=; b=ACvp92dWges5svxbhRUbOeZgMj4RVHJBCPyqRlUDAbQOWOtKdysk3+ZmIzVP3/p9of 8QEJ0hTE5RHPa3EX4JMa/5betwdH08Nu0KjN60a++w/MREl7B0IP1Ha/Jvz2Ip6bDDpe HiAe2+rRuHb894TeULs91YERSQcOiCXJaQEx/Ni96LitP6ZmM3mlof0Jl7HkdE6VqHvS S2RBXc6NpfJIuvRXju4BmvjCvz8xaf5sNYPtzOhg5OluuDcmZf1HTcoZ3bqWnBbfTCCi wg/0CizUmf2y7YO5n7SceAu14dPfN4d04yO+VrcCkgBOOk4+O8gzD6FYMXl8xwDIp89S S9lw== 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=Z+lQ2vvz51oFYeiM6k7BQbwMui72bfHQHjmRy0L+AxA=; b=Asfw7EEr+Z3DhA0Vs10+th+/hLuaiI1mSwSDt0jbTPUmYGj2OI8f3veOLNQXUmEY7z jhxR0k8NR5ZBL4sZ/cMzUxGVXzOsEf6Yq+KT0XKM/2riqOo7aZ2d25wIBfipUiAvK1ZI U2f3YZCQEZHRj0pD71VSW+whCQyRT4PfFkbpLerQNj4bcCQkzibIhWWiGtjUNfONKUYT Co7wlEBTnO+OOjXabeFIPZtpcCOqydqm9mz+UOMCX/gZHmWGU4B2sxeJ1iP/91J+u9wd SdZNpWaOmGtS4Vqmu8fGpztRnFxIFVSFRgTUcG40O4eeaoBOJM8Mc4V5i6whpb4aDMVO B5gw== X-Gm-Message-State: APjAAAWIAGnAYTKrEIi0NOyzYQoRsS6j2i15RD+qsLjpTGCSQIwQfRq9 2xmTYALC7r785tMGit6IEwQ7MHXqzBLslR4n59Q= X-Received: by 2002:a81:5742:: with SMTP id l63mr5816824ywb.295.1571390346123; Fri, 18 Oct 2019 02:19:06 -0700 (PDT) MIME-Version: 1.0 References: <1571218608-15933-1-git-send-email-gkulkarni@marvell.com> <1571218608-15933-3-git-send-email-gkulkarni@marvell.com> <20191017154750.jgn6e3465qrsu53e@willie-the-truck> In-Reply-To: From: Ganapatrao Kulkarni Date: Fri, 18 Oct 2019 14:48:55 +0530 Message-ID: Subject: Re: [PATCH v6 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver. To: John Garry Cc: Will Deacon , Ganapatrao Prabhakerrao Kulkarni , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "mark.rutland@arm.com" , "corbet@lwn.net" , Jan Glauber , Jayachandran Chandrasekharan Nair , Robert Richter , Zhangshaokun 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 On Fri, Oct 18, 2019 at 2:08 PM John Garry wrote: > > On 18/10/2019 05:21, Ganapatrao Kulkarni wrote: > > Hi Will, > > > > On Thu, Oct 17, 2019 at 9:17 PM Will Deacon wrote: > >> > >> On Thu, Oct 17, 2019 at 12:38:51PM +0530, Ganapatrao Kulkarni wrote: > >>> On Wed, Oct 16, 2019 at 7:01 PM John Garry wrote: > >>>>> +TX2_EVENT_ATTR(req_pktsent, CCPI2_EVENT_REQ_PKT_SENT); > >>>>> +TX2_EVENT_ATTR(snoop_pktsent, CCPI2_EVENT_SNOOP_PKT_SENT); > >>>>> +TX2_EVENT_ATTR(data_pktsent, CCPI2_EVENT_DATA_PKT_SENT); > >>>>> +TX2_EVENT_ATTR(gic_pktsent, CCPI2_EVENT_GIC_PKT_SENT); > >>>>> + > >>>>> +static struct attribute *ccpi2_pmu_events_attrs[] = { > >>>>> + &tx2_pmu_event_attr_req_pktsent.attr.attr, > >>>>> + &tx2_pmu_event_attr_snoop_pktsent.attr.attr, > >>>>> + &tx2_pmu_event_attr_data_pktsent.attr.attr, > >>>>> + &tx2_pmu_event_attr_gic_pktsent.attr.attr, > >>>>> + NULL, > >>>>> +}; > >>>> > >>>> Hi Ganapatrao, > >>>> > >>>> Have you considered adding these as uncore pmu-events in the perf tool? > >>>> > >>> At the moment no, since the number of events exposed/listed are very few. > >> > >> Then sounds like a perfect time to nip it in the bud before the list grows > >> ;) > > > > I had internal discussion with architecture team, they have confirmed > > that, these are the only published events and no plan to add new. > > However, If any such request comes from HW team in future, i will add > > them to JSON files. > > Don't you find perf list is swamped with all the uncore events? > > For Huawei platform, I find this: > ./perf list pmu | grep "Kernel PMU event" | grep hisi | wc -l > 648 > We don't have such issue at the moment. As i said earlier, the events exposed are limited. Total 16 events altogether(DMC, L3C and CCPI2) per socket. root@SBR-26>~>> perf list | grep uncore | wc -l 32 > That's because we have so many instances of the same PMUs, not because > there are many events per PMU. > > TBH, I would like to delete all the events from the hisi uncore kernel > drivers, now that they're supported in the perf tool, but I think that > would constitute an ABI breakage. > > Maybe there is a way to hide them, but I couldn't find it. > > John > > > > > I have incorporate all your previous comments, Can you please Ack and > > queue it to 5.5? > > > >> > >> If you can manage with these things in userspace, then I agree with John > >> that it would be preferential to do it that way. It also offers more > >> flexibility if we get the metricgroup stuff working properly (I think it's > >> buggered for big/little atm). > >> > >> Will > > > > Thanks, > > Ganapat > > > > . > > > > Thanks, Ganapat