Add Xilinx Versal NET SMMU CSR interrupt controller support
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-9cf7435d6969Versions newest first
- v4 Latest2 patches 0 repliesApplied
- v32 patches 4 repliesApplied
- v22 patches 1 replySuperseded inferred link
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 7 replies | Superseded |
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: interrupt-controller: Add Xilinx Versal NET SMMU CSRDocumentation/ | +75 | 0 replies | |
| 2/2 | irqchip: Add Xilinx Versal NET SMMU CSR interrupt controller driverMAINTAINERS drivers/ drivers/ +1 more | +270 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Conor Dooley |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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]>