Re: [PATCH V13 01/13] APCI: irq: Add support for multiple GSI domains

From: Hanjun Guo
Date: Tue Jun 28 2022 - 08:50:17 EST


On 2022/6/27 19:39, Jianmin Lv wrote:
From: Marc Zyngier <maz@xxxxxxxxxx>

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 sthe core code and prevent

s/sthe/the

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@xxxxxxxxxx>
Cc: Hanjun Guo <guohanjun@xxxxxxxxxx>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
Signed-off-by: Jianmin Lv <lvjianmin@xxxxxxxxxxx>
---
drivers/acpi/irq.c | 40 +++++++++++++++++++++++++---------------
drivers/irqchip/irq-gic-v3.c | 18 ++++++++++++------
drivers/irqchip/irq-gic.c | 18 ++++++++++++------
include/linux/acpi.h | 2 +-

Reviewed-by: Hanjun Guo <guohanjun@xxxxxxxxxx>

I tested this patch on a GICv3 based ARM64 server, no
regressions were found,

Tested-by: Hanjun Guo <guohanjun@xxxxxxxxxx>

Thanks
Hanjun