imx6 accesing custom FPGA memory on pcie bus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 accesing custom FPGA memory on pcie bus

1,240 Views
rajeshwaranr
Contributor II

Hi All,

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.

sgdma-pcie-driver-demo/demo-v1/sgdma_gen1x4.c at master · mapleelpam/sgdma-pcie-driver-demo · GitHub

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.

Ratheendran R

Labels (1)
0 Kudos
2 Replies

542 Views
YixingKong
Senior Contributor IV

Ratheendra

This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.

Thanks,

Yixing

0 Kudos

542 Views
YixingKong
Senior Contributor IV

Ratheendra

We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the issue, can we close the discussion? If you still need Freescale help, please feel free to contact us.

Thanks,
Yixing

0 Kudos