The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/6] irqchip: Add NXP S32N79 MRU MSI controller
@ 2026-12-04 12:56 Ghennadi Procopciuc via B4 Relay
  2026-12-04 12:56 ` [PATCH 1/6] dt-bindings: interrupt-controller: " Ghennadi Procopciuc via B4 Relay
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ghennadi Procopciuc via B4 Relay @ 2026-12-04 12:56 UTC (permalink / raw)
  To: Thomas Gleixner, Krzysztof Kozlowski, Sascha Hauer, Rob Herring,
	Frank Li, Conor Dooley
  Cc: Pengutronix Kernel Team, imx, devicetree, NXP S32 Linux Team,
	linux-kernel, Fabio Estevam, Radu Rendec, linux-arm-kernel,
	echanude, clizzi, aruizrui, ghennadi.procopciuc, eballetb

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@oss.nxp.com>
---
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@oss.nxp.com>



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-12-04 19:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 12:56 [PATCH 0/6] irqchip: Add NXP S32N79 MRU MSI controller Ghennadi Procopciuc via B4 Relay
2026-12-04 12:56 ` [PATCH 1/6] dt-bindings: interrupt-controller: " Ghennadi Procopciuc via B4 Relay
2026-12-04 12:56 ` [PATCH 2/6] irqchip: Add NXP S32N79 MRU MSI controller driver Ghennadi Procopciuc via B4 Relay
2026-12-04 17:51   ` Frank Li
2026-12-04 19:26   ` Thomas Gleixner
2026-12-04 12:56 ` [PATCH 3/6] MAINTAINERS: Add entry for " Ghennadi Procopciuc via B4 Relay
2026-12-04 12:56 ` [PATCH 4/6] arm64: dts: s32n79: add MRU MSI controller node Ghennadi Procopciuc via B4 Relay
2026-12-04 12:56 ` [PATCH 5/6] arm64: dts: s32n79-rdb: enable the MRU MSI controller Ghennadi Procopciuc via B4 Relay
2026-12-04 12:56 ` [PATCH 6/6] arm64: dts: s32n79: route the NETC IEP18 MSIs to the MRU Ghennadi Procopciuc via B4 Relay

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