mbox series

[v2,0/7] hw/loongarch/virt: CPU irq routing enhancement

Message ID 20250210093632.3274012-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series hw/loongarch/virt: CPU irq routing enhancement | expand

Message

Bibo Mao Feb. 10, 2025, 9:36 a.m. UTC
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(-)

Comments

Philippe Mathieu-Daudé Feb. 10, 2025, 10:41 a.m. UTC | #1
Cc'ing Igor for vCPU hotplugging expertise.

On 10/2/25 10:36, Bibo Mao wrote:
> 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(-)
>