The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Fix CPU hotplug and SGI cleanup in Xilinx drivers
@ 2026-12-04  5:04 Prasanna Kumar T S M
  2026-12-04  5:04 ` [PATCH v3 1/5] mailbox: zynqmp-ipi: Fix CPU hotplug state cleanup Prasanna Kumar T S M
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Prasanna Kumar T S M @ 2026-12-04  5:04 UTC (permalink / raw)
  To: ptsm, jassisinghbrar, michal.simek, tanmay.shah, saeed.nowshadi,
	linux-kernel, linux-arm-kernel, ssengar, tgopinath, srivatsa,
	jay.buddhabhatti, gregkh, radheys

Both the ZynqMP IPI mailbox driver and the Xilinx event management
driver register dynamic CPU hotplug callbacks using CPUHP_AP_ONLINE_DYN,
but discard the allocated state ID and later attempt to remove
CPUHP_AP_ONLINE_DYN directly. This leaves the actual callbacks dangling
after driver removal and ignores hotplug registration failures.

This series fixes CPU hotplug state tracking and SGI teardown in both
drivers.

Changes since v2:
- Return cpuhp_setup_state() error directly from xlnx_mbox_init_sgi()
  and leave SGI teardown to the caller, as discussed on v1.
- Split the request_percpu_irq() / unmapped virq_sgi cleanup fix into
  a separate patch.
- Add cleanup patches for both drivers to remove the now-redundant
  on_each_cpu(xlnx_disable_percpu_irq, ...) calls.

Link to v2: https://lore.kernel.org/lkml/20261130094513.2454356-1-ptsm@linux.microsoft.com/.

Prasanna Kumar T S M (5):
  mailbox: zynqmp-ipi: Fix CPU hotplug state cleanup
  mailbox: zynqmp-ipi: Fix SGI cleanup on request_percpu_irq() failure
  mailbox: zynqmp-ipi: Remove redundant percpu IRQ disable
  soc: xilinx: Fix event manager CPU hotplug state cleanup
  soc: xilinx: Remove redundant percpu IRQ disable

 drivers/mailbox/zynqmp-ipi-mailbox.c    | 35 ++++++++++++-------------
 drivers/soc/xilinx/xlnx_event_manager.c | 22 ++++++++--------
 2 files changed, 28 insertions(+), 29 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2026-12-04  5:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  5:04 [PATCH v3 0/5] Fix CPU hotplug and SGI cleanup in Xilinx drivers Prasanna Kumar T S M
2026-12-04  5:04 ` [PATCH v3 1/5] mailbox: zynqmp-ipi: Fix CPU hotplug state cleanup Prasanna Kumar T S M
2026-12-04  5:04 ` [PATCH v3 2/5] mailbox: zynqmp-ipi: Fix SGI cleanup on request_percpu_irq() failure Prasanna Kumar T S M
2026-12-04  5:04 ` [PATCH v3 3/5] mailbox: zynqmp-ipi: Remove redundant percpu IRQ disable Prasanna Kumar T S M
2026-12-04  5:04 ` [PATCH v3 4/5] soc: xilinx: Fix event manager CPU hotplug state cleanup Prasanna Kumar T S M
2026-12-04  5:04 ` [PATCH v3 5/5] soc: xilinx: Remove redundant percpu IRQ disable Prasanna Kumar T S M

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