Measurement of actual pcie rate
by drakonof from LinuxQuestions.org on (#51NEE)
Hi all.
I want to determine the pcie data transfer speed.
For definition of ns which will be used to calculate the pcie rate, I do so:
Code:tStart = ktime_get_real();
memcpy(probPriv->memFromBar,dataToBar,1024 );
tStop = ktime_get_real();
tRes = ktime_to_ns(ktime_sub(tStop,tStart));
Is it correct?
PC with Debian 10.
Xilinx Artix7 as the pcie card.
Both PC and FPGA pcie are without dma.
Rest parts of the pcie kernel driver work correctly.


I want to determine the pcie data transfer speed.
For definition of ns which will be used to calculate the pcie rate, I do so:
Code:tStart = ktime_get_real();
memcpy(probPriv->memFromBar,dataToBar,1024 );
tStop = ktime_get_real();
tRes = ktime_to_ns(ktime_sub(tStop,tStart));
Is it correct?
PC with Debian 10.
Xilinx Artix7 as the pcie card.
Both PC and FPGA pcie are without dma.
Rest parts of the pcie kernel driver work correctly.