Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH 0/3 v6] Add CPU hotplug support for PAI PMU
@ 2026-08-25  7:29 Thomas Richter
  2026-08-25  7:29 ` [PATCH 1/3] s390/pai: Use PAI PMU index as parameter replacing event Thomas Richter
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Thomas Richter @ 2026-08-25  7:29 UTC (permalink / raw)
  To: linux-s390; +Cc: Thomas Richter

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 <sumanthk@linux.ibm.com>
      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(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/3 v5] Add CPU hotplug support for PAI PMU
@ 2026-08-24 13:17 Thomas Richter
  2026-08-24 13:17 ` [PATCH 2/3] s390/pai: Move locking to event init and delete Thomas Richter
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas Richter @ 2026-08-24 13:17 UTC (permalink / raw)
  To: linux-s390; +Cc: Thomas Richter

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 <sumanthk@linux.ibm.com>
      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 | 186 +++++++++++++++++++++++++-----------
 2 files changed, 132 insertions(+), 55 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/3 v2] Add CPU hotplug support for PAI PMU
@ 2026-08-24 12:23 Thomas Richter
  2026-08-24 12:23 ` [PATCH 2/3] s390/pai: Move locking to event init and delete Thomas Richter
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas Richter @ 2026-08-24 12:23 UTC (permalink / raw)
  To: linux-s390; +Cc: Thomas Richter

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 <sumanthk@linux.ibm.com>
      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 | 178 +++++++++++++++++++++++++-----------
 2 files changed, 124 insertions(+), 55 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/3] Add CPU hotplug support for PAI PMU
@ 2026-08-24  9:20 Thomas Richter
  2026-08-24  9:20 ` [PATCH 2/3] s390/pai: Move locking to event init and delete Thomas Richter
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas Richter @ 2026-08-24  9:20 UTC (permalink / raw)
  To: linux-s390; +Cc: Thomas Richter

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 <sumanthk@linux.ibm.com>
      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 | 178 +++++++++++++++++++++++++-----------
 2 files changed, 124 insertions(+), 55 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-08-25  7:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25  7:29 [PATCH 0/3 v6] Add CPU hotplug support for PAI PMU Thomas Richter
2026-08-25  7:29 ` [PATCH 1/3] s390/pai: Use PAI PMU index as parameter replacing event Thomas Richter
2026-08-25  7:38   ` sashiko-bot
2026-08-25  7:29 ` [PATCH 2/3] s390/pai: Move locking to event init and delete Thomas Richter
2026-08-25  7:43   ` sashiko-bot
2026-08-25  7:29 ` [PATCH 3/3 v6] s390/pai: Support CPU hotplug for PMU PAI Thomas Richter
2026-08-25  7:37   ` sashiko-bot
  -- strict thread matches above, loose matches on Subject: below --
2026-08-24 13:17 [PATCH 0/3 v5] Add CPU hotplug support for PAI PMU Thomas Richter
2026-08-24 13:17 ` [PATCH 2/3] s390/pai: Move locking to event init and delete Thomas Richter
2026-08-24 13:29   ` sashiko-bot
2026-08-24 12:23 [PATCH 0/3 v2] Add CPU hotplug support for PAI PMU Thomas Richter
2026-08-24 12:23 ` [PATCH 2/3] s390/pai: Move locking to event init and delete Thomas Richter
2026-08-24 12:43   ` sashiko-bot
2026-08-24  9:20 [PATCH 0/3] Add CPU hotplug support for PAI PMU Thomas Richter
2026-08-24  9:20 ` [PATCH 2/3] s390/pai: Move locking to event init and delete Thomas Richter
2026-08-24  9:31   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox