← Documents Documentation/ABI/testing/sysfs-driver-xdata GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

DesignWare PCIe xData traffic-generator sysfs ABI

Root Complex와 Endpoint 사이의 read/write TLP generator를 제어하고 current generated throughput을 MB/s로 읽는 방법을 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-driver-xdata
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Directional TLP generation and throughput

sysfs-driver-xdata:1-49

Write node는 Root Complex에서 Endpoint, read node는 Endpoint에서 Root Complex 방향 traffic을 만들며 같은 boolean strings로 enable 또는 disable합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

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

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

DesignWare PCIe write traffic generator

1-25
항목한국어 전문 번역
What/sys/class/misc/drivers/dw-xdata-pcie.<device>/write
Date2021년 4월
KernelVersion5.13
ContactGustavo Pimentel <[email protected]>
DescriptionPCIe traffic generator를 enable해 Root Complex에서 Endpoint 방향의 write TLP frames를 생성하거나 모든 directions에서 generator를 disable합니다. `y`, `1`, `on`은 enable하고 `n`, `0`, `off`는 disable합니다. Read하면 이 generator가 만든 current PCIe link throughput을 MB/s 단위로 반환합니다.
AccessRead-write
PCIe write generator control
OperationValues / result
Enabley, 1, on
Disable all directionsn, 0, off
TLP directionRoot Complex -> Endpoint
ReadCurrent throughput in MB/s

Accepted controls, TLP direction과 read result입니다.

echo 1 > /sys/class/misc/drivers/dw-xdata-pcie.<device>/write
echo 0 > /sys/class/misc/drivers/dw-xdata-pcie.<device>/write
cat /sys/class/misc/drivers/dw-xdata-pcie.<device>/write
204

DesignWare PCIe read traffic generator

26-49
항목한국어 전문 번역
What/sys/class/misc/dw-xdata-pcie.<device>/read
Date2021년 4월
KernelVersion5.13
ContactGustavo Pimentel <[email protected]>
DescriptionPCIe traffic generator를 enable해 Endpoint에서 Root Complex 방향의 read TLP frames를 생성하거나 모든 directions에서 generator를 disable합니다. `y`, `1`, `on`은 enable하고 `n`, `0`, `off`는 disable합니다. Read하면 이 generator가 만든 current PCIe link throughput을 MB/s 단위로 반환합니다.
AccessRead-write
PCIe read generator control
OperationValues / result
Enabley, 1, on
Disable all directionsn, 0, off
TLP directionEndpoint -> Root Complex
ReadCurrent throughput in MB/s

Accepted controls, TLP direction과 read result입니다.

echo 1 > /sys/class/misc/dw-xdata-pcie.<device>/read
echo 0 > /sys/class/misc/dw-xdata-pcie.<device>/read
cat /sys/class/misc/dw-xdata-pcie.<device>/read
199