Skip to content

Add Amlogic general DMA

Xianwei Zhao b4-sent dmaengine linux-amlogic linux-devicetree linux-hardening lkml 12 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20251215-amlogic-dma-79477d5cd264

Versions newest first

  1. v12 Latest3 patches 2 repliesApplied
  2. v113 patches 4 repliesSuperseded
  3. v103 patches 0 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v93 patches2 repliesSuperseded
v83 patches0 repliesSuperseded
v73 patches0 repliesSuperseded
v63 patches3 repliesSuperseded
v53 patches6 repliesSuperseded
v43 patches4 repliesSuperseded
v33 patches6 repliesSuperseded
v23 patches5 repliesSuperseded
v13 patches6 repliesSuperseded

Changes in v12 from the cover letter

- Add prefix "AMLOGIG_A9_" for channel type.
- Use workqueue to free,and when remove module,destory queue.
- Consider the little-endian for hardware.
- Modify get dma status return value.
- Optimize the code according to Vinod's suggestion.
- Link to v11: https://lore.kernel.org/r/[email protected]

Patches in v12 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: dma: Add Amlogic A9 SoC DMADocumentation/devicetree/bindings/dma/amlogic,a9-dma.yaml include/dt-bindings/dma/amlogic,a9-dma.h+76 -01 reply
2/3dmaengine: amlogic: Add general DMA driver for A9drivers/dma/Kconfig drivers/dma/Makefile drivers/dma/amlogic-dma.c+748 -00 replies
3/3MAINTAINERS: Add an entry for Amlogic DMA driverMAINTAINERS+7 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiFrank Li
1/3R-b
2/3R-b
3/3

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

Read the v12 thread

Cover letter [PATCH v12 0/3] Add Amlogic general DMA

Add DMA driver and bindigns for the Amlogic SoCs.

---
Changes in v12:
- Add prefix "AMLOGIG_A9_" for channel type.
- Use workqueue to free,and when remove module,destory queue.
- Consider the little-endian for hardware.
- Modify get dma status return value.
- Optimize the code according to Vinod's suggestion.
- Link to v11: https://lore.kernel.org/r/[email protected]

Changes in v11:
- MAX_DMA_LEN 4-byte align, and return real status when get, and lockless error print.
- Link to v10: https://lore.kernel.org/r/[email protected]

Changes in v10:
- Free dma memory in workqueue.
- Deal with zero len sg (not consume sg_link),and reset status to DMA_COMPLETE when terminal channel.
- Add desc for #dma-cells in dt-bindings.
- Link to v9: https://lore.kernel.org/r/[email protected]

Changes in v9:
- Use each transmission request sg_link mem instead of the loop mem get.
- Fix some hidden issues which reviewed by ai robot.
- Link to v8: https://lore.kernel.org/r/[email protected]

Changes in v8:
- Use kzalloc instead of kmalloc.
- Initialize the temporary variable and fix a spelling mistake.
- Link to v7: https://lore.kernel.org/r/[email protected]

Changes in v7:
- Take use vchan to support mltiple txns.
- Link to v6: https://lore.kernel.org/r/[email protected]

Changes in v6:
- Some minor modifications according to Frank's suggestion.
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Rename head file and rename macro definition.
- Rename the subject in [2/3] from "dma" to "dmaengine".
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Support split transfer when data len > MAX_LEN.
- When a module fails or exits, perform de-initialization.
- Some other minor modifications.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Adjust the format of binding according to Frank's suggestion.
- Some code format modified according to Frank's suggestion.
- Support one prep_sg and one submit, drop multi prep_sg and one submit.
- Keep pre state when resume from pause status.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Introduce what the DMA is used for in the A9 SoC.
- Some minor modifications were made according to Krzysztof's suggestions.
- Some modifications were made according to Neil's suggestions.
- Fix a build error.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Xianwei Zhao (3):
dt-bindings: dma: Add Amlogic A9 SoC DMA
dmaengine: amlogic: Add general DMA driver for A9
MAINTAINERS: Add an entry for Amlogic DMA driver

 .../devicetree/bindings/dma/amlogic,a9-dma.yaml    |  68 ++
 MAINTAINERS                                        |   7 +
 drivers/dma/Kconfig                                |  10 +
 drivers/dma/Makefile                               |   1 +
 drivers/dma/amlogic-dma.c                          | 737 +++++++++++++++++++++
 include/dt-bindings/dma/amlogic,a9-dma.h           |   8 +
 6 files changed, 831 insertions(+)

---
base-commit: bea91d748771879c695b869a6c5a4a172cb0035f
change-id: 20251215-amlogic-dma-79477d5cd264

Best regards,

Signature · 1 line
Xianwei Zhao <[email protected]>