mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
Using the DMA in cyclic mode modifies the hardware buffer descriptor
chain in xilinx_dma_prep_dma_cyclic so that the last descriptor used by
the cyclic transfer points back to the first descriptor, but it never
restores the original descriptor ring. This breaks using non-cyclic mode
after cyclic mode with an error like:
xilinx-vdma 86000000.dma: Channel 00000000354d5c8d has errors 100, cdr 6de40000 tdr 6de40400
The only way to get out of this error state is to rebuild the hardware
buffer descriptor ring by releasing and re-acquiring the channel.
Fix using non-cyclic mode after cyclic mode by always restoring the
original buffer descriptor ring in the same manner as it is set up by
xilinx_dma_alloc_chan_resources().
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| xdma-regs.h | ||
| xdma.c | ||
| xilinx_dma.c | ||
| xilinx_dpdma.c | ||
| zynqmp_dma.c | ||