[PATCH] irqchip/irq-bcm2712-mip: Drop MSI_CHIP_FLAG_SET_ACK

Andrea della Porta andrea.porta at suse.com
Wed Nov 25 03:43:59 PST 2026


Hi Joshua,

On 16:38 Sat 21 Nov     , Joshua Covington wrote:
> Commit f35508b93a2f ("irqchip/irq-bcm2712-mip: Set EOI/ACK flags in
> msi_parent_ops") made the PCI MSI device chips ack through
> irq_chip_ack_parent(). Neither the MIP middle chip nor the GIC below it
> implements irq_ack, so any ack is a NULL pointer call.
> 
> The MIP vectors are handled by handle_fasteoi_irq(), which never acks,
> so this only shows when mask_ack_irq() runs, e.g. when a chained
> handler is removed. The RP1 driver does that on every teardown since
> commit 82aa033fef52 ("misc: rp1: clear chained IRQ handlers on
> teardown"), and the kernel panics:
> 
>   pc : 0x0
>   lr : irq_chip_ack_parent+0x1c/0x28
>   Call trace:
>    __irq_do_set_handler+0x248/0x24c
>    irq_set_chained_handler_and_data+0x6c/0x94
>    rp1_unregister_interrupts+0x3c/0xa8
> 
> The MIP hierarchy has no use for an ack, like the drivers fixed by
> commit fb0ea6e4878a ("irqchip: Drop MSI_CHIP_FLAG_SET_ACK from
> unsuspecting MSI drivers").
> 
> Fixes: f35508b93a2f ("irqchip/irq-bcm2712-mip: Set EOI/ACK flags in msi_parent_ops")
> Signed-off-by: Joshua Covington <joshuacov at gmail.com>
> ---
> The panic was reported on BCM2712 with 6.18.61 and later when the
> rp1_pci probe fails (https://github.com/openwrt/openwrt/pull/26530#issuecomment-6975561491).
> Tested on a Raspberry Pi CM5 with 6.18.64 and the Raspberry Pi
> downstream patches: with this patch, unbinding and binding rp1_pci
> again completes without a panic. Applies unchanged to v7.4-rc3 and
> builds there without warnings (W=1, GCC 13 and clang 18).
> 
>  drivers/irqchip/irq-bcm2712-mip.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/irqchip/irq-bcm2712-mip.c b/drivers/irqchip/irq-bcm2712-mip.c
> index 06a6ab627..12d9e3846 100644
> --- a/drivers/irqchip/irq-bcm2712-mip.c
> +++ b/drivers/irqchip/irq-bcm2712-mip.c
> @@ -163,7 +163,7 @@ static const struct irq_domain_ops mip_middle_domain_ops = {
>  static const struct msi_parent_ops mip_msi_parent_ops = {
>  	.supported_flags	= MIP_MSI_FLAGS_SUPPORTED,
>  	.required_flags		= MIP_MSI_FLAGS_REQUIRED,
> -	.chip_flags		= MSI_CHIP_FLAG_SET_EOI | MSI_CHIP_FLAG_SET_ACK,
> +	.chip_flags		= MSI_CHIP_FLAG_SET_EOI,
>  	.bus_select_token       = DOMAIN_BUS_GENERIC_MSI,
>  	.bus_select_mask	= MATCH_PCI_MSI,
>  	.prefix			= "MIP-MSI-",

Reviewed-by: Andrea della Porta <andrea.porta at suse.com>

> -- 
> 2.43.0
> 



More information about the linux-arm-kernel mailing list