]> git.ipfire.org Git - thirdparty/linux.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)
committerMarc Zyngier <maz@kernel.org>
Sat, 7 Oct 2023 11:47:12 +0000 (12:47 +0100)
commite13cd66bd821be417c498a34928652db4ac6b436
treea5277756e89222d3bb1387a5a61f85578ed3011e
parent3a0fff0fb6a3861fa05416f21858cf0c75cbf944
irqchip/riscv-intc: Mark all INTC nodes as initialized

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
drivers/irqchip/irq-riscv-intc.c