APCI: irq: Add support for multiple GSI domains
authorMarc Zyngier <maz@kernel.org>
Wed, 20 Jul 2022 10:51:21 +0000 (18:51 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Jul 2022 11:05:17 +0000 (12:05 +0100)
commit7327b16f5f56741960e11ae4d7ef0ffdff5fd252
tree169d526622918c08704acd2d0275db446b8bbaa6
parentaf6a1cfa6859dab4a843ea07f1c2f04938f1715b
APCI: irq: Add support for multiple GSI domains

In an unfortunate departure from the ACPI spec, the LoongArch
architecture split its GSI space across multiple interrupt
controllers.

In order to be able to reuse the core code and prevent
architectures from reinventing an already square wheel, offer
the arch code the ability to register a dispatcher function
that will return the domain fwnode for a given GSI.

The ARM GIC drivers are updated to support this (with a single
domain, as intended).

Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Hanjun Guo <guohanjun@huawei.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1658314292-35346-3-git-send-email-lvjianmin@loongson.cn
drivers/acpi/irq.c
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c
include/linux/acpi.h