bperez77 / xilinx_axidma

A zero-copy Linux driver and a userspace interface library for Xilinx's AXI DMA and VDMA IP blocks. These serve as bridges for communication between the processing system and FPGA programmable logic fabric, through one of the DMA ports on the Zynq processing system. Distributed under the MIT License.
MIT License
464 stars 227 forks source link

Fix for CB data structure when Channel ID does not match array index #126

Open bsnajder opened 3 years ago

bsnajder commented 3 years ago

For scenario where DMA channel ID wasn't zero (or rather, where it does not match index in array where info about channels is stored), I've faced very strange behavior of driver, until I've managed to trace issue to CB structure initialization. This fix seems to resolve those issues.