iMX8M Plus PCIe DMA Feature

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMX8M Plus PCIe DMA Feature

1,194件の閲覧回数
waynechung2
Contributor III

Hello NXP,

According to the document "AN13164 iMX8MP PCIe Bandwith Analysis", it have the Linux PCI test and test by DMA.
The document "IMX8MPRM- i.MX 8M Plus Applications Processor Reference Manual - Document Number: IMX8MPRM Rev. 1, 06/2021" also show the "Embedded DMA" feature.

Could I write/read PCIe data by DMA ?

Thanks.

Best Regards,

Wayne.

ラベル(1)
0 件の賞賛
4 返答(返信)

1,170件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Yes, you can use DMA in PCIe

0 件の賞賛

163件の閲覧回数
dwang2
Contributor II

Hi NXP TechSupport,

The URL pointing to the sample code in the original email trail does not work. Could you post a working one?

I am looking for a working kernel module code that fetches data on a remote device over PCIe bus by using the SDMA. Any related sample code using the Linux kernel PCIe stack and the DMAEngine are very helpful.

Thanks you very much!

dwang2

タグ(3)
0 件の賞賛

1,162件の閲覧回数
waynechung2
Contributor III

Hello NXP,

How could I use the PCIe DMA ?

Could you provide any reference code or document ?

Thanks.

 

Best Regards,

Wayne.

0 件の賞賛

1,072件の閲覧回数
pete_sensoray
Contributor II

Hi Wayne,

The documentation is IMX8MPRM.pdf section 11.4.2.4 DMA Controller.

The reference code is here: https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/pci/controller/dwc/pci-imx6.c?h=im...

Look for the function "imx6_pcie_local_dma_start".  That code seems to have been removed from the latest kernel release, but I was able to add it back in and it seems to work.  But it doesn't seem to be part of the pci_endpoint_test, so I'm unable to recreate the bandwidth results from AN13164 since NXP didn't describe how to run the benchmark.

0 件の賞賛