dw-xdata-pcie.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ===========================================================================
  3. Driver for Synopsys DesignWare PCIe traffic generator (also known as xData)
  4. ===========================================================================
  5. Supported chips:
  6. Synopsys DesignWare PCIe prototype solution
  7. Datasheet:
  8. Not freely available
  9. Author:
  10. Gustavo Pimentel <[email protected]>
  11. Description
  12. -----------
  13. This driver should be used as a host-side (Root Complex) driver and Synopsys
  14. DesignWare prototype that includes this IP.
  15. The dw-xdata-pcie driver can be used to enable/disable PCIe traffic
  16. generator in either direction (mutual exclusion) besides allowing the
  17. PCIe link performance analysis.
  18. The interaction with this driver is done through the module parameter and
  19. can be changed in runtime. The driver outputs the requested command state
  20. information to ``/var/log/kern.log`` or dmesg.
  21. Example
  22. -------
  23. Write TLPs traffic generation - Root Complex to Endpoint direction
  24. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25. Generate traffic::
  26. # echo 1 > /sys/class/misc/dw-xdata-pcie.0/write
  27. Get link throughput in MB/s::
  28. # cat /sys/class/misc/dw-xdata-pcie.0/write
  29. 204
  30. Stop traffic in any direction::
  31. # echo 0 > /sys/class/misc/dw-xdata-pcie.0/write
  32. Read TLPs traffic generation - Endpoint to Root Complex direction
  33. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. Generate traffic::
  35. # echo 1 > /sys/class/misc/dw-xdata-pcie.0/read
  36. Get link throughput in MB/s::
  37. # cat /sys/class/misc/dw-xdata-pcie.0/read
  38. 199
  39. Stop traffic in any direction::
  40. # echo 0 > /sys/class/misc/dw-xdata-pcie.0/read