perf: xgene: Add support for SoC PMU version 3
authorHoan Tran <hotran@apm.com>
Thu, 22 Jun 2017 18:26:05 +0000 (19:26 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 22 Jun 2017 19:16:34 +0000 (20:16 +0100)
commitc0f7f7acdecdd7cf9a19c0af5c3dc649e1b934f7
treea0944b542034f6510036cf54e11e29897f208b7a
parente35e0a04a9965bcb4fffe4375baaecd408ad2357
perf: xgene: Add support for SoC PMU version 3

This patch adds support for SoC-wide (AKA uncore) Performance Monitoring
Unit version 3.

It can support up to
 - 2 IOB PMU instances
 - 8 L3C PMU instances
 - 2 MCB PMU instances
 - 8 MCU PMU instances
and these PMUs support 64 bit counter

Signed-off-by: Hoan Tran <hotran@apm.com>
[Mark: stop counters in _xgene_pmu_isr()]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[will: make xgene_pmu_v3_ops static]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/xgene_pmu.c