AXI DMA - Variable Number of Buffer Descriptors in each Packet
I have an FreeRTOS application where I use AXI DMA Scatter Gather Mode( At the moment just looping with a FIFO back to AXI and reading data to confirm that they are correct) so to transmit images ( a video) and loop it back (I try to separate the Image to several multiple integer BDs each one having a specific size needed from my HW which will be implemented later). My app will load each transaction different size of data (A compressed image every transaction which varies size).
1) Is AXI-DMA drivers capable of handling this process?
2) I've modified NUMBER_OF_BDS_PER_PKT from constant defined to an int and a read the image, fit it into BDs and depending on the size this is varying. Will this be a problem?
3) I have implemented this logic but the process seems to lag after some seconds (I play a video and it stops, but perhaps its not from AXI-DMA)…
4) Should I use multiple packets or mutliple BDs for sending the Image in the PL (custom Hardware block) ?