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@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); }
On Tue, 2013-10-08 at 12:20 +0100, Punit Agrawal wrote:
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@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.
Thanks, I've applied this patch to the ARM Landing Team tree, and it should appear in the main linux-linaro tree and daily builds shortly (possibly by tomorrow morning :-).
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); }
linaro-kernel@lists.linaro.org