Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip/irq-bcm2712-mip: Drop MSI_CHIP_FLAG_SET_ACK
@ 2026-11-21 16:38 Joshua Covington
  0 siblings, 0 replies; only message in thread
From: Joshua Covington @ 2026-11-21 16:38 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Florian Fainelli, Radu Rendec,
	Broadcom internal kernel review list, Stanimir Varbanov,
	Andrea della Porta, Pengpeng Hou, linux-arm-kernel,
	linux-rpi-kernel, linux-kernel, Joshua Covington

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@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-",
-- 
2.43.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-21 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 16:38 [PATCH] irqchip/irq-bcm2712-mip: Drop MSI_CHIP_FLAG_SET_ACK Joshua Covington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox