Article 51NEE Measurement of actual pcie rate

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.latest?d=yIl2AUoC8zA latest?i=TOGIZZ2WA6w:s4xzsyhZLI4:F7zBnMy latest?i=TOGIZZ2WA6w:s4xzsyhZLI4:V_sGLiP latest?d=qj6IDK7rITs latest?i=TOGIZZ2WA6w:s4xzsyhZLI4:gIN9vFwTOGIZZ2WA6w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments