[PATCH 0/6] irqchip: Add NXP S32N79 MRU MSI controller
From: Ghennadi Procopciuc via B4 Relay
Date: Fri Dec 04 2026 - 07:57:42 EST
On S32N79, a hardware erratum prevents the MSI and MSI-X writes of the
integrated NETC endpoints from being translated by the GIC ITS, so their
interrupts never fire. The PCIe controllers of the SoC are not affected
and keep using the ITS.
This series uses the Message Receive Unit (MRU) blocks as the MSI
controller for the NETC endpoints instead. An MRU instance has three
channels, each with its own 64 KiB mailbox page. A write to the first
mailbox of a channel raises the channel interrupt, and the channel
interrupts of an instance are ORed into one GIC SPI.
The driver groups several MRU instances into one MSI parent domain:
- Each vector gets a channel of its own, so PCI functions that are
isolated by the IOMMU cannot write to each other's mailboxes.
- The channels of all the instances are handed out channel index first,
so consecutive vectors land on different MRUs and different SPIs.
- When the endpoint sits behind an IOMMU, the mailbox page is mapped
with iommu_dma_prepare_msi(). That helper is not exported, so the
driver can only be built in.
Patches 1-3 are meant for the irqchip tree and patches 4-6 for the
i.MX/S32 DT tree. Patches 1-5 apply on mainline as they are.
Patch 6 depends on commit 821b90b0e9cb ("arm64: dts: s32n79: add NETC
IEP18 ECAM node for ENETC PPM ports"), which is only in net-next for now.
The series is based on net-next/main for that reason. Patch 6 can only be
applied to the i.MX/S32 DT tree once that commit has reached mainline.
Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@xxxxxxxxxxx>
---
Ghennadi Procopciuc (6):
dt-bindings: interrupt-controller: Add NXP S32N79 MRU MSI controller
irqchip: Add NXP S32N79 MRU MSI controller driver
MAINTAINERS: Add entry for NXP S32N79 MRU MSI controller driver
arm64: dts: s32n79: add MRU MSI controller node
arm64: dts: s32n79-rdb: enable the MRU MSI controller
arm64: dts: s32n79: route the NETC IEP18 MSIs to the MRU
.../interrupt-controller/nxp,s32n79-mru-msi.yaml | 86 +++++
MAINTAINERS | 9 +
arch/arm64/boot/dts/freescale/s32n79-rdb.dts | 4 +
arch/arm64/boot/dts/freescale/s32n79.dtsi | 32 +-
drivers/irqchip/Kconfig | 21 ++
drivers/irqchip/Makefile | 1 +
drivers/irqchip/irq-mru-msi.c | 402 +++++++++++++++++++++
7 files changed, 554 insertions(+), 1 deletion(-)
---
base-commit: 5f049e811762d6784392d9984ce910257224824b
change-id: 20261126-b4-s32n79-mru-msi-4e65b0fc7f98
Best regards,
--
Ghennadi Procopciuc <ghennadi.procopciuc@xxxxxxxxxxx>