Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1437627
| From | Will Deacon <will.deacon@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drivers/perf: arm-pmu: Handle per-interrupt affinity mask |
| Date | 2016-07-06 12:50 +0200 |
| Message-ID | <rRSyZ-850-19@gated-at.bofh.it> (permalink) |
| References | <rQ6G6-79F-47@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jul 01, 2016 at 02:21:31PM +0100, Marc Zyngier wrote:
> On a big-little system, PMUs can be wired to CPUs using per CPU
> interrups (PPI). In this case, it is important to make sure that
> the enable/disable do happen on the right set of CPUs.
>
> So instead of relying on the interrupt-affinity property, we can
> use the actual percpu affinity that DT exposes as part of the
> interrupt specifier. The DT binding is also updated to reflect
> the fact that the interrupt-affinity property shouldn't be used
> in that case.
[...]
> - /* If we didn't manage to parse anything, claim to support all CPUs */
> - if (cpumask_weight(&pmu->supported_cpus) == 0)
> - cpumask_setall(&pmu->supported_cpus);
> + /* If we didn't manage to parse anything, try the interrupt affinity */
> + if (cpumask_weight(&pmu->supported_cpus) == 0) {
> + if (!using_spi) {
> + /* If using PPIs, check the affinity of the partition */
> + int irq = platform_get_irq(pdev, 0);
> + irq_get_percpu_devid_partition(irq,
> + &pmu->supported_cpus);
Should we not at least propagate the failure if this returns -EINVAL?
Will
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] drivers/perf: arm-pmu: Handle per-interrupt affinity mask Marc Zyngier <marc.zyngier@arm.com> - 2016-07-01 15:30 +0200
Re: [PATCH] drivers/perf: arm-pmu: Handle per-interrupt affinity mask Caesar Wang <wxt@rock-chips.com> - 2016-07-01 17:10 +0200
Re: [PATCH] drivers/perf: arm-pmu: Handle per-interrupt affinity mask Rob Herring <robh@kernel.org> - 2016-07-05 16:30 +0200
Re: [PATCH] drivers/perf: arm-pmu: Handle per-interrupt affinity mask Will Deacon <will.deacon@arm.com> - 2016-07-06 12:50 +0200
Re: [PATCH] drivers/perf: arm-pmu: Handle per-interrupt affinity mask Marc Zyngier <marc.zyngier@arm.com> - 2016-07-06 16:20 +0200
csiph-web