Skip to content

dmaengine: arm-dma350: Add slave support and Sky1 integration

Jelly Jia dmaengine linux-arm-kernel linux-devicetree lkml sashiko-reviews 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest10 patches 3 repliesIn review
  2. v65 patches 6 repliesSuperseded
  3. v55 patches 5 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v45 patches1 replySuperseded
v36 patches5 repliesSuperseded
v26 patches7 repliesSuperseded
v15 patches6 repliesSuperseded

Changes in v7 from the cover letter

- Split existing fixes and memcpy/memset preparation out of the new slave/cyclic support. (Frank.)
- Use named little-endian hardware command fields and fill the coherent pool directly. Keep CPU-endian memcpy/memset command storage and MMIO handling; decode peripheral fields only when loading their registers. Derive SG lengths from saved command sizes without cmd_len[]. (Frank.)
- Remove the prep-time DMA write barrier; retain the final non-relaxed channel-enable writel and normal descriptor publication locking. Keep descriptor-owned peripheral address mappings and the distinction between read-only interrupt flags and W1C status bits. (Frank.)
- Use scoped guards consistently without extending critical sections, consistent device_config/device_caps names and managed DMA/OF registration. (Frank.)
- Put the submitter's Signed-off-by after the retained Reviewed-by tags. (Frank.)

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10dmaengine: arm-dma350: Fix source trigger bitdrivers/dma/arm-dma350.c+1 -10 replies
2/10dmaengine: arm-dma350: Check DMA mask setup errorsdrivers/dma/arm-dma350.c+3 -11 reply
3/10dmaengine: arm-dma350: Initialize channel coherencydrivers/dma/arm-dma350.c+1 -00 replies
4/10dmaengine: arm-dma350: Serialize IRQ and termination statedrivers/dma/arm-dma350.c+87 -461 reply
5/10dmaengine: arm-dma350: Report submitted descriptor statusdrivers/dma/arm-dma350.c+13 -10 replies
6/10dmaengine: arm-dma350: Use managed device registrationdrivers/dma/arm-dma350.c+1 -90 replies
7/10dmaengine: arm-dma350: Track descriptor byte lengths explicitlydrivers/dma/arm-dma350.c+16 -110 replies
8/10dmaengine: arm-dma350: Add slave and cyclic transfer supportdrivers/dma/arm-dma350.c+736 -290 replies
9/10dt-bindings: dma: arm,dma-350: Describe the CIX Sky1 integrationDocumentation/devicetree/bindings/dma/arm,dma-350.yaml+26 -40 replies
10/10dmaengine: arm-dma350: Support integration clocks and resetsdrivers/dma/arm-dma350.c+14 -00 replies

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by.

PatchFrank LiKrzysztof Kozlowski
1/10R-b
2/10R-b
3/10
4/10
5/10
6/10
7/10
8/10
9/10R-b R-b
10/10R-b

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

Read the v7 thread

Cover letter [PATCH v7 00/10] dmaengine: arm-dma350: Add slave support and Sky1 integration

Hello,

This series adds scatter-gather and cyclic peripheral transfers to the Arm DMA-350 driver and describes the CIX Sky1 clock/reset integration. The companion AUDSS interrupt-path series builds on these changes.

The first five patches fix existing trigger, DMA mask, coherency, IRQ/termination and queued-status handling. Patches 6 and 7 prepare managed registration and command bookkeeping before patch 8 adds slave and cyclic transfers. The final two patches describe and handle the integration clock and optional reset. DTS enablement is kept separate.

Linked commands use a coherent DMA pool and descriptor-owned peripheral resource mappings. Sky1 has no IOMMU on this path, but its RCSU windows still require CPU-to-DMA address translation through the DMA API.

Changes since v6:
- Split existing fixes and memcpy/memset preparation out of the new slave/cyclic support. (Frank.)
- Use named little-endian hardware command fields and fill the coherent pool directly. Keep CPU-endian memcpy/memset command storage and MMIO handling; decode peripheral fields only when loading their registers. Derive SG lengths from saved command sizes without cmd_len[]. (Frank.)
- Remove the prep-time DMA write barrier; retain the final non-relaxed channel-enable writel and normal descriptor publication locking. Keep descriptor-owned peripheral address mappings and the distinction between read-only interrupt flags and W1C status bits. (Frank.)
- Use scoped guards consistently without extending critical sections, consistent device_config/device_caps names and managed DMA/OF registration. (Frank.)
- Put the submitter's Signed-off-by after the retained Reviewed-by tags. (Frank.)

Previous version:
https://lore.kernel.org/r/[email protected]

Jelly Jia (10):
dmaengine: arm-dma350: Fix source trigger bit
dmaengine: arm-dma350: Check DMA mask setup errors
dmaengine: arm-dma350: Initialize channel coherency
dmaengine: arm-dma350: Serialize IRQ and termination state
dmaengine: arm-dma350: Report submitted descriptor status
dmaengine: arm-dma350: Use managed device registration
dmaengine: arm-dma350: Track descriptor byte lengths explicitly
dmaengine: arm-dma350: Add slave and cyclic transfer support
dt-bindings: dma: arm,dma-350: Describe the CIX Sky1 integration
dmaengine: arm-dma350: Support integration clocks and resets

 .../devicetree/bindings/dma/arm,dma-350.yaml  |  30 +-
 drivers/dma/arm-dma350.c                      | 946 ++++++++++++++++--
 2 files changed, 886 insertions(+), 90 deletions(-)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.54.0