The CCI PMU is not a CPU PMU. As such the CCI PMU events can be
initiate from any proocessor. Set the valid_cpus mask to indicate
this.
Signed-off-by: Punit Agrawal <punit.agrawal(a)arm.com>
---
(using the correct list-address. Please ignore the previous mail if you
get a duplicate)
Hi Tixy,
Please pick this patch - it is required for the Linaro kernels to be
able to use CCI PMU.
The patch is based on top of your integration-linux-vexpress branch.
Cheers,
Punit
drivers/bus/arm-cci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c
index 57b0bc6..7363c7e 100644
--- a/drivers/bus/arm-cci.c
+++ b/drivers/bus/arm-cci.c
@@ -545,6 +545,7 @@ static int cci_pmu_init(struct arm_pmu *cci_pmu, struct platform_device *pdev)
cci_pmu->plat_device = pdev;
cci_pmu->num_events = pmu_get_max_counters();
+ cpumask_setall(&cci_pmu->valid_cpus);
return armpmu_register(cci_pmu, -1);
}
--
1.7.10.4
Hi Ben,
Here are couple more big endian related fixes. We run into these
with vexpress TC2 board, when CONFIG_MCPM and CONFIG_ARM_CCI configs
are enabled. Big endian image fails to boot. With fixes BE TC2
boots and it sees all 5 cores (2xA15, 3xA7).
These were tested with vexpress TC2 on latest linux-linaro
branch (include BE patch series) and it was tested on very
recent rmk/fixes branch along with BE series on top of it.
Thanks,
Victor
Victor Kamensky (2):
ARM: mcpm: fix big endian issue in mcpm startup code
ARM: cci: driver need big endian fixes in asm code
arch/arm/common/mcpm_head.S | 2 ++
drivers/bus/arm-cci.c | 6 ++++++
2 files changed, 8 insertions(+)
--
1.8.1.4