]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: stm32: dcmi: addition of DMA-MDMA chaining support
authorAlain Volmat <alain.volmat@foss.st.com>
Tue, 6 Jan 2026 11:34:38 +0000 (12:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:33 +0000 (01:05 +0100)
commit87ebce19aa03fd51aa9e7ab054e8705b7bb990b0
tree2052e984bedfa92d0f5d944dac3ebde1ebc84c31
parent57611a49e50c742d19c8e5f043e698cce8dbf0ba
media: stm32: dcmi: addition of DMA-MDMA chaining support

Add possibility to rely on an additional MDMA channel and chain
the DMA and MDMA channels allowing to achieve faster capture.
Indeed, on the MP15 platform, the MDMA engine has an higher
bandwidth to the DDR than the DMA engine.  Relying on that
it is possible to capture frames from the DCMI IP into the DDR
by using two channels as follow:

  DCMI -> (DMA) -> SRAM -> (MDMA) -> DDR

The DMA is able by himself to trigger a MDMA request hence, once
properly configured, the DCMI IP can simply trigger the DMA in order
to have the data pushed up to the DDR (via the SRAM and a MDMA
channel).

This behavior is detailed in the document
Documentation/arch/arm/stm32/stm32-dma-mdma-chaining.rst

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/st/stm32/stm32-dcmi.c