aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorAmelie Delaunay <[email protected]>2024-10-16 12:39:55 +0000
committerVinod Koul <[email protected]>2024-10-21 17:21:45 +0000
commitcb467c451163bacad4cbb7540ce7d731946f13f9 (patch)
tree7c37341db29512e88f389034cd9b381e097a3280 /drivers/pci/controller/dwc
parentdmaengine: stm32-dma3: prevent pack/unpack thanks to DT configuration (diff)
downloadkernel-cb467c451163bacad4cbb7540ce7d731946f13f9.tar.gz
kernel-cb467c451163bacad4cbb7540ce7d731946f13f9.zip
dmaengine: stm32-dma3: refactor HW linked-list to optimize memory accesses
Current behavior splits the buffer/sg in n * STM32_DMA3_MAX_BLOCK_SIZE + 1 for the remainder without optimization. New behavior splits the buffer/sg in n * STM32_DMA3_MAX_BLOCK_SIZE + 1 for (x * chan->max_burst) + 1 for the remainder. Depending on channel FIFO size, optimal double-word (word if only 8-byte FIFO size) bursts can be programmed before managing the very last remainder with lower data width. In case of _prep_slave_sg, and depending on the channel Transfer Complete event configuration, the user is warned about the refactored linked-list, not having the same items count than the initial sg_list. This warning is shown only if the configuration is successful. Signed-off-by: Amelie Delaunay <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions