This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

pcie in dm8168

hi,
   We need read/write fpga by pcie bus.Is the inbound no usefully for me in this case ?
   We can read/write fpga by ioremap the pcie bar0/bar1/bar2.And now howto use the dma of the pcie for  the transit of pcie to ddr.Is this used for DMA only or if I need to start another DMA channel?how to do??
Thank you,
Best Ragards!

  • Hi,

    You need not do inbound configuration when reading/writing from DM8168 (that is, DM8168 is master) - in this case all that needs to be ensured is that the outbound mapping is done to be able to access BARs on the FPGA.

    When doing DMA from FPGA though (that is, when FPGA is master), the inbound configuration on DM8168 should be such that the DDR space on DM8168 is seen by FPGA to be able to do DMA reads/writes.

    Both of the above cases are taken care by the Root Complex driver in Linux kernel for DM8168. Please see the user guide.

       Hemant