[PATCH v7 8/9] drivers: perf: hisi: Miscellanous node(MN) event counting in perf

2017-04-04 Thread Anurup M
is -e "hisi_mn_2/read_req/" 3. MN PMU doesnot support counter overflow IRQ in HiP05/06/07, So use hrtimer to poll and avoid counter overflow. Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: Dikshit N <dikshi...@huawei.com> Signed-off-by: A

[PATCH v7 8/9] drivers: perf: hisi: Miscellanous node(MN) event counting in perf

2017-04-04 Thread Anurup M
uot; 3. MN PMU doesnot support counter overflow IRQ in HiP05/06/07, So use hrtimer to poll and avoid counter overflow. Signed-off-by: Shaokun Zhang Signed-off-by: Dikshit N Signed-off-by: Anurup M --- drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_

[PATCH v7 9/9] dts: arm64: hip07: Add Hisilicon SoC PMU support

2017-04-04 Thread Anurup M
Add nodes for djtag, L3 cache and MN to support uncore events. Signed-off-by: Anurup M <anuru...@huawei.com> --- arch/arm64/boot/dts/hisilicon/hip07.dtsi | 87 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch

[PATCH v7 9/9] dts: arm64: hip07: Add Hisilicon SoC PMU support

2017-04-04 Thread Anurup M
Add nodes for djtag, L3 cache and MN to support uncore events. Signed-off-by: Anurup M --- arch/arm64/boot/dts/hisilicon/hip07.dtsi | 87 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch/arm64/boot/dts/hisilicon

[PATCH v7 1/9] arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support

2017-04-04 Thread Anurup M
Add support for Hisilicon SoC hardware event counters for HiP05/06/07 chip versions. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b

[PATCH v7 7/9] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-04-04 Thread Anurup M
cache hardware events. Each L3 cache banks will be registered as separate PMU with perf. 5. L3C events will be listed at /sys/devices/hisi_l3cX_Y/events/ 6. L3C PMU in HiP05/06/07 does not support counter overflow IRQ. So hrtimer is used to poll and avoid overflow. Signed-off-by: Anurup M <an

[PATCH v7 1/9] arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support

2017-04-04 Thread Anurup M
Add support for Hisilicon SoC hardware event counters for HiP05/06/07 chip versions. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6d7b7a7..4a95977 100644 --- a/MAINTAINERS

[PATCH v7 7/9] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-04-04 Thread Anurup M
cache hardware events. Each L3 cache banks will be registered as separate PMU with perf. 5. L3C events will be listed at /sys/devices/hisi_l3cX_Y/events/ 6. L3C PMU in HiP05/06/07 does not support counter overflow IRQ. So hrtimer is used to poll and avoid overflow. Signed-off-by: Anurup M Signed

[PATCH v7 6/9] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-04-04 Thread Anurup M
ed-off-by: Tan Xiaojun <tanxiao...@huawei.com> Signed-off-by: John Garry <john.ga...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- drivers/perf/Makefile | 1 + drivers/perf/hisilicon/Makefile | 1 + drivers/perf/

[PATCH v7 6/9] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-04-04 Thread Anurup M
-by: John Garry Signed-off-by: Anurup M --- drivers/perf/Makefile | 1 + drivers/perf/hisilicon/Makefile | 1 + drivers/perf/hisilicon/djtag.c | 684 drivers/perf/hisilicon/djtag.h | 47 +++ 4 files changed, 733 insertions(+) create mode

[PATCH v7 4/9] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-04-04 Thread Anurup M
Documentation for perf usage and Hisilicon SoC PMU uncore events. The Hisilicon SOC has event counters for hardware modules like L3 cache, Miscellaneous node etc. These events are all uncore. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisi

[PATCH v7 5/9] drivers: perf: hisi: Update Kconfig for Hisilicon PMU support

2017-04-04 Thread Anurup M
Update Kconfig for HiP05/06/07 PMU support. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: John Garry <john.ga...@huawei.com> --- drivers/perf/Kconfig | 8 1 file changed, 8 insertions(+) diff --

[PATCH v7 4/9] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-04-04 Thread Anurup M
Documentation for perf usage and Hisilicon SoC PMU uncore events. The Hisilicon SOC has event counters for hardware modules like L3 cache, Miscellaneous node etc. These events are all uncore. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang --- Documentation/perf/hisi-pmu.txt | 75

[PATCH v7 5/9] drivers: perf: hisi: Update Kconfig for Hisilicon PMU support

2017-04-04 Thread Anurup M
Update Kconfig for HiP05/06/07 PMU support. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Signed-off-by: John Garry --- drivers/perf/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index 9365190..248d730 100644

[PATCH v7 2/9] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-04-04 Thread Anurup M
From: Tan Xiaojun <tanxiao...@huawei.com> Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun <tanxiao...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings

[PATCH v7 3/9] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-04-04 Thread Anurup M
1) Device tree bindings for Hisilicon SoC PMU. 2) Add example for Hisilicon L3 cache and MN PMU. 3) Add child nodes of L3C and MN in djtag bindings example. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> --- .../devicetree/

[PATCH v7 2/9] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-04-04 Thread Anurup M
From: Tan Xiaojun Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun Signed-off-by: Anurup M Acked-by: Rob Herring --- .../devicetree/bindings/arm/hisilicon/djtag.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644

[PATCH v7 3/9] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-04-04 Thread Anurup M
1) Device tree bindings for Hisilicon SoC PMU. 2) Add example for Hisilicon L3 cache and MN PMU. 3) Add child nodes of L3C and MN in djtag bindings example. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang --- .../devicetree/bindings/arm/hisilicon/djtag.txt| 29 +++ .../devicetree

[PATCH v7 0/9] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-04-04 Thread Anurup M
hw version. - use devm_kzalloc. - Remove DDRC changes in this series. As the DDRC PMU doesnot depend on djtag it will be send separately. v1 -- -Initial version with support for L3C, MN and DDRC event counters -Djtag driver is used to access registers of L3 cache and MN. Anurup M (6): arm64

