Altera_Forum
Honored Contributor
9 years agoWhere 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.