diff options
author | Zeev Zilberman <zeev@amazon.com> | 2019-06-10 13:52:01 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-06-11 12:14:35 +0100 |
commit | 90b4c55586155cf13bbafbd4e55327f89681859d (patch) | |
tree | fb1093057d515ae1e24ab38f104f00f5131af1f0 /drivers/irqchip/irq-gic-v3.c | |
parent | 4770533f71de8d1891795d92b55633d82a80f882 (diff) | |
download | lwn-90b4c55586155cf13bbafbd4e55327f89681859d.tar.gz lwn-90b4c55586155cf13bbafbd4e55327f89681859d.zip |
irqchip/gic-v2m: Add support for Amazon Graviton variant of GICv3+GICv2m
Add support for Amazon Graviton custom variant of GICv2m, where the message
is encoded using the MSI message address, as opposed to standard
GICv2m, where the SPI number is encoded in the MSI message data.
In addition, the Graviton flavor of GICv2m is used along GICv3 (and not
GICv2).
Co-developed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Zeev Zilberman <zeev@amazon.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index f44cd89cfc40..1282f81696b2 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -1343,6 +1343,9 @@ static int __init gic_init_bases(void __iomem *dist_base, if (gic_dist_supports_lpis()) { its_init(handle, &gic_data.rdists, gic_data.domain); its_cpu_init(); + } else { + if (IS_ENABLED(CONFIG_ARM_GIC_V2M)) + gicv2m_init(handle, gic_data.domain); } if (gic_prio_masking_enabled()) { |