linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] STM32 DMA-MDMA chaining feature
@ 2022-07-11  8:46 Amelie Delaunay
  2022-07-11  8:47 ` [PATCH 1/4] docs: arm: stm32: introduce " Amelie Delaunay
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Amelie Delaunay @ 2022-07-11  8:46 UTC (permalink / raw)
  To: Jonathan Corbet, Vinod Koul, Maxime Coquelin, Alexandre Torgue
  Cc: linux-doc, dmaengine, linux-stm32, linux-arm-kernel, linux-kernel,
	Marek Vasut, Amelie Delaunay

This patchset (re)introduces STM32 DMA-MDMA chaining feature.

As the DMA is not able to generate convenient burst transfer on the DDR,
it penalises the AXI bus when accessing the DDR. While it accesses
optimally the SRAM. The DMA-MDMA chaining then consists in having an SRAM
buffer between DMA and MDMA, so the DMA deals with peripheral and SRAM,
and the MDMA with SRAM and DDR.

The feature relies on the fact that DMA channel Transfer Complete signal
can trigger a MDMA channel transfer and MDMA can clear the DMA request by
writing to DMA Interrupt Clear register.

A deeper introduction can be found in patch 1.

Previous implementation [1] has been dropped as nacked.
Unlike this previous implementation (where all the stuff was embedded in
stm32-dma driver), the user (in peripheral drivers using dma) has now to
configure the MDMA channel.

[1] https://lore.kernel.org/lkml/1538139715-24406-1-git-send-email-pierre-yves.mordret@st.com/

Amelie Delaunay (4):
  docs: arm: stm32: introduce STM32 DMA-MDMA chaining feature
  dmaengine: stm32-dmamux: set dmamux channel id in dma features
    bitfield
  dmaengine: stm32-dma: add support to trigger STM32 MDMA
  dmaengine: stm32-mdma: add support to be triggered by STM32 DMA

 .../arm/stm32/stm32-dma-mdma-chaining.rst     | 365 ++++++++++++++++++
 drivers/dma/stm32-dma.c                       |  56 ++-
 drivers/dma/stm32-dmamux.c                    |   2 +-
 drivers/dma/stm32-mdma.c                      |  70 +++-
 4 files changed, 490 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/arm/stm32/stm32-dma-mdma-chaining.rst

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-12 13:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-11  8:46 [PATCH 0/4] STM32 DMA-MDMA chaining feature Amelie Delaunay
2022-07-11  8:47 ` [PATCH 1/4] docs: arm: stm32: introduce " Amelie Delaunay
2022-07-11 15:11   ` Jonathan Corbet
2022-07-12 13:37     ` Amelie Delaunay
2022-07-11  8:47 ` [PATCH 2/4] dmaengine: stm32-dmamux: set dmamux channel id in dma features bitfield Amelie Delaunay
2022-07-11  8:47 ` [PATCH 3/4] dmaengine: stm32-dma: add support to trigger STM32 MDMA Amelie Delaunay
2022-07-11  8:47 ` [PATCH 4/4] dmaengine: stm32-mdma: add support to be triggered by STM32 DMA Amelie Delaunay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).