How to promote memory copy rate between FPGA and IMX8MQ?

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

How to promote memory copy rate between FPGA and IMX8MQ?

1,007 Views
mimi05633
Contributor III

Hi NXP team,

How to promote memory copy rate between FPGA and IMX8MQ?
My topology: FPGA ---(pcie access by mmap dev/mem)--- ARM(malloc buffer)
After our program did memory copy(copy from FPGA to IMX8MQ) by memcpy API, the rate was only 5MB/s.
I also use neon memcpy method to promote memory copy rate(about 11MB/s).

According to https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX6Q-PCIe-EP-RC-Validation-System/ta-p...,
all memory copy results are better than my test result.

mimi05633_0-1618823005826.png

And I find that memory copy of cached PCIe is better than uncached PCIe, and memory copy with IPU DMA is the best performance.

How to promote memory copy rate between FPGA and IMX8MQ?
Do I need change uncached PCIe to cached PCIe? If yes, how can I do?
How can I use IPU DMA on IMX8MQ? Is there any sample code for IMX8MQ?

I appreciate if someone can help me to solve it.

Thank you for any help.
Minying

Labels (1)
Tags (2)
0 Kudos
3 Replies

990 Views
igorpadykov
NXP Employee
NXP Employee

Hi Minying

 

for PCIe performance analysis one can look at AN13164  iMX8MP PCIe Bandwith Analysis

https://www.kernel.org/doc/html/latest/PCI/endpoint/pci-test-howto.html

 

Best regards
igor

0 Kudos

969 Views
mimi05633
Contributor III

Hi Igor,
I am sorry to late reply. Thank you for your response.
I am new to PCIe. I want to promote PCIe's speed on the IMX8MQ(RC mode).
After I research promoted method, there are some promoted methods by DMA.
Does IMX8MQ support DMA implemented on PCIe RC mode? If Yes, how can I do?
Is "Throughput results" section base on IMX8MQ(RC) side on URL https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX6Q-PCIe-EP-RC-Validation-System/ta-p...?

Update my topology: IMX8MQ(RC) ---(pcie)--- FPGA(EP)

Best regards,
Minying

0 Kudos

957 Views
igorpadykov
NXP Employee
NXP Employee

>Does IMX8MQ support DMA implemented on PCIe RC mode?

 

1.jpg

Best regards
igor

0 Kudos