[PATCH 0/3] irqchip/bcm2712-mip: Expose all 20 MIP1 outputs
From: Nicolai Buchwitz
Date: Wed Dec 02 2026 - 05:12:54 EST
This series makes all 20 outputs of MIP1 (the MSI controller of BCM2712's
pcie1) usable. Previously it was limited to only 8 of them.
The remaining outputs are routed to GIC SPIs which are not contiguous, so
a single msi-ranges entry can't describe them. Jonathan from Raspberry Pi
checked the mapping against the Broadcom documentation they have and
confirmed my measurements [1]. The mapping applies to all revisions of
BCM2712, as every rpi-eeprom release for Pi 5 sets the enable bit on C1
and D0 has it hardwired [1].
Patch 1 extends the binding to allow multiple msi-ranges entries, patch 2
adds support for them to the driver and patch 3 adds the missing outputs
to bcm2712.dtsi. DTs with a single range keep working as before. The
series is based on tip irq/drivers, as it depends on e5cd48011ba4
("irqchip/bcm2712-mip: Fix multi-MSI allocation for non-power-of-two
counts").
Please let me know how the patches should ideally be routed. I guess
Florian will take the DTS patch through the Broadcom tree and the other
two will go through the irq tree?
An earlier version of this patchset has already been merged in the
Raspberry Pi downstream kernel [2] and was also tested there. Additionally
I've tested the series on a Revolution Pi Connect 5 (CM5), which has three
LAN7430 (6 MSI-X vectors each) behind a Diodes PCIe switch. With DPC
enabled the switch ports take another 6 outputs. Vectors per NIC:
8 outputs 20 outputs
--------------------------------------------
without DPC 6, 2, INTx 6, 6, 6
with DPC 2, INTx, INTx 6, 6, 2
As the RC MSI interrupt can't be pinned to a certain core, more MIP outputs
are beneficial for our industrial Ethernet applications. Multiple NVMe
drives or custom FPGA designs [3] would benefit from these changes as well.
[1] https://github.com/raspberrypi/linux/pull/7729#issuecomment-6581536952
https://github.com/raspberrypi/linux/pull/7729#issuecomment-6581999696
[2] https://github.com/raspberrypi/linux/pull/7729
[3] https://forums.raspberrypi.com/viewtopic.php?t=398134
Signed-off-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
---
Nicolai Buchwitz (3):
dt-bindings: interrupt-controller: brcm,bcm2712-msix: Allow multiple ranges
irqchip/bcm2712-mip: Support multiple MSI ranges
arm64: dts: broadcom: bcm2712: Expose all 20 MIP1 outputs
.../interrupt-controller/brcm,bcm2712-msix.yaml | 16 +++-
arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 13 ++-
drivers/irqchip/irq-bcm2712-mip.c | 105 ++++++++++++++-------
3 files changed, 95 insertions(+), 39 deletions(-)
---
base-commit: 21f3995610426ef9c930b49b1e8e21eb771d8568
change-id: 20261202-nb-bcm2712-mip-msi-ranges-74e4c68a87e0
Best regards,
--
Nicolai Buchwitz <nb@xxxxxxxxxxx>