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

2016-11-14 Thread Anurup M
On Friday 11 November 2016 12:40 AM, Mark Rutland wrote: On Thu, Nov 03, 2016 at 01:42:03AM -0400, Anurup M wrote: + do { + /* Get count from individual L3C banks and sum them up */ + for (i = 0; i < num_banks; i++) { + total_raw_count +=

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

2016-11-10 Thread Mark Rutland
On Thu, Nov 03, 2016 at 01:42:03AM -0400, Anurup M wrote: > + do { > + /* Get count from individual L3C banks and sum them up */ > + for (i = 0; i < num_banks; i++) { > + total_raw_count += hisi_read_l3c_counter(l3c_hwmod_data, > +

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

2016-11-02 Thread Anurup M
1. Hip05/06/07 uncore PMU to support different hardware event counters. 2. Hisilicon PMU shall use the DJTAG hardware interface to access hardware event counters and configuration register. 3. Routines to initialize and setup PMU. 4.