Skip to content

Add Xilinx Versal NET SMMU CSR interrupt controller support

Tushar Nimkar linux-arm-kernel linux-devicetree lkml 4 versions – Applied

Status from this message: The following commit has been merged into the irq/drivers branch of tip:

Get series with b4
b4 am [email protected] change-id 20260917-smmu-changes-v2-9cf7435d6969

Versions newest first

  1. v4 Latest2 patches 0 repliesApplied
  2. v32 patches 4 repliesApplied
  3. v22 patches 1 replySuperseded inferred link
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches7 repliesSuperseded

Changes in v4 from the cover letter

- irqchip driver (Sashiko): use handle_fasteoi_irq() + .irq_eoi() with IRQCHIP_EOI_THREADED so the sticky W1C status is cleared only after the threaded SMMUv3 handler drains the source, avoiding spurious interrupts.
- dt-bindings: No changes, Added Acked-by:Conor Dooley tag

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: interrupt-controller: Add Xilinx Versal NET SMMU CSRDocumentation/devicetree/bindings/interrupt-controller/xlnx,versal-net-smmu-csr.yaml+75 -00 replies
2/2irqchip: Add Xilinx Versal NET SMMU CSR interrupt controller driverMAINTAINERS drivers/irqchip/Kconfig drivers/irqchip/Makefile +1 more+270 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchConor Dooley
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] Add Xilinx Versal NET SMMU CSR interrupt controller support

On Xilinx Versal NET, the ARM SMMUv3 EVENTQ, PRIQ and GERROR interrupts are routed through a vendor-specific Control and Status Register (CSR) block, where they must be enabled, cleared and acknowledged before being forwarded to the parent GIC.
This series adds a small irqchip driver for the CSR block that chains to the standard arm-smmu-v3 driver, so the generic SMMUv3 driver needs no changes.
Patch 1 adds the DT binding.
Patch 2 adds the irqchip driver.

Changes in v4:
- irqchip driver (Sashiko): use handle_fasteoi_irq() + .irq_eoi() with IRQCHIP_EOI_THREADED so the sticky W1C status is cleared only after the threaded SMMUv3 handler drains the source, avoiding spurious interrupts.
- dt-bindings: No changes, Added Acked-by:Conor Dooley tag

Link to v3:
https://lore.kernel.org/all/[email protected]/

Changes in v3:
- irqchip driver (Sashiko): harden against interrupt sources left enabled/latched by a prior boot stage:
- Mask and clear every CSR source at init, including CMD_SYNC (bit 1) which the driver does not service.
- Gate the handler on the mask register (ISR & ~MASK) instead of the raw ISR, so masked-but-latched sources are not dispatched.
- Mask and clear any active source with no mapped consumer so it cannot spin the parent line.
- dt-bindings: No changes

Link to v2:
https://lore.kernel.org/all/[email protected]/#t

Changes in v2:
- Posted as a proper threaded series with a cover letter (v1 patches went out individually).
- dt-bindings (Krzysztof):
- Dropped the irrelevant arm,smmu-v3 consumer node from the example.
- Dropped the unused "smmu_irq_csr" label from the example.
- Dropped the redundant "binding" from the patch subject.
- irqchip driver (Thomas):
- Aligned kernel-doc member descriptions and used "interrupt" instead of "IRQ".
- Used guard(raw_spinlock)() in the mask/unmask/ack callbacks and addressed the comments related to lock handling.
- Thomas suggested using devm-managed allocation and irqdomain APIs; however, the driver is registered via IRQCHIP_DECLARE() and has no associated struct device, so devm APIs cannot be used. This code is left unchanged.

Link to v1:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

---
Anirudha Sarangi (2):
dt-bindings: interrupt-controller: Add Xilinx Versal NET SMMU CSR
irqchip: Add Xilinx Versal NET SMMU CSR interrupt controller driver

 .../xlnx,versal-net-smmu-csr.yaml                  |  75 +++++++
 MAINTAINERS                                        |  10 +
 drivers/irqchip/Kconfig                            |  10 +
 drivers/irqchip/Makefile                           |   1 +
 drivers/irqchip/irq-xilinx-smmu-csr.c              | 249 +++++++++++++++++++++
 5 files changed, 345 insertions(+)

---
base-commit: 0d9d0dbf2fddcff5859d623e90ca73c4054276e1
change-id: 20260917-smmu-changes-v2-9cf7435d6969

Best regards,

Signature · 1 line
Tushar Nimkar <[email protected]>