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, num_irqs,

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, num_irqs,

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

2017-02-23 Thread Anurup M
Sorry for delay in reply. On Tuesday 21 February 2017 05:33 PM, Mark Rutland wrote: On Tue, Feb 21, 2017 at 05:19:58PM +0530, Anurup M wrote: On Monday 20 February 2017 04:59 PM, Mark Rutland wrote: On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: + /* Clear

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

2017-02-23 Thread Anurup M
Sorry for delay in reply. On Tuesday 21 February 2017 05:33 PM, Mark Rutland wrote: On Tue, Feb 21, 2017 at 05:19:58PM +0530, Anurup M wrote: On Monday 20 February 2017 04:59 PM, Mark Rutland wrote: On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: + /* Clear

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

2017-02-21 Thread Mark Rutland
On Tue, Feb 21, 2017 at 05:19:58PM +0530, Anurup M wrote: > On Monday 20 February 2017 04:59 PM, Mark Rutland wrote: > >On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: > >>+ /* Clear the IRQ status flag */ > >>+ hisi_djtag_writereg(module_id,

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

2017-02-21 Thread Mark Rutland
On Tue, Feb 21, 2017 at 05:19:58PM +0530, Anurup M wrote: > On Monday 20 February 2017 04:59 PM, Mark Rutland wrote: > >On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: > >>+ /* Clear the IRQ status flag */ > >>+ hisi_djtag_writereg(module_id,

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

2017-02-21 Thread Anurup M
On Monday 20 February 2017 04:59 PM, Mark Rutland wrote: Hi, On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: +static irqreturn_t hisi_pmu_mn_isr(int irq, void *dev_id) +{ + struct hisi_pmu *mn_pmu = dev_id; + struct hisi_mn_data *mn_data = mn_pmu->hwmod_data; +

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

2017-02-21 Thread Anurup M
On Monday 20 February 2017 04:59 PM, Mark Rutland wrote: Hi, On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: +static irqreturn_t hisi_pmu_mn_isr(int irq, void *dev_id) +{ + struct hisi_pmu *mn_pmu = dev_id; + struct hisi_mn_data *mn_data = mn_pmu->hwmod_data; +

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

2017-02-20 Thread Mark Rutland
Hi, On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: > +static irqreturn_t hisi_pmu_mn_isr(int irq, void *dev_id) > +{ > + struct hisi_pmu *mn_pmu = dev_id; > + struct hisi_mn_data *mn_data = mn_pmu->hwmod_data; > + struct hisi_djtag_client *client = mn_data->client; > +

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

2017-02-20 Thread Mark Rutland
Hi, On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: > +static irqreturn_t hisi_pmu_mn_isr(int irq, void *dev_id) > +{ > + struct hisi_pmu *mn_pmu = dev_id; > + struct hisi_mn_data *mn_data = mn_pmu->hwmod_data; > + struct hisi_djtag_client *client = mn_data->client; > +

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

2017-02-19 Thread Anurup M
MN1 support IRQ for counter overflow handling. MN1 use the index 26 of the Fabric Totem IRQ. The interrupt parent will be Hisilicon Mbigen-v2. The interrupt type is LPI. Signed-off-by: Shaokun Zhang Signed-off-by: Anurup M ---

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

2017-02-19 Thread Anurup M
MN1 support IRQ for counter overflow handling. MN1 use the index 26 of the Fabric Totem IRQ. The interrupt parent will be Hisilicon Mbigen-v2. The interrupt type is LPI. Signed-off-by: Shaokun Zhang Signed-off-by: Anurup M --- drivers/perf/hisilicon/hisi_uncore_mn.c | 121