On Tue, Dec 03 2024 at 17:27, Andrew Jones wrote: > On Tue, Dec 03, 2024 at 02:53:45PM +0100, Thomas Gleixner wrote: >> On Thu, Nov 14 2024 at 17:18, Andrew Jones wrote: >> The whole IMSIC MSI support can be moved over to MSI LIB which makes all >> of this indirection go away and your intermediate domain will just fit >> in. >> >> Uncompiled patch below. If that works, it needs to be split up properly. > > Thanks Thomas. I gave your patch below a go, but we now fail to have an > msi domain set up when probing devices which go through aplic_msi_setup(), > resulting in an immediate NULL deference in > msi_create_device_irq_domain(). I'll look closer tomorrow. Duh! I forgot to update the .select callback. I don't know how you fixed that compile fail up. Delta patch below. Thanks, tglx --- --- a/drivers/irqchip/irq-riscv-imsic-platform.c +++ b/drivers/irqchip/irq-riscv-imsic-platform.c @@ -180,7 +180,7 @@ static void imsic_irq_debug_show(struct static const struct irq_domain_ops imsic_base_domain_ops = { .alloc = imsic_irq_domain_alloc, .free = imsic_irq_domain_free, - .select = imsic_irq_domain_select, + .select = msi_lib_irq_domain_select, #ifdef CONFIG_GENERIC_IRQ_DEBUGFS .debug_show = imsic_irq_debug_show, #endif