요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Tx TLP QoS weights
sysfs-bus-event_source-devices-hisi_ptt:11-39Completion, non-posted와 posted Tx TLP weights로 outbound traffic 비율을 조정하며 값은 0-2입니다.
Inbound와 outbound buffer watermarks
sysfs-bus-event_source-devices-hisi_ptt:41-61Allocated buffer watermark에 도달하거나 timeout될 때 packets를 전송하며 inbound·outbound levels 모두 0-2를 사용합니다.
PTT Root Port filters
sysfs-bus-event_source-devices-hisi_ptt:63-87Root Port BDF-named files는 TLP header trace filter values를 제공하고 multiselect는 다른 filters와 동시 선택 가능한지 나타냅니다.
PTT Requester filters
sysfs-bus-event_source-devices-hisi_ptt:89-113Endpoint Requester BDF-named files와 multiselect가 requester-side TLP trace filtering을 구성합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <[email protected]>
Description: This directory contains files for tuning the PCIe link
parameters(events). Each file is named after the event
of the PCIe link.
See Documentation/trace/hisi-ptt.rst for more information.
What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <[email protected]>
Description: (RW) Controls the weight of Tx completion TLPs, which influence
the proportion of outbound completion TLPs on the PCIe link.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <[email protected]>
Description: (RW) Controls the weight of Tx non-posted TLPs, which influence
the proportion of outbound non-posted TLPs on the PCIe link.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <[email protected]>
Description: (RW) Controls the weight of Tx posted TLPs, which influence the
proportion of outbound posted TLPs on the PCIe link.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/rx_alloc_buf_level
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <[email protected]>
Description: (RW) Control the allocated buffer watermark for inbound packets.
The packets will be stored in the buffer first and then transmitted
either when the watermark reached or when timed out.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/tx_alloc_buf_level
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <[email protected]>
Description: (RW) Control the allocated buffer watermark of outbound packets.
The packets will be stored in the buffer first and then transmitted
either when the watermark reached or when timed out.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters
Date: May 2023
KernelVersion: 6.5
Contact: Yicong Yang <[email protected]>
Description: This directory contains the files providing the PCIe Root Port filters
information used for PTT trace. Each file is named after the supported
Root Port device name <domain>:<bus>:<device>.<function>.
See the description of the "filter" in Documentation/trace/hisi-ptt.rst
for more information.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/multiselect
Date: May 2023
KernelVersion: 6.5
Contact: Yicong Yang <[email protected]>
Description: (Read) Indicates if this kind of filter can be selected at the same
time as others filters, or must be used on it's own. 1 indicates
the former case and 0 indicates the latter.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/<bdf>
Date: May 2023
KernelVersion: 6.5
Contact: Yicong Yang <[email protected]>
Description: (Read) Indicates the filter value of this Root Port filter, which
can be used to control the TLP headers to trace by the PTT trace.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters
Date: May 2023
KernelVersion: 6.5
Contact: Yicong Yang <[email protected]>
Description: This directory contains the files providing the PCIe Requester filters
information used for PTT trace. Each file is named after the supported
Endpoint device name <domain>:<bus>:<device>.<function>.
See the description of the "filter" in Documentation/trace/hisi-ptt.rst
for more information.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/multiselect
Date: May 2023
KernelVersion: 6.5
Contact: Yicong Yang <[email protected]>
Description: (Read) Indicates if this kind of filter can be selected at the same
time as others filters, or must be used on it's own. 1 indicates
the former case and 0 indicates the latter.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/<bdf>
Date: May 2023
KernelVersion: 6.5
Contact: Yicong Yang <[email protected]>
Description: (Read) Indicates the filter value of this Requester filter, which
can be used to control the TLP headers to trace by the PTT trace.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
HiSilicon PTT tune directory
1-9| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune |
| Date | 2022년 10월 |
| KernelVersion | 6.1 |
| Contact | Yicong Yang <[email protected]> |
| Description | 이 directory에는 PCIe link parameters(events)를 tuning하는 files가 있습니다. 각 file은 PCIe link event의 이름을 따릅니다. 자세한 내용은 Documentation/trace/hisi-ptt.rst를 참조합니다. |
PTT transmit TLP QoS tuning
11-39| What | 공통 metadata | 전문 번역 |
|---|---|---|
| /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl | 2022년 10월 / 6.1 / Yicong Yang <[email protected]> | (RW) PCIe link에서 outbound completion TLPs의 비율에 영향을 주는 Tx completion TLPs weight를 제어합니다. |
| /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np | 2022년 10월 / 6.1 / Yicong Yang <[email protected]> | (RW) PCIe link에서 outbound non-posted TLPs의 비율에 영향을 주는 Tx non-posted TLPs weight를 제어합니다. |
| /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p | 2022년 10월 / 6.1 / Yicong Yang <[email protected]> | (RW) PCIe link에서 outbound posted TLPs의 비율에 영향을 주는 Tx posted TLPs weight를 제어합니다. |
세 attributes에서 사용할 수 있는 tune data는 [0, 1, 2]입니다. Negative value를 쓰면 error를 반환하고 범위를 벗어난 값은 2로 변환합니다. 값은 event의 probable level을 나타냅니다.
PTT allocated-buffer watermarks
41-61| What | 공통 metadata | 전문 번역 |
|---|---|---|
| /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/rx_alloc_buf_level | 2022년 10월 / 6.1 / Yicong Yang <[email protected]> | (RW) Inbound packets의 allocated buffer watermark를 제어합니다. Packets를 먼저 buffer에 저장한 뒤 watermark에 도달하거나 timeout되면 전송합니다. |
| /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/tx_alloc_buf_level | 2022년 10월 / 6.1 / Yicong Yang <[email protected]> | (RW) Outbound packets의 allocated buffer watermark를 제어합니다. Packets를 먼저 buffer에 저장한 뒤 watermark에 도달하거나 timeout되면 전송합니다. |
두 attributes에서 사용할 수 있는 tune data는 [0, 1, 2]입니다. Negative value를 쓰면 error를 반환하고 범위를 벗어난 값은 2로 변환합니다. 값은 event의 probable level을 나타냅니다.
PTT Root Port trace filters
63-87| What | Date / Kernel / Contact | 전문 번역 |
|---|---|---|
| /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters | 2023년 5월 / 6.5 / Yicong Yang <[email protected]> | 이 directory에는 PTT trace에 사용하는 PCIe Root Port filters information을 제공하는 files가 있습니다. 각 file은 지원되는 Root Port device name <domain>:<bus>:<device>.<function>을 따릅니다. 자세한 내용은 Documentation/trace/hisi-ptt.rst의 filter 설명을 참조합니다. |
| /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/multiselect | 2023년 5월 / 6.5 / Yicong Yang <[email protected]> | (Read) 이 종류의 filter를 다른 filters와 동시에 선택할 수 있는지, 단독으로 사용해야 하는지 나타냅니다. 1은 전자, 0은 후자입니다. |
| /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/<bdf> | 2023년 5월 / 6.5 / Yicong Yang <[email protected]> | (Read) PTT trace가 추적할 TLP headers를 제어하는 데 사용할 수 있는 Root Port filter value를 나타냅니다. |
PTT Requester trace filters
89-113| What | Date / Kernel / Contact | 전문 번역 |
|---|---|---|
| /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters | 2023년 5월 / 6.5 / Yicong Yang <[email protected]> | 이 directory에는 PTT trace에 사용하는 PCIe Requester filters information을 제공하는 files가 있습니다. 각 file은 지원되는 Endpoint device name <domain>:<bus>:<device>.<function>을 따릅니다. 자세한 내용은 Documentation/trace/hisi-ptt.rst의 filter 설명을 참조합니다. |
| /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/multiselect | 2023년 5월 / 6.5 / Yicong Yang <[email protected]> | (Read) 이 종류의 filter를 다른 filters와 동시에 선택할 수 있는지, 단독으로 사용해야 하는지 나타냅니다. 1은 전자, 0은 후자입니다. |
| /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/<bdf> | 2023년 5월 / 6.5 / Yicong Yang <[email protected]> | (Read) PTT trace가 추적할 TLP headers를 제어하는 데 사용할 수 있는 Requester filter value를 나타냅니다. |
PCIe link tuning events
sysfs-bus-event_source-devices-hisi_ptt:1-9tune directory의 각 file은 이름에 해당하는 PCIe link parameter event를 조정합니다.