[PATCH v7 0/9] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-04-04 Thread Anurup M
hw version. - use devm_kzalloc. - Remove DDRC changes in this series. As the DDRC PMU doesnot depend on djtag it will be send separately. v1 -- -Initial version with support for L3C, MN and DDRC event counters -Djtag driver is used to access registers of L3 cache and MN. Anurup M (6): arm64

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-31 Thread Anurup M
On Friday 31 March 2017 07:53 PM, Mark Rutland wrote: On Fri, Mar 31, 2017 at 07:43:20PM +0530, Anurup M wrote: On Thursday 30 March 2017 04:16 PM, Mark Rutland wrote: + /* +* We must NOT create groups containing mixed PMUs, although +* software events are acceptable

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-31 Thread Anurup M
On Friday 31 March 2017 07:53 PM, Mark Rutland wrote: On Fri, Mar 31, 2017 at 07:43:20PM +0530, Anurup M wrote: On Thursday 30 March 2017 04:16 PM, Mark Rutland wrote: + /* +* We must NOT create groups containing mixed PMUs, although +* software events are acceptable

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-31 Thread Anurup M
On Thursday 30 March 2017 04:16 PM, Mark Rutland wrote: + /* > >>>+ * We must NOT create groups containing mixed PMUs, although > >>>+ * software events are acceptable > >>>+ */ > >>>+ if (event->group_leader->pmu != event->pmu && > >>>+

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-31 Thread Anurup M
On Thursday 30 March 2017 04:16 PM, Mark Rutland wrote: + /* > >>>+ * We must NOT create groups containing mixed PMUs, although > >>>+ * software events are acceptable > >>>+ */ > >>>+ if (event->group_leader->pmu != event->pmu && > >>>+

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-30 Thread Anurup M
On Tuesday 21 March 2017 10:22 PM, Mark Rutland wrote: +static int hisi_hw_perf_event_init(struct perf_event *event) >+{ >+ struct hw_perf_event *hwc = >hw; >+ struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); >+ struct device *dev = hisi_pmu->dev; + >+ /* >+* We must NOT

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-30 Thread Anurup M
On Tuesday 21 March 2017 10:22 PM, Mark Rutland wrote: +static int hisi_hw_perf_event_init(struct perf_event *event) >+{ >+ struct hw_perf_event *hwc = >hw; >+ struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); >+ struct device *dev = hisi_pmu->dev; + >+ /* >+* We must NOT

Re: [PATCH v6 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-27 Thread Anurup M
On Friday 24 March 2017 05:06 PM, Mark Rutland wrote: +#define SC_DJTAG_TIMEOUT_US(100 * USEC_PER_MSEC) /* 100ms */ > >How was this value chosen? > > > >How likely is a timeout? > >As explained in PATCH 7, > >The djtag -EBUSY in hardware is a very rare scenario, and by design >of

Re: [PATCH v6 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-27 Thread Anurup M
On Friday 24 March 2017 05:06 PM, Mark Rutland wrote: +#define SC_DJTAG_TIMEOUT_US(100 * USEC_PER_MSEC) /* 100ms */ > >How was this value chosen? > > > >How likely is a timeout? > >As explained in PATCH 7, > >The djtag -EBUSY in hardware is a very rare scenario, and by design >of

Re: [PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-27 Thread Anurup M
On Friday 24 March 2017 05:13 PM, Mark Rutland wrote: How do we ensure that we don't take the interrupt in the middle of a > >sequence of accesses to the HW? > >The L3 cache and MN PMU does not use the overflow IRQ and it does >not occur here >as the interrupt Mask register is by default

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-27 Thread Anurup M
On Friday 24 March 2017 05:27 PM, Mark Rutland wrote: +/* hip05/06 chips L3C bank identifier */ >+static u32 l3c_bankid_map_v1[MAX_BANKS] = { >+0x02, 0x04, 0x01, 0x08, >+}; >+ >+/* hip07 chip L3C bank identifier */ >+static u32 l3c_bankid_map_v2[MAX_BANKS] = { >+0x01, 0x02, 0x03, 0x04,

Re: [PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-27 Thread Anurup M
On Friday 24 March 2017 05:13 PM, Mark Rutland wrote: How do we ensure that we don't take the interrupt in the middle of a > >sequence of accesses to the HW? > >The L3 cache and MN PMU does not use the overflow IRQ and it does >not occur here >as the interrupt Mask register is by default

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-27 Thread Anurup M
On Friday 24 March 2017 05:27 PM, Mark Rutland wrote: +/* hip05/06 chips L3C bank identifier */ >+static u32 l3c_bankid_map_v1[MAX_BANKS] = { >+0x02, 0x04, 0x01, 0x08, >+}; >+ >+/* hip07 chip L3C bank identifier */ >+static u32 l3c_bankid_map_v2[MAX_BANKS] = { >+0x01, 0x02, 0x03, 0x04,

Re: [PATCH v6 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-24 Thread Anurup M
Thanks for the review. On Tuesday 21 March 2017 09:21 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:28:22AM -0500, Anurup M wrote: From: Tan Xiaojun <tanxiao...@huawei.com> The Hisilicon Djtag is an independent component which connects with some other components in the SoC by Deb

Re: [PATCH v6 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-24 Thread Anurup M
Thanks for the review. On Tuesday 21 March 2017 09:21 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:28:22AM -0500, Anurup M wrote: From: Tan Xiaojun The Hisilicon Djtag is an independent component which connects with some other components in the SoC by Debug Bus. This driver can

Re: [PATCH v6 03/11] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-03-24 Thread Anurup M
On Tuesday 21 March 2017 10:58 PM, Mark Rutland wrote: On Tue, Mar 21, 2017 at 02:07:42PM +, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:27:27AM -0500, Anurup M wrote: +HiSilicon SoC chip is encapsulated by multiple CPU and IO dies. The CPU die +is called as Super CPU cluster (SCCL

Re: [PATCH v6 03/11] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-03-24 Thread Anurup M
On Tuesday 21 March 2017 10:58 PM, Mark Rutland wrote: On Tue, Mar 21, 2017 at 02:07:42PM +, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:27:27AM -0500, Anurup M wrote: +HiSilicon SoC chip is encapsulated by multiple CPU and IO dies. The CPU die +is called as Super CPU cluster (SCCL

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-24 Thread Anurup M
Thanks for the review. On Tuesday 21 March 2017 10:22 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:28:31AM -0500, Anurup M wrote: + * This code is based on the uncore PMU's like arm-cci and + * arm-ccn. Nit: s/PMU's/PMUs/ Ok. [...] +struct hisi_l3c_hwcfg { + u32 module_id

Re: [PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-24 Thread Anurup M
Thanks for the review. On Tuesday 21 March 2017 10:22 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:28:31AM -0500, Anurup M wrote: + * This code is based on the uncore PMU's like arm-cci and + * arm-ccn. Nit: s/PMU's/PMUs/ Ok. [...] +struct hisi_l3c_hwcfg { + u32 module_id

Re: [PATCH v6 10/11] drivers: perf: hisi: use poll method when no IRQ for MN counter overflow

2017-03-24 Thread Anurup M
On Tuesday 21 March 2017 10:47 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:29:01AM -0500, Anurup M wrote: When no IRQ is supported in hardware, use hrtimer to poll and update event counter and avoid overflow condition for MN PMU. An interval of 8 seconds is used for the hrtimer

Re: [PATCH v6 10/11] drivers: perf: hisi: use poll method when no IRQ for MN counter overflow

2017-03-24 Thread Anurup M
On Tuesday 21 March 2017 10:47 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:29:01AM -0500, Anurup M wrote: When no IRQ is supported in hardware, use hrtimer to poll and update event counter and avoid overflow condition for MN PMU. An interval of 8 seconds is used for the hrtimer

Re: [PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-24 Thread Anurup M
On Tuesday 21 March 2017 10:46 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:28:45AM -0500, Anurup M wrote: Add hrtimer support which use poll method to avoid counter overflow when overflow IRQ is not supported in hardware. The L3 cache PMU use N-N SPI interrupt which has no support

Re: [PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-24 Thread Anurup M
On Tuesday 21 March 2017 10:46 PM, Mark Rutland wrote: On Fri, Mar 10, 2017 at 01:28:45AM -0500, Anurup M wrote: Add hrtimer support which use poll method to avoid counter overflow when overflow IRQ is not supported in hardware. The L3 cache PMU use N-N SPI interrupt which has no support

Re: [PATCH v6 04/11] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-03-24 Thread Anurup M
Thanks for the review. On Tuesday 21 March 2017 07:42 PM, Mark Rutland wrote: Hi, On Fri, Mar 10, 2017 at 01:27:39AM -0500, Anurup M wrote: +HiP0x chips are encapsulated by multiple CPU and IO die's. The CPU die is Nit: that apostrophe shouldn't be there. Ok. shall recheck and modify

Re: [PATCH v6 04/11] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-03-24 Thread Anurup M
Thanks for the review. On Tuesday 21 March 2017 07:42 PM, Mark Rutland wrote: Hi, On Fri, Mar 10, 2017 at 01:27:39AM -0500, Anurup M wrote: +HiP0x chips are encapsulated by multiple CPU and IO die's. The CPU die is Nit: that apostrophe shouldn't be there. Ok. shall recheck and modify

Re: [PATCH v6 00/11] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-03-15 Thread Anurup M
Please have a look at this patch series. Looking forward for any feedback and comments. Thanks, Anurup On Friday 10 March 2017 11:55 AM, Anurup M wrote: Provide Support for Hisilicon SoC(HiP05/06/07) Hardware event counters. The Hisilicon SoC HiP0x series has many uncore or non-CPU

Re: [PATCH v6 00/11] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-03-15 Thread Anurup M
Please have a look at this patch series. Looking forward for any feedback and comments. Thanks, Anurup On Friday 10 March 2017 11:55 AM, Anurup M wrote: Provide Support for Hisilicon SoC(HiP05/06/07) Hardware event counters. The Hisilicon SoC HiP0x series has many uncore or non-CPU

[PATCH v6 09/11] drivers: perf: hisi: Miscellanous node(MN) event counting in perf

2017-03-09 Thread Anurup M
is -e "hisi_mn_2/read_req/" Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_mn.c | 489 2 files c

[PATCH v6 11/11] dts: arm64: hip07: Add Hisilicon SoC PMU support

2017-03-09 Thread Anurup M
Add nodes for djtag, L3 cache and MN to support uncore events. Signed-off-by: Anurup M <anuru...@huawei.com> --- arch/arm64/boot/dts/hisilicon/hip07.dtsi | 79 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch

[PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-09 Thread Anurup M
. An interval of 10 seconds is used for the hrtimer. Signed-off-by: Dikshit N <dikshi...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- drivers/perf/hisilicon/hisi_uncore_l3c.c | 47 ++ drivers/perf/hisilicon/hisi_uncore_pmu.c | 82 +

[PATCH v6 09/11] drivers: perf: hisi: Miscellanous node(MN) event counting in perf

2017-03-09 Thread Anurup M
d_req/" Signed-off-by: Shaokun Zhang Signed-off-by: Anurup M --- drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_mn.c | 489 2 files changed, 490 insertions(+), 1 deletion(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_

[PATCH v6 11/11] dts: arm64: hip07: Add Hisilicon SoC PMU support

2017-03-09 Thread Anurup M
Add nodes for djtag, L3 cache and MN to support uncore events. Signed-off-by: Anurup M --- arch/arm64/boot/dts/hisilicon/hip07.dtsi | 79 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch/arm64/boot/dts/hisilicon

[PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-09 Thread Anurup M
. An interval of 10 seconds is used for the hrtimer. Signed-off-by: Dikshit N Signed-off-by: Anurup M --- drivers/perf/hisilicon/hisi_uncore_l3c.c | 47 ++ drivers/perf/hisilicon/hisi_uncore_pmu.c | 82 drivers/perf/hisilicon/hisi_uncore_pmu.h | 17

[PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-09 Thread Anurup M
cache hardware events. Each L3 cache banks will be registered as separate PMU with perf. 5. L3C events will be listed at /sys/devices/hisi_l3cX_Y/events/ Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: John Ga

[PATCH v6 10/11] drivers: perf: hisi: use poll method when no IRQ for MN counter overflow

2017-03-09 Thread Anurup M
When no IRQ is supported in hardware, use hrtimer to poll and update event counter and avoid overflow condition for MN PMU. An interval of 8 seconds is used for the hrtimer. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com>

[PATCH v6 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-09 Thread Anurup M
ed-off-by: Tan Xiaojun <tanxiao...@huawei.com> Signed-off-by: John Garry <john.ga...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- drivers/perf/Makefile | 1 + drivers/perf/hisilicon/Makefile | 1 + drivers/perf/

[PATCH v6 10/11] drivers: perf: hisi: use poll method when no IRQ for MN counter overflow

2017-03-09 Thread Anurup M
When no IRQ is supported in hardware, use hrtimer to poll and update event counter and avoid overflow condition for MN PMU. An interval of 8 seconds is used for the hrtimer. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Signed-off-by: Dikshit N --- drivers/perf/hisilicon

[PATCH v6 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-09 Thread Anurup M
-by: John Garry Signed-off-by: Anurup M --- drivers/perf/Makefile | 1 + drivers/perf/hisilicon/Makefile | 1 + drivers/perf/hisilicon/djtag.c | 773 drivers/perf/hisilicon/djtag.h | 42 +++ 4 files changed, 817 insertions(+) create mode

[PATCH v6 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-09 Thread Anurup M
cache hardware events. Each L3 cache banks will be registered as separate PMU with perf. 5. L3C events will be listed at /sys/devices/hisi_l3cX_Y/events/ Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Signed-off-by: John Garry --- drivers/perf/hisilicon/Makefile | 2 +- drivers

[PATCH v6 05/11] drivers: perf: hisi: Update Kconfig for Hisilicon PMU support

2017-03-09 Thread Anurup M
Update Kconfig for HiP05/06/07 PMU support. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: John Garry <john.ga...@huawei.com> --- drivers/perf/Kconfig | 8 1 file changed, 8 insertions(+) diff --

[PATCH v6 05/11] drivers: perf: hisi: Update Kconfig for Hisilicon PMU support

2017-03-09 Thread Anurup M
Update Kconfig for HiP05/06/07 PMU support. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Signed-off-by: John Garry --- drivers/perf/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index 1e95d6a..f0aa818 100644

[PATCH v6 04/11] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-03-09 Thread Anurup M
Documentation for perf usage and Hisilicon SoC PMU uncore events. The Hisilicon SOC has event counters for hardware modules like L3 cache, Miscellaneous node etc. These events are all uncore. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisi

[PATCH v6 04/11] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-03-09 Thread Anurup M
Documentation for perf usage and Hisilicon SoC PMU uncore events. The Hisilicon SOC has event counters for hardware modules like L3 cache, Miscellaneous node etc. These events are all uncore. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang --- Documentation/perf/hisi-pmu.txt | 76

[PATCH v6 03/11] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-03-09 Thread Anurup M
1) Device tree bindings for Hisilicon SoC PMU. 2) Add example for Hisilicon L3 cache and MN PMU. 3) Add child nodes of L3C and MN in djtag bindings example. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Acked-by: Ro

[PATCH v6 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-03-09 Thread Anurup M
From: Tan Xiaojun <tanxiao...@huawei.com> Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun <tanxiao...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings

[PATCH v6 03/11] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-03-09 Thread Anurup M
1) Device tree bindings for Hisilicon SoC PMU. 2) Add example for Hisilicon L3 cache and MN PMU. 3) Add child nodes of L3C and MN in djtag bindings example. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Acked-by: Rob Herring --- .../devicetree/bindings/arm/hisilicon/djtag.txt| 25

[PATCH v6 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-03-09 Thread Anurup M
From: Tan Xiaojun Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun Signed-off-by: Anurup M Acked-by: Rob Herring --- .../devicetree/bindings/arm/hisilicon/djtag.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644

[PATCH v6 01/11] arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support

2017-03-09 Thread Anurup M
Add support for Hisilicon SoC hardware event counters for HiP05/06/07 chip versions. Signed-off-by: Anurup M <anuru...@huawei.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6d7b7a7..c2f9806 100644 --- a/MAINTAINERS

[PATCH v6 01/11] arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support

2017-03-09 Thread Anurup M
Add support for Hisilicon SoC hardware event counters for HiP05/06/07 chip versions. Signed-off-by: Anurup M --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6d7b7a7..c2f9806 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5958,6

[PATCH v6 00/11] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-03-09 Thread Anurup M
counters -Djtag driver is used to access registers of L3 cache and MN. Anurup M (8): arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting

[PATCH v6 00/11] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-03-09 Thread Anurup M
counters -Djtag driver is used to access registers of L3 cache and MN. Anurup M (8): arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting

Re: [PATCH v5 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-03-03 Thread Anurup M
On Friday 03 March 2017 12:20 PM, Rob Herring wrote: On Thu, Mar 02, 2017 at 05:48:36AM -0500, Anurup M wrote: From: Tan Xiaojun <tanxiao...@huawei.com> Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun <tanxiao...@huawei.com> Signed-off-

Re: [PATCH v5 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-03-03 Thread Anurup M
On Friday 03 March 2017 12:20 PM, Rob Herring wrote: On Thu, Mar 02, 2017 at 05:48:36AM -0500, Anurup M wrote: From: Tan Xiaojun Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun Signed-off-by: Anurup M --- .../devicetree/bindings/arm/hisilicon

[RESEND PATCH v5 04/11 (Missed 04/11 in PATCH v5 series)] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-03-02 Thread Anurup M
Documentation for perf usage and Hisilicon SoC PMU uncore events. The Hisilicon SOC has event counters for hardware modules like L3 cache, Miscellaneous node etc. These events are all uncore. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisi

[RESEND PATCH v5 04/11 (Missed 04/11 in PATCH v5 series)] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-03-02 Thread Anurup M
Documentation for perf usage and Hisilicon SoC PMU uncore events. The Hisilicon SOC has event counters for hardware modules like L3 cache, Miscellaneous node etc. These events are all uncore. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang --- Documentation/perf/hisi-pmu.txt | 76

[PATCH v5 10/11] drivers: perf: hisi: use poll method when no IRQ for MN counter overflow

2017-03-02 Thread Anurup M
When no IRQ is supported in hardware, use hrtimer to poll and update event counter and avoid overflow condition for MN PMU. An interval of 8 seconds is used for the hrtimer. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com>

[PATCH v5 10/11] drivers: perf: hisi: use poll method when no IRQ for MN counter overflow

2017-03-02 Thread Anurup M
When no IRQ is supported in hardware, use hrtimer to poll and update event counter and avoid overflow condition for MN PMU. An interval of 8 seconds is used for the hrtimer. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Signed-off-by: Dikshit N --- drivers/perf/hisilicon

[PATCH v5 09/11] drivers: perf: hisi: Miscellanous node(MN) event counting in perf

2017-03-02 Thread Anurup M
is -e "hisi_mn_2/read_req/" Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_mn.c | 489 2 files c

[PATCH v5 09/11] drivers: perf: hisi: Miscellanous node(MN) event counting in perf

2017-03-02 Thread Anurup M
d_req/" Signed-off-by: Shaokun Zhang Signed-off-by: Anurup M --- drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_mn.c | 489 2 files changed, 490 insertions(+), 1 deletion(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_

[PATCH v5 11/11] dts: arm64: hip07: Add Hisilicon SoC PMU support

2017-03-02 Thread Anurup M
Add nodes for djtag, L3 cache and MN to support uncore events. Signed-off-by: Anurup M <anuru...@huawei.com> --- arch/arm64/boot/dts/hisilicon/hip07.dtsi | 79 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch

[PATCH v5 11/11] dts: arm64: hip07: Add Hisilicon SoC PMU support

2017-03-02 Thread Anurup M
Add nodes for djtag, L3 cache and MN to support uncore events. Signed-off-by: Anurup M --- arch/arm64/boot/dts/hisilicon/hip07.dtsi | 79 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch/arm64/boot/dts/hisilicon

[PATCH v5 01/11] arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support

2017-03-02 Thread Anurup M
Add support for Hisilicon SoC hardware event counters for HiP05/06/07 chip versions. Signed-off-by: Anurup M <anuru...@huawei.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d662a83..9bb2ddb 100644 --- a/MAINTAINERS

[PATCH v5 01/11] arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support

2017-03-02 Thread Anurup M
Add support for Hisilicon SoC hardware event counters for HiP05/06/07 chip versions. Signed-off-by: Anurup M --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d662a83..9bb2ddb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5875,6

[PATCH v5 03/11] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-03-02 Thread Anurup M
1) Device tree bindings for Hisilicon SoC PMU. 2) Add example for Hisilicon L3 cache and MN PMU. 3) Add child nodes of L3C and MN in djtag bindings example. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> --- .../devicetree/

[PATCH v5 03/11] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-03-02 Thread Anurup M
1) Device tree bindings for Hisilicon SoC PMU. 2) Add example for Hisilicon L3 cache and MN PMU. 3) Add child nodes of L3C and MN in djtag bindings example. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang --- .../devicetree/bindings/arm/hisilicon/djtag.txt| 25 +++ .../devicetree

[PATCH v5 00/11] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-03-02 Thread Anurup M
is used to access registers of L3 cache and MN. Anurup M (8): arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting. drivers: perf: hisi

[PATCH v5 00/11] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-03-02 Thread Anurup M
is used to access registers of L3 cache and MN. Anurup M (8): arm64: MAINTAINERS: hisi: Add hisilicon SoC PMU support dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting. drivers: perf: hisi

[PATCH v5 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-02 Thread Anurup M
. An interval of 10 seconds is used for the hrtimer. Signed-off-by: Dikshit N <dikshi...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- drivers/perf/hisilicon/hisi_uncore_l3c.c | 47 ++ drivers/perf/hisilicon/hisi_uncore_pmu.c | 82 +

[PATCH v5 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-03-02 Thread Anurup M
. An interval of 10 seconds is used for the hrtimer. Signed-off-by: Dikshit N Signed-off-by: Anurup M --- drivers/perf/hisilicon/hisi_uncore_l3c.c | 47 ++ drivers/perf/hisilicon/hisi_uncore_pmu.c | 82 drivers/perf/hisilicon/hisi_uncore_pmu.h | 17

[PATCH v5 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-02 Thread Anurup M
cache hardware events. Each L3 cache banks will be registered as separate PMU with perf. 5. L3C events will be listed at /sys/devices/hisi_l3cX_Y/events/ Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: John Ga

[PATCH v5 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-02 Thread Anurup M
ed-off-by: Tan Xiaojun <tanxiao...@huawei.com> Signed-off-by: John Garry <john.ga...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- drivers/perf/Makefile | 1 + drivers/perf/hisilicon/Makefile | 1 + drivers/perf/

[PATCH v5 07/11] drivers: perf: hisi: Add support for Hisilicon SoC event counters

2017-03-02 Thread Anurup M
cache hardware events. Each L3 cache banks will be registered as separate PMU with perf. 5. L3C events will be listed at /sys/devices/hisi_l3cX_Y/events/ Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Signed-off-by: John Garry --- drivers/perf/hisilicon/Makefile | 2 +- drivers

[PATCH v5 06/11] drivers: perf: hisi: Add support for Hisilicon Djtag driver

2017-03-02 Thread Anurup M
-by: John Garry Signed-off-by: Anurup M --- drivers/perf/Makefile | 1 + drivers/perf/hisilicon/Makefile | 1 + drivers/perf/hisilicon/djtag.c | 771 drivers/perf/hisilicon/djtag.h | 40 +++ 4 files changed, 813 insertions(+) create mode

[PATCH v5 05/11] drivers: perf: hisi: Update Kconfig for Hisilicon PMU support

2017-03-02 Thread Anurup M
Update Kconfig for HiP05/06/07 PMU support. Signed-off-by: Anurup M <anuru...@huawei.com> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: John Garry <john.ga...@huawei.com> --- drivers/perf/Kconfig | 8 1 file changed, 8 insertions(+) diff --

[PATCH v5 05/11] drivers: perf: hisi: Update Kconfig for Hisilicon PMU support

2017-03-02 Thread Anurup M
Update Kconfig for HiP05/06/07 PMU support. Signed-off-by: Anurup M Signed-off-by: Shaokun Zhang Signed-off-by: John Garry --- drivers/perf/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index 4d5c5f9..5b988f5 100644

[PATCH v5 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-03-02 Thread Anurup M
From: Tan Xiaojun <tanxiao...@huawei.com> Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun <tanxiao...@huawei.com> Signed-off-by: Anurup M <anuru...@huawei.com> --- .../devicetree/bindings/arm/hisilicon/djtag.txt| 51

[PATCH v5 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-03-02 Thread Anurup M
From: Tan Xiaojun Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun Signed-off-by: Anurup M --- .../devicetree/bindings/arm/hisilicon/djtag.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation

Re: [PATCH v4 10/11] drivers: perf: hisi: Handle counter overflow IRQ in MN PMU

2017-03-01 Thread Anurup M
On Friday 24 February 2017 08:34 AM, Anurup M wrote: +static int hisi_mn_init_irqs_fdt(struct device *dev, +struct hisi_pmu *mn_pmu) +{ +struct hisi_mn_data *mn_data = mn_pmu->hwmod_data; +struct hisi_djtag_client *client = mn_data->client; +int irq = -1, nu

Re: [PATCH v4 10/11] drivers: perf: hisi: Handle counter overflow IRQ in MN PMU

2017-03-01 Thread Anurup M
On Friday 24 February 2017 08:34 AM, Anurup M wrote: +static int hisi_mn_init_irqs_fdt(struct device *dev, +struct hisi_pmu *mn_pmu) +{ +struct hisi_mn_data *mn_data = mn_pmu->hwmod_data; +struct hisi_djtag_client *client = mn_data->client; +int irq = -1, nu

Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-02-23 Thread Anurup M
On Tuesday 21 February 2017 05:39 PM, Will Deacon wrote: On Mon, Feb 20, 2017 at 11:09:43AM +, Mark Rutland wrote: On Sun, Feb 19, 2017 at 01:51:03PM -0500, Anurup M wrote: The L3 cache PMU use N-N SPI interrupt which has no support in kernel mainline. Could you elaborate on what you

Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-02-23 Thread Anurup M
On Tuesday 21 February 2017 05:39 PM, Will Deacon wrote: On Mon, Feb 20, 2017 at 11:09:43AM +, Mark Rutland wrote: On Sun, Feb 19, 2017 at 01:51:03PM -0500, Anurup M wrote: The L3 cache PMU use N-N SPI interrupt which has no support in kernel mainline. Could you elaborate on what you

  1   2   3   >