Skip to content

Add CPU hotplug support for PAI PMU

Thomas Richter linux-s390 stable 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest3 patches 2 repliesIn review
  2. v83 patches 4 repliesSuperseded
  3. v63 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v53 patches0 repliesSuperseded
v23 patches0 repliesSuperseded
v13 patches0 repliesSuperseded

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3s390/pai: Use PAI PMU index as parameter replacing eventarch/s390/kernel/perf_pai.c+12 -130 replies
2/3s390/pai: Move locking to event init and deletearch/s390/kernel/perf_pai.c+12 -130 replies
3/3s390/pai: Support CPU hotplug for PMU PAIarch/s390/include/asm/pai.h arch/s390/kernel/perf_pai.c+126 -482 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSumanth KorikkarJan Polensky
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 0/3] Add CPU hotplug support for PAI PMU

V9: Added suggestions from Heiko Carsten
- Changed coding style in patch 3.

V8: Add patch version 8 (v8) to each subject line

V7: Add findings from Jan Polensky
- Fixed spelling in code and commit messages.
- Added correct Cc: stable tag.

V6: Add findings from Sashiko
- Remove cpus_read_lock() and cpus_read_unlock() invocations from CPU hotplug handlers in patch 3.

V5: Add findings from Sashiko
- Add cpus_read_lock() and cpus_read_unlock() in patch 3.

V4: Add findings from Sumanth and updated patch 3/3.
- Fix reference count for CPU hotplug remove while multiple per-task events are active.

V3: Add findings from Sumanth and updated patch 3/3.
- Refined Fixes: commit id and messages
- Handle cpuhp_setup_state() failure

V2: Add findings from Sumanth and updated patch 3/3.
- handle possible NULL pointer dereference in pai_event_destroy_cpu()
- handle possibe memory allocation failure in pai_online_cpu()
- add Reviewed-by: Sumanth Korikkar <[email protected]> to patch 1/3 and patch 2/3.

Add support for CPU hotplug add and remove for PAI PMU.

Patch 1: Change function argument list Patch 2: Move locking from CPU scope to event scope Patch 3: Add CPU hotplug handler

Thomas Richter (3):
s390/pai: Use PAI PMU index as parameter replacing event s390/pai: Move locking to event init and delete s390/pai: Support CPU hotplug for PMU PAI

 arch/s390/include/asm/pai.h |   1 -
 arch/s390/kernel/perf_pai.c | 182 +++++++++++++++++++++++++-----------
 2 files changed, 128 insertions(+), 55 deletions(-)
Signature · 1 line
2.55.0