Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1307557ybg; Fri, 18 Oct 2019 15:36:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLEBb6zvtQd38k7kGVT2lcBcBqfkJGE8DlbQoZAh9dlLJJsebkVHW3iCKFUedV8CqFNzFV X-Received: by 2002:a05:6402:29a:: with SMTP id l26mr12255124edv.290.1571438208526; Fri, 18 Oct 2019 15:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571438208; cv=none; d=google.com; s=arc-20160816; b=DTxjOSr32EMPyhf4z5324oAzin6/OkBwf2QvpyJpUGx77GCjZIQdUnrkloVkcp/jXB HSVC2j5PfHYdB25FMvAV6dUmEEnO4rZbqIumMGEqiqzt//gFZ1MQBaihhwrAFapSjrzY 5Y/AxWCmFjoa0boIy7LcIQJyCjEpRCuVV++zP9AdpGpaXHlb0xjjmkYmjR2UwJadMkJd MGUEjauWp1DtjDZiVQVaopi2w12/5UTywKGj5GEkWMHQOhKexhhyFZVgsltjU1XwGJGg B/VaU52bex5Ws2M45uBGsrL7JJSr/hRC0DK38LYHsnh01EnF2osipMKvP7NfjE/GdV9m 9wGQ== 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=xsX/qftxhkazt9hFT8dF57W5m8I435Z6GlII9cy+ECY=; b=jc2Keysxx5sCDgaNO0A8SkP9lCPiR/7O7rvXm7nFBemIoGsBB88BRkhJRj5CBvoIla DygtbP1E88zjinO44zDkk+76Ep5v66wOe9HxzH2wu/GgGJdYQP7JOFJ/wOOo6M9l6TKE fGpHJfbKK+oxOOlVnIsZp8b9/ytviXMr2j4chvbwYppz56szHAo6/gBUXGmXuqZFLA2H UhAOByIV93axXGc7/VrICgYpvchUWH6/YMdf2xEXTn3+RqyBvFuHxBdjdMzz0bLkG88a 57oMjD5ZCdKmTnOuHEc+SspKaBRLBol2DrUDgCeGpLax9N+bCHj35NYxTaetryL/7j5n bgiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LB2/6gRP"; 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 o14si4239124ejc.405.2019.10.18.15.36.25; Fri, 18 Oct 2019 15:36: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="LB2/6gRP"; 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 S2407612AbfJRFUo (ORCPT + 99 others); Fri, 18 Oct 2019 01:20:44 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:34905 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbfJRFUo (ORCPT ); Fri, 18 Oct 2019 01:20:44 -0400 Received: by mail-yw1-f66.google.com with SMTP id r134so1754021ywg.2; Thu, 17 Oct 2019 22:20:42 -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=xsX/qftxhkazt9hFT8dF57W5m8I435Z6GlII9cy+ECY=; b=LB2/6gRPtiwyOpmLwPi7yLfXzO/o74TSfvJfCt2GXYIAZXk8+Pf8VSZlmSRym9BhXU U5be31A1gQfNPmpGHHuUtf9B7X3L9QIQN6VdP1M/ufmL7MCuXFikuhLTDWjzGAhBq3V8 mXga5/iHEYkl2fY5yH5MoccwlTwfjuJP2JeTKpSPLCsJWiY1E0UuEl7vL8htolCtAIVi yXEq15oEn0F6yyhSH+A8h2la3ySKUlKrFxDil1lNU2ahbL8u0jqtpXCEh0tEDer8H7nd 6Y+CxLkBrQxqbAUGA7BoVFLcXfWMW90K61E+pYHK+otV2dkI5Yr3+lyuIc5InASL/zeV eXNg== 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=xsX/qftxhkazt9hFT8dF57W5m8I435Z6GlII9cy+ECY=; b=Pc7sZ+eKVMeKVtKXPQ6MLqpWQ7ObGArYB2GM3WGC6+HDkiHFxj7fUrATgEMC7xK9am xNPiPfApJQIzgAcW/jyVW5qI3mRvJtHeoOaROMvmYrMSpVjsJXf5wi0gaW8rNpSLxNY5 eNYty7GzceupC+zNUwFZOIhrH6i8V+RZ7Mn16/8msnoYC4fQQ+dA202tArCq1mswoWW0 YuE5KTJC69rWi9Dc7k5eHtO50MQeakH223gUGomUxxPShgWyVtxwgDaHiHe5ujbVyZ64 M/8SuYUv1VkYVd13RAwEf0MdGlgPpMTRmCpfVPpGdBZ17nrGwsI9l87QnmAh3T1TZe+7 VwUQ== X-Gm-Message-State: APjAAAUwavxPiGzLeI1FOMGgWuxgZW/I7wM0lzcwemiwyEqGM69OJdZ+ YOrNxB38F6JICXoABI5Ab+9G8fvA+Ajn8M7bAco= X-Received: by 2002:a0d:d605:: with SMTP id y5mr5180535ywd.13.1571372506022; Thu, 17 Oct 2019 21:21:46 -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: <20191017154750.jgn6e3465qrsu53e@willie-the-truck> From: Ganapatrao Kulkarni Date: Fri, 18 Oct 2019 09:51:34 +0530 Message-ID: Subject: Re: [PATCH v6 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver. To: Will Deacon Cc: John Garry , 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 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. 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