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.

TDA4VH-Q1: PCIE DMA from RC driver

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Tool/software:

Hi, TI expert, 

From TI PCIE driver(pci-epf-test.c)the PCIE DMA is performed from PCIE EP driver side.   

There is a question,  can we perform PCIE DMA from PCIE RC driver?

Is there any example driver code for  it? 

From TDA4VH manual, it seems the PCIE DMA can start from both RC and EP side. 

Best Regards

Ruijie

  • Hi Ruijie,

    Yes, DMA setup on RC-side is possible. In Linux prompt, "lspci -vvv" can be used to find out what memory ranges are accessible on the EP from RC to get the full PCIe address space enumerated by the RC.

    Then to set up DMA you would need to call APIs to convert virtual address to physical address. You can refer to the existing epf example on those DMA APIs. 

    Regards,

    Takuma

  • Hello Rujie

        is this issue solved ?

    Regards

       Semon