Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3509954pxj; Tue, 15 Jun 2021 02:29:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFwK5fybvX/omZZ4pwMqSAWyfbIF4/cJBfhWBWXt5I4+A674pVy5n9w5PDNT2i3bUnLpVR X-Received: by 2002:a05:6402:b11:: with SMTP id bm17mr21786242edb.109.1623749380658; Tue, 15 Jun 2021 02:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623749380; cv=none; d=google.com; s=arc-20160816; b=EVKab6pcRBgcHHzwZvv/pZl6IuWS9hKJqZO4LBQWqeCBdRRvAE7ow60LvigYHMn4UH Hg/PT3e6wpgjMuUBh3IBRu8d6ow6INVfktNKcrygHfUqFruBZQmo4nLLrqGe+sZVDwqD +AyLeCiLjEzOCXnhvp775Df5bLy8ZK/OVmLfPpwnfLbgvKktrjBhItE8gHUZJv9GIMdM 6o/Pu5X/18NHiRA28SI+mwVFWaehsZ3lPxS1GfI/OBuFR7rIVsiHHaUK/wGEP6a+DpAo B5vndFSpw26YZ5hMbEosdI/uJFZvtG1KYrdNxKcZVOtQZaRXIYtPu7pGPe+LEUm6ScPJ EA5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=E7kBuCJ46hCNrTIrvLH7dFAWQrj6U1zbiK+BHu083HU=; b=jsIOKv/nKpaadFBzPjdtcojrAOJdx17vph2N1Y3LtHSRpWMM7WVj3o2llr3P/J12oQ yQ1xNN2QlFmaPktzLSPhyDttgMQyWFiHUxkDSvwUAn6WDPpctAUdOXx9q2RpUAFMXOCa phX89OEGVN4BaygV/fUvnTEnykhBQbP76Yuf8/bEe7WiRTZXSkfi7UtYV7hRhrBbBEtl oLH6INdixG2cNT6vOTttid2ps5cTGadG7t5nVerzA2RMEcOtV5O0AgIekh09L6bVDzfE 7b2z0pA5CFguGI9YsmxNoYUS3hA+2/Ep9rDkQGME7XbnT8n/DDz1tmInRMzrIoR/QQIY xMCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ltj3upRZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u19si11836033edo.450.2021.06.15.02.29.17; Tue, 15 Jun 2021 02:29:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ltj3upRZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231255AbhFOJ2M (ORCPT + 99 others); Tue, 15 Jun 2021 05:28:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:53424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbhFOJ2L (ORCPT ); Tue, 15 Jun 2021 05:28:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C3C4C61432; Tue, 15 Jun 2021 09:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623749167; bh=ysXE/y+QAGb8h7lBlVwFdUaiG4ulp9691EwnClnpiPw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ltj3upRZDSv0lisL9uSpML8p7k8nql/Kcs9bD6lVWV1r+GEaBA9GzFRpJAq+LumR1 YqkzCIOkfqEBfg2SfNqm9bFcc2MdJvUv0OcF1sduLdF/YrdkPveXM0q+I+qSkzdPWO eBPAhtfMYs93tQ4HweLwCgq+xubZnHZrLl+sPkYD3q/0wKWAgbE2X0ot8k6DLCiEoS d1qy9dBnOg/3YDuMnZvhZ8W7WGfO7Z7ToB3K61HfxsAKkOAkur/lNg7vkFRim+vdl5 K0SSGz1+gKrGp27mHThH3Z0RefL3RApX3ro6SxGh/eCRyJ9ckfE9yhkTeGDOPwlVlx ODE0elsN2657Q== Date: Tue, 15 Jun 2021 10:26:02 +0100 From: Will Deacon To: Jonathan Cameron Cc: Qi Liu , mark.rutland@arm.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, zhangshaokun@hisilicon.com Subject: Re: [PATCH v6 2/2] drivers/perf: hisi: Add driver for HiSilicon PCIe PMU Message-ID: <20210615092601.GA19878@willie-the-truck> References: <1622467951-32114-1-git-send-email-liuqi115@huawei.com> <1622467951-32114-3-git-send-email-liuqi115@huawei.com> <20210611162347.GA16284@willie-the-truck> <20210614102025.0000222b@Huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614102025.0000222b@Huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 10:20:25AM +0100, Jonathan Cameron wrote: > On Fri, 11 Jun 2021 17:23:48 +0100 > Will Deacon wrote: > > > On Mon, May 31, 2021 at 09:32:31PM +0800, Qi Liu wrote: > > > PCIe PMU Root Complex Integrated End Point(RCiEP) device is supported > > > to sample bandwidth, latency, buffer occupation etc. > > > > > > Each PMU RCiEP device monitors multiple Root Ports, and each RCiEP is > > > registered as a PMU in /sys/bus/event_source/devices, so users can > > > select target PMU, and use filter to do further sets. > > > > > > Filtering options contains: > > > event - select the event. > > > subevent - select the subevent. > > > port - select target Root Ports. Information of Root Ports > > > are shown under sysfs. > > > bdf - select requester_id of target EP device. > > > trig_len - set trigger condition for starting event statistics. > > > trigger_mode - set trigger mode. 0 means starting to statistic when > > > bigger than trigger condition, and 1 means smaller. > > > thr_len - set threshold for statistics. > > > thr_mode - set threshold mode. 0 means count when bigger than > > > threshold, and 1 means smaller. > > > > > > Reviewed-by: John Garry > > > Signed-off-by: Qi Liu > > > --- > > > MAINTAINERS | 6 + > > > drivers/perf/Kconfig | 2 + > > > drivers/perf/Makefile | 1 + > > > drivers/perf/pci/Kconfig | 16 + > > > drivers/perf/pci/Makefile | 2 + > > > drivers/perf/pci/hisilicon/Makefile | 3 + > > > drivers/perf/pci/hisilicon/hisi_pcie_pmu.c | 1019 ++++++++++++++++++++++++++++ > > > > Can we keep this under drivers/perf/hisilicon/ please? I don't see the > > need to create a 'pci' directory here. > > https://lore.kernel.org/linux-pci/20190103154439.GC16311@edgewater-inn.cambridge.arm.com/ > > Discussion back in 2018 about where to put these... I don't remember that at all :) > Though, perf/pci/hisilicon does seem over the top in terms of depth, maybe perf/pci/ > or just give up on that plan and put them (for now at least) in per company directories. I think perf/hisilicon makes the most sense. We can always move it later if we need to. Will