diff options
| author | Amelie Delaunay <[email protected]> | 2024-10-16 12:39:54 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2024-10-21 17:21:44 +0000 |
| commit | 12eb621e1abff65d89aeb4c92a4f3436225971d0 (patch) | |
| tree | ead3caaa457b480b8e288f2992ac24c8bf8c8784 /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | dt-bindings: dma: stm32-dma3: prevent packing/unpacking mode (diff) | |
| download | kernel-12eb621e1abff65d89aeb4c92a4f3436225971d0.tar.gz kernel-12eb621e1abff65d89aeb4c92a4f3436225971d0.zip | |
dmaengine: stm32-dma3: prevent pack/unpack thanks to DT configuration
When source data width/burst and destination data width/burst are
different, data are packed or unpacked in DMA3 channel FIFO, using
CxTR1.PAM.
Data are pushed out from DMA3 channel FIFO when the destination burst
length (= data width * burst) is reached.
If the transfer is stopped before CxBR1.BNDT = 0, and if some bytes are
packed/unpacked in the DMA3 channel FIFO, these bytes are lost.
Indeed, DMA3 channel FIFO has no flush capability, only reset.
To avoid potential bytes lost, pack/unpack must be prevented by setting
memory data width/burst equal to peripheral data width/burst.
Memory accesses will be penalized. But it is the only way to avoid bytes
lost.
Prevent pack/unpack feature can be activated by setting bit 16 of DMA3
Transfer requirements bitfield (tr_conf) in device tree.
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/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
