Thread (4 messages) 4 messages, 1 author, 2017-02-03

[PATCHv2 0/3] drivers/perf: arm_pmu: rework IRQ management

flat view
STALE3549d SUPERSEDED

From: mark.rutland@arm.com (Mark Rutland)
Date: 2017-02-03 14:58:20

Revision v2 of 4 in this series.

Revisions (4)
  1. v1 [diff vs current]
  2. v2 current
  3. v1 [diff vs current]
  4. v4 [diff vs current]
For historical reasons, we lazily request and free interrupts in the
arm_pmu driver, managing affinity at request time. Unfortunately, this
is not well balanced w.r.t. CPU hotplug, resulting in a number of
issues.

This series addresses this by reworking the way we manage interrupts,
splitting request/free from affinity management. This renders some code
redundant, and said code is removed.

I've given this a spin on a Juno R1 system and another system which uses PPIs.
I've verified that the IRQ affinity is as expected after CPUs are brought
online. I've also run basic perf queries and the perf fuzzer, both in parallel
with random hotplug events.

Since v1 [1]:
* Free resources correctly.
* Remove unused fields from struct arm_pmu.
* Improve messages when parsing IRQs.

Thanks,
Mark.

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/484285.html

Mark Rutland (3):
  drivers/perf: arm_pmu: rework per-cpu allocation
  drivers/perf: arm_pmu: manage interrupts per-cpu
  drivers/perf: arm_pmu: split irq request from enable

 drivers/perf/arm_pmu.c       | 465 ++++++++++++++++++++-----------------------
 include/linux/perf/arm_pmu.h |   7 +-
 2 files changed, 223 insertions(+), 249 deletions(-)

-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help