UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer wmwm
Observer
194 Views
Registered: ‎05-27-2019

linux pcie drive too slow

softwareI downloaded the code on this link, "https://www.xilinx.com/support/answers/65444.html",  

                i used Xilinx_Answer_65444_Linux_Files, beacuse 'Xilinx_Answer_65444_Linux_Files_rel20180420.zip' will crash my system.

question:

"rvmalloc" and "transfer_create" takes up too much time in "char_sgdma_open",  and i have to call open and close every time when I read data, a lot of time is wasted. can i call "read"  multiple times and just call "open" & "close" once.

 

This is my test code receive data from fpga
c2hFd = open(PCIE_C2H, O_RDWR | O_NONBLOCK);
gettimeofday(&end4, NULL);
read(c2hFd, (void*)buffer, PCIE_MAX_SIZE);
gettimeofday(&end5, NULL);
close(c2hFd);

test log of driver

ie

[ 1111.580850] cyclic_transfer_setup-4040-rvmalloc:0-559

[ 1111.580850]:system time

cyclic_transfer_setup:function

4040:line

rvmalloc:function in cyclic_transfer_setup

0-559:0 is second, 559 is us.

here is log, 

[ 1111.580850] cyclic_transfer_setup-4040-rvmalloc:0-559
[ 1111.581983] cyclic_transfer_setup-4056-transfer_create:0-1105
[ 1111.582014] cyclic_transfer_setup-4072-pci_alloc_consistent:0-15
[ 1111.582026] cyclic_transfer_setup-4086-transfer_set_result_addresses:0-0
[ 1111.582067] cyclic_transfer_setup-4096-transfer_set_all_control:0-19
[ 1111.582077] cyclic_transfer_setup-4105-xdma_transfer_cyclic:0-0
[ 1111.582086] cyclic_transfer_setup-4114-transfer_dump:0-0
[ 1111.582096] cyclic_transfer_setup-4130-write_register:0-1
[ 1111.582113] cyclic_transfer_setup-4141-transfer_queue:0-8            

0 Kudos
1 Reply
Observer wmwm
Observer
159 Views
Registered: ‎05-27-2019

Re: linux pcie drive too slow

Can anyone help me
0 Kudos