]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/riscv-intc: Mark all INTC nodes as initialized
authorAnup Patel <apatel@ventanamicro.com>
Tue, 3 Oct 2023 04:43:51 +0000 (10:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 16:26:45 +0000 (17:26 +0100)
commitc57aef9075e0d368c4401aa34aa381d3849be573
treef515068efa85ec220c2f369aa8a48fa0589b269b
parenteb99b6e204cdd6393ef6f0d21c8a89652365447b
irqchip/riscv-intc: Mark all INTC nodes as initialized

[ Upstream commit e13cd66bd821be417c498a34928652db4ac6b436 ]

The RISC-V INTC local interrupts are per-HART (or per-CPU) so we
create INTC IRQ domain only for the INTC node belonging to the boot
HART. This means only the boot HART INTC node will be marked as
initialized and other INTC nodes won't be marked which results
downstream interrupt controllers (such as PLIC, IMSIC and APLIC
direct-mode) not being probed due to missing device suppliers.

To address this issue, we mark all INTC node for which we don't
create IRQ domain as initialized.

Reported-by: Dmitry Dunaev <dunaev@tecon.ru>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230926102801.1591126-1-dunaev@tecon.ru
Link: https://lore.kernel.org/r/20231003044403.1974628-4-apatel@ventanamicro.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-riscv-intc.c