[PATCH v3 0/5] Fix CPU hotplug and SGI cleanup in Xilinx drivers

Prasanna Kumar T S M ptsm at linux.microsoft.com
Thu Dec 3 21:04:48 PST 2026


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




More information about the linux-arm-kernel mailing list