diff options
author | Amelie Delaunay <[email protected]> | 2023-10-04 18:35:29 +0200 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-10-09 11:10:30 +0530 |
commit | a4b306eb83579c07b63dc65cd5bae53b7b4019d0 (patch) | |
tree | 246e1aa0bea83c5564f2799dd5beacb93e32bfca /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 81337b9a72dc58a5fa0ae8a042e8cb59f9bdec4a (diff) |
dmaengine: stm32-mdma: use Link Address Register to compute residue
Current implementation relies on curr_hwdesc index. But to keep this index
up to date, Block Transfer interrupt (BTIE) has to be enabled.
If it is not, curr_hwdesc is not updated, and then residue is not reliable.
Rely on Link Address Register instead. And disable BTIE interrupt
in stm32_mdma_setup_xfer() because it is no more needed in case of
_prep_slave_sg() to maintain curr_hwdesc up to date.
It avoids extra interrupts and also ensures a reliable residue. These
improvements are required for STM32 DCMI camera capture use case, which
need STM32 DMA and MDMA chaining for good performance.
Fixes: 696874322771 ("dmaengine: stm32-mdma: add support to be triggered by STM32 DMA")
Signed-off-by: Amelie Delaunay <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions