Interrupt controller ipi and extioi on LoongArch system can send
intterrupt to multiple CPUs, physical cpu id is used to route interrupt
for CPUs.

With cpu hotplug feature in future, notification with ipi and extioi
interrupt controller is required. Since there is common Notifier API for
CPU hotplug, cpu hotplug interface is added on ipi and extioi class for
notification usage.

With CPU hotplug event notfication, gpio irq line is connected to cpu irq
line, and irq routing for irqchip is setup.

---
  v1 .. v2:
    1. Combine patchset ipi and extioi irq routing enhancement together
    2. Rebase patch based on latest version
---
Bibo Mao (7):
  hw/intc/loongarch_ipi: Add basic hotplug framework
  hw/intc/loongarch_ipi: Implment cpu hotplug interface
  hw/intc/loongarch_ipi: Notify ipi object when cpu is plugged
  hw/intc/loongarch_extioi: Move gpio irq initial to common code
  hw/intc/loongarch_extioi: Add basic hotplug framework
  hw/intc/loongarch_extioi: Implment cpu hotplug interface
  hw/intc/loongarch_extioi: Use cpu plug notification

 hw/intc/loongarch_extioi.c        |  8 +--
 hw/intc/loongarch_extioi_common.c | 84 ++++++++++++++++++++++++++++++-
 hw/intc/loongarch_ipi.c           | 71 ++++++++++++++++++++++++++
 hw/loongarch/virt.c               | 17 ++-----
 4 files changed, 159 insertions(+), 21 deletions(-)

-- 
2.39.3


Reply via email to