Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
865 Views

Where is PCIeRootPortWithMSI DMA transfer test source code (dmaxfer.c) located?

Hi,  

 

I would be appreciated, if someone could help me with about the following issue:  

I would like to test our FPGA development board as a PCIe endpoint. 

 

I used the https://rocketboards.org/foswiki/view/projects/pcierootportwithmsi description, we have a Cyclone V SoC DB on stock as a rootport, same as the reference design, I have also used the original SD card image.  

I have ported the Cyclone V GT design to our devboard, so I would like to test the communication between the two boards the same way as the wiki page describes it.  

 

I have successfully loaded the kernel modules (altera_epde.ko, altera_rpde.ko) but the test (dmaxfer) freezes after the first test item:  

 

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# insmod altera_epde.ko  

PCI: enabling device 0000:01:00.0 (0140 -> 0142)  

altera-epde 0000:01:00.0: using MSI irq# 341  

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# insmod altera_rpde.ko  

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# lspci  

00:00.0 Class 0604: 1172:e000  

01:00.0 Class ff00: 1172:e001  

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# ./dmaxfer 

 

==================================================  

PCIe throughput test between RP(OCM) <-> EP(OCM)  

RP(OCM) = Root Port On-Chip RAM  

EP(OCM) = End Point On-Chip RAM  

==================================================  

 

Loop# 01: RP-DMA write to EP 262144 Byte 697 MB/s  

 

So, I would like to modify the test code to do some debugging on the system, but I could not find the source file *(dmaxfer.c)* to modify and re-compile it.  

I will be very grateful, if anybody help me, where can I find this DMA transfer test source code.  

I'm looking forward to hearing from you.  

 

With kind regards,  

 

Zsolt, Voroshazi  

Eutecus HU Ltd.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
92 Views

 

--- Quote Start ---  

Hi,  

 

I would be appreciated, if someone could help me with about the following issue:  

I would like to test our FPGA development board as a PCIe endpoint. 

 

I used the https://rocketboards.org/foswiki/view/projects/pcierootportwithmsi description, we have a Cyclone V SoC DB on stock as a rootport, same as the reference design, I have also used the original SD card image.  

I have ported the Cyclone V GT design to our devboard, so I would like to test the communication between the two boards the same way as the wiki page describes it.  

 

I have successfully loaded the kernel modules (altera_epde.ko, altera_rpde.ko) but the test (dmaxfer) freezes after the first test item:  

 

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# insmod altera_epde.ko  

PCI: enabling device 0000:01:00.0 (0140 -> 0142)  

altera-epde 0000:01:00.0: using MSI irq# 341  

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# insmod altera_rpde.ko  

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# lspci  

00:00.0 Class 0604: 1172:e000  

01:00.0 Class ff00: 1172:e001  

root at cyclone5 (http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi):/mnt# ./dmaxfer 

 

==================================================  

PCIe throughput test between RP(OCM) <-> EP(OCM)  

RP(OCM) = Root Port On-Chip RAM  

EP(OCM) = End Point On-Chip RAM  

==================================================  

 

Loop# 01: RP-DMA write to EP 262144 Byte 697 MB/s  

 

So, I would like to modify the test code to do some debugging on the system, but I could not find the source file *(dmaxfer.c)* to modify and re-compile it.  

I will be very grateful, if anybody help me, where can I find this DMA transfer test source code.  

I'm looking forward to hearing from you.  

 

With kind regards,  

 

Zsolt, Voroshazi  

Eutecus HU Ltd. 

--- Quote End ---  

 

 

I found it online at one point of time, no idea where I got it from now.  

Attached here for you, you may be able to make use of it. (had to name .txt to upload here) 

 

I'm actually trying to get the same tutorial working, but I come across this issue:  

Test Results:  

root@cyclone5:/mnt# insmod altera_epde.ko 

root@cyclone5:/mnt# insmod altera_rpde.ko 

altera-rpde pcie_rpde.1: has no require EP detected 

 

Any idea what's going on here? Would appreciate any help, as I'm really trying to get it to work.
Reply