ikwzm / udmabuf

User space mappable dma buffer device driver for Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can only transfer up to 15K of Source address

noelpedro opened this issue · comments

Hi Ichiro I'm attempting to loop back 32K of data.

Although I fill my Source buffer with 32768 bytes of data my destination buffer only ends up with 15928 bytes and the remainder of buffer is padded with zeros.

My axi_dma has a range of 64k. with 32 bit data width.
My fifos depth is 32K with a 4-byte data width.
My udmabuf size is 1048576 bytes.

Platform: zcu102 Ultrascale+. kernel 4.14

I've only been able to transfer 32K of data on a zedboard using kernel 4.0 and using the https://github.com/jeremytrimble/ezdma driver

Please help.

increased buffer width from 14 bits to 26 bits now it works.