| 1 | What: /sys/class/misc/drivers/dw-xdata-pcie.<device>/write |
| 2 | Date: April 2021 |
| 3 | KernelVersion: 5.13 |
| 4 | Contact: Gustavo Pimentel <[email protected]> |
| 5 | Description: Allows the user to enable the PCIe traffic generator which |
| 6 | will create write TLPs frames - from the Root Complex to the |
| 7 | Endpoint direction or to disable the PCIe traffic generator |
| 8 | in all directions. |
| 9 | |
| 10 | Write y/1/on to enable, n/0/off to disable |
| 11 | |
| 12 | Usage e.g.:: |
| 13 | |
| 14 | echo 1 > /sys/class/misc/dw-xdata-pcie.<device>/write |
| 15 | |
| 16 | or:: |
| 17 | |
| 18 | echo 0 > /sys/class/misc/dw-xdata-pcie.<device>/write |
| 19 | |
| 20 | The user can read the current PCIe link throughput generated |
| 21 | through this generator in MB/s. |
| 22 | |
| 23 | Usage e.g.:: |
| 24 | |
| 25 | cat /sys/class/misc/dw-xdata-pcie.<device>/write |
| 26 | 204 |
| 27 | |
| 28 | The file is read and write. |
| 29 | |
| 30 | What: /sys/class/misc/dw-xdata-pcie.<device>/read |
| 31 | Date: April 2021 |
| 32 | KernelVersion: 5.13 |
| 33 | Contact: Gustavo Pimentel <[email protected]> |
| 34 | Description: Allows the user to enable the PCIe traffic generator which |
| 35 | will create read TLPs frames - from the Endpoint to the Root |
| 36 | Complex direction or to disable the PCIe traffic generator |
| 37 | in all directions. |
| 38 | |
| 39 | Write y/1/on to enable, n/0/off to disable |
| 40 | |
| 41 | Usage e.g.:: |
| 42 | |
| 43 | echo 1 > /sys/class/misc/dw-xdata-pcie.<device>/read |
| 44 | |
| 45 | or:: |
| 46 | |
| 47 | echo 0 > /sys/class/misc/dw-xdata-pcie.<device>/read |
| 48 | |
| 49 | The user can read the current PCIe link throughput generated |
| 50 | through this generator in MB/s. |
| 51 | |
| 52 | Usage e.g.:: |
| 53 | |
| 54 | cat /sys/class/misc/dw-xdata-pcie.<device>/read |
| 55 | 199 |
| 56 | |
| 57 | The file is read and write. |