We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!


dma proxy test -- the 1st 32 bytes of the buffer lost

Posts: 4
Registered: ‎09-21-2017

dma proxy test -- the 1st 32 bytes of the buffer lost

Hi all,

    I followed the DMA Proxy tutorials from linn


    The question is, we set cached_buffer=1, but still lost the 1st 32 bytes of the buffer.


/ * Note: the buffer in the data structure should be 1st in the channel interface so that the buffer is cached aligned,
 * otherwise there may be issues when using cached memory. The issues were typically the 1st 32 bytes of the buffer
 * not working in the driver test.

#define TEST_SIZE (3 * 1024 * 1024)

struct dma_proxy_channel_interface {
	unsigned char buffer[TEST_SIZE];
	enum proxy_status { PROXY_NO_ERROR = 0, PROXY_BUSY = 1, PROXY_TIMEOUT = 2, PROXY_ERROR = 3 } status;
	unsigned int length;

    Can anyone help me?


    Thank you.