Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1719713ybg; Sat, 19 Oct 2019 01:02:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVO4dViHxHk8x0CCqvaGbR8e9NPqVAhIKgH7JRP9qPznIuLfX+gCqlJtfbGDWQchlRHxXj X-Received: by 2002:aa7:d44d:: with SMTP id q13mr14274069edr.48.1571472169443; Sat, 19 Oct 2019 01:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472169; cv=none; d=google.com; s=arc-20160816; b=hwjtF088pk9nGz6Q8ezO3/b1xZ9y7IpGtgJ3u5QkocEUrgEl/ZibMUd+tikDWaLQtZ +4QYrjwo8zMjtZYMBZCrS2xK5QNfqvn9U1TLyBKSIK9PWzUKbfmc4BStAJuOSodmSquv pyzaGCmfV4Ap0PIGjZ86wh/mdFvSoVR+zI1O5zXb3N+2vq3yJjswCZP32xd0gmTA46ma Y6j7kosimPvrXUUve2bixYUdGI7M/yp+Vtgpgl+p7EZGZR19+OSyC48gXbXqVwPC2cKl Bk0s+NF10RThjib9dlKO+e2Ssy2fQJmenTE156MT1tJCNvZWsi00+WfVmf4QvfhofoyF jNWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=tMkT5C+T+dgHsE/VwXH9WRFFX58Cb7UNOgQecF0OCcI=; b=f4RXzVqj0OG8Vciw3A6x1Wbvf6Rnjn+beW3gVEjmoQqZ1X21NV4Eblgxz7L/ahKR8q sGsWNqShEu4rfZ19N6z31Fby5lC8iZDDUTG+DzzNojo4yARw7OZTGoR/YGMGbITu4psR +KjGNcl5UjOo+ZEWZaQrOUVMWeR4fjDFr7OuWOF7faYF/LyP+UwVy/FbQowrwRr4j0DV uyJ3vLaSw4ss9s0bDZV/NHhAdmKp5NJZNzJbzpE3D6HNv3uo0Fi8GEyw+AfEMmhDlfpW X5+vIfGCZMQszFErxUyean7VDM+LWf/cuUfdKnQo0r/PfXY4G37UP+p0JL+CqdX7n0sV UJPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 v13si5032454edy.441.2019.10.19.01.02.26; Sat, 19 Oct 2019 01:02:49 -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; 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 S2407553AbfJRIi1 (ORCPT + 99 others); Fri, 18 Oct 2019 04:38:27 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4730 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727903AbfJRIiZ (ORCPT ); Fri, 18 Oct 2019 04:38:25 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8334FBB43E802C608D56; Fri, 18 Oct 2019 16:38:22 +0800 (CST) Received: from [127.0.0.1] (10.202.227.179) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Fri, 18 Oct 2019 16:38:13 +0800 Subject: Re: [PATCH v6 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver. To: Ganapatrao Kulkarni , Will Deacon References: <1571218608-15933-1-git-send-email-gkulkarni@marvell.com> <1571218608-15933-3-git-send-email-gkulkarni@marvell.com> <20191017154750.jgn6e3465qrsu53e@willie-the-truck> CC: 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 From: John Garry Message-ID: Date: Fri, 18 Oct 2019 09:38:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.179] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 > > . >