]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit510f964fb8cf0c8fba6e88da97702f61a97bf18a
tree169d526622918c08704acd2d0275db446b8bbaa6
parent3dd7443a968323b617784710ac863aeacaac7d18
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