Skip to content

Add support for BCM2712 DMA engine

Andrea della Porta dmaengine linux-arm-kernel linux-iommu lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12bcm2835-dma: Add support for per-channel flagsdrivers/dma/bcm2835-dma.c+8 -20 replies
2/12bcm2835-dma: Add proper 40-bit DMA supportdrivers/dma/bcm2835-dma.c+505 -964 replies
3/12bcm2835-dma: Add NO_WAIT_RESP, DMA_WIDE_SOURCE and DMA_WIDE_DEST flagdrivers/dma/bcm2835-dma.c+21 -40 replies
4/12bcm2835-dma: Advertise the full DMA rangedrivers/dma/bcm2835-dma.c+15 -33 replies
5/12bcm2835-dma: Derive slave DMA addresses correctlydrivers/dma/bcm2835-dma.c+5 -181 reply
6/12dmaengine: bcm2835: Use to_bcm2711_cbaddr where relevantdrivers/dma/bcm2835-dma.c+1 -12 replies
7/12bcm2835-dma: Support dma flags for multi-beat burstdrivers/dma/bcm2835-dma.c+20 -81 reply
8/12bcm2835-dma: Need to keep PROT bits set in CS on 40bit controllerdrivers/dma/bcm2835-dma.c+17 -100 replies
9/12dmaengine: bcm2835: Add BCM2712 supportdrivers/dma/bcm2835-dma.c+7 -00 replies
10/12dmaengine: bcm2835: Support DMA-Lite channelsdrivers/dma/bcm2835-dma.c+16 -41 reply
11/12dmaengine: bcm2835: Rename to_bcm2711_cbaddr to to_40bit_cbaddrdrivers/dma/bcm2835-dma.c+8 -80 replies
12/12bcm2835-dma: Fixes for dma_abortdrivers/dma/bcm2835-dma.c+39 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] Add support for BCM2712 DMA engine

This patchset aims to update the dma engine for BCM* chipset with respect to current advancements in downstream vendor tree. In particular:

* Added support for BCM2712 DMA.
* Extended DMA addressing to 40 bit. Since BCM2711 also supports 40 bit addressing, it will also benefit from the update.
* Handled the devicetree node from vendor dts (e.g. "dma40").

The only difference between the application of this patch and the relative code in vendor tree is the dropping of channel reservation for BCM2708 DMA legacy driver, that seems to have not made its way to upstream anyway, and it's probably used only from deprecated subsystems.

Compile tested and runtime tested on RPi4B only.

Dom Cobley (4):
bcm2835-dma: Support dma flags for multi-beat burst
bcm2835-dma: Need to keep PROT bits set in CS on 40bit controller
dmaengine: bcm2835: Rename to_bcm2711_cbaddr to to_40bit_cbaddr
bcm2835-dma: Fixes for dma_abort

Maxime Ripard (2):
dmaengine: bcm2835: Use to_bcm2711_cbaddr where relevant
dmaengine: bcm2835: Support DMA-Lite channels

Phil Elwell (6):
bcm2835-dma: Add support for per-channel flags
bcm2835-dma: Add proper 40-bit DMA support
bcm2835-dma: Add NO_WAIT_RESP, DMA_WIDE_SOURCE and DMA_WIDE_DEST flag
bcm2835-dma: Advertise the full DMA range
bcm2835-dma: Derive slave DMA addresses correctly
dmaengine: bcm2835: Add BCM2712 support

 drivers/dma/bcm2835-dma.c | 701 ++++++++++++++++++++++++++++++++------
 1 file changed, 588 insertions(+), 113 deletions(-)
Signature · 1 line
2.41.0