I am currently working imx6 linux platform developing drivers PCIE based stratix iV FPGA,this board has 128mb ram whose data is to be accessed from user-space for computational purpose. my approach is to make block driver to access the memory of FPGA device through DMA IP on the FPGA device.
Since I am new to this activity I look to get some valuable inputs to move ahead ,Please let me know if any one has worked on a similar problem or refer to driver code which uses DMA bus master on the device.
We tried the below pcie device configuration and tested demo code available on their site, we were able to access the memory,however we were not able to trigger DMA transfer from FPGA device to imx.
Following BASE ADDRESS REGISTERS are enabled on pcie device
bar0 & 1 for 64kb memory access
bar2 for dma control/status
If any one has better approach to solve this problem please let me know.