요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Hardware error-isolation policy
sysfs-driver-uacce:22-39isolate_strategy는 시간당 hardware error threshold를 0~65535로 설정하고 isolate는 1 unavailable, 0 available state를 읽습니다.
Algorithms and queue-region sizes
sysfs-driver-uacce:40-57algorithms는 newline-separated arbitrary strings를 제공하고 region_mmio_size와 region_dus_size는 queue file regions의 byte size를 반환합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/class/uacce/<dev_name>/api
Date: Feb 2020
KernelVersion: 5.7
Contact: [email protected]
Description: Api of the device
Can be any string and up to userspace to parse.
Application use the api to match the correct driver
What: /sys/class/uacce/<dev_name>/flags
Date: Feb 2020
KernelVersion: 5.7
Contact: [email protected]
Description: Attributes of the device, see UACCE_DEV_xxx flag defined in uacce.h
What: /sys/class/uacce/<dev_name>/available_instances
Date: Feb 2020
KernelVersion: 5.7
Contact: [email protected]
Description: Available instances left of the device
Return -ENODEV if uacce_ops get_available_instances is not provided
What: /sys/class/uacce/<dev_name>/isolate_strategy
Date: Nov 2022
KernelVersion: 6.1
Contact: [email protected]
Description: (RW) A sysfs node that configure the error threshold for the hardware
isolation strategy. This size is a configured integer value, which is the
number of threshold for hardware errors occurred in one hour. The default is 0.
0 means never isolate the device. The maximum value is 65535. You can write
a number of threshold based on your hardware.
What: /sys/class/uacce/<dev_name>/isolate
Date: Nov 2022
KernelVersion: 6.1
Contact: [email protected]
Description: (R) A sysfs node that read the device isolated state. The value 1
means the device is unavailable. The 0 means the device is
available.
What: /sys/class/uacce/<dev_name>/algorithms
Date: Feb 2020
KernelVersion: 5.7
Contact: [email protected]
Description: Algorithms supported by this accelerator, separated by new line.
Can be any string and up to userspace to parse.
What: /sys/class/uacce/<dev_name>/region_mmio_size
Date: Feb 2020
KernelVersion: 5.7
Contact: [email protected]
Description: Size (bytes) of mmio region queue file
What: /sys/class/uacce/<dev_name>/region_dus_size
Date: Feb 2020
KernelVersion: 5.7
Contact: [email protected]
Description: Size (bytes) of dus region queue file
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Accelerator API identifier
1-8| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/api |
| Date | 2020년 2월 |
| KernelVersion | 5.7 |
| Contact | [email protected] |
| Description | Device의 API입니다. 임의 string일 수 있으며 userspace가 parse합니다. Application은 API를 사용해 올바른 driver를 match합니다. |
| Access | Read-only |
Identity, capacity, isolation과 queue-region attributes를 역할별로 정리했습니다.
Accelerator device flags
9-14| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/flags |
| Date | 2020년 2월 |
| KernelVersion | 5.7 |
| Contact | [email protected] |
| Description | Device attributes이며 uacce.h에 정의된 UACCE_DEV_xxx flag를 참조합니다. |
| Access | Read-only |
Available accelerator instances
15-21| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/available_instances |
| Date | 2020년 2월 |
| KernelVersion | 5.7 |
| Contact | [email protected] |
| Description | Device에 남은 available instances 수를 반환합니다. uacce_ops get_available_instances가 제공되지 않으면 -ENODEV를 반환합니다. |
| Access | Read-only |
Hardware isolation threshold
22-31| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/isolate_strategy |
| Date | 2022년 11월 |
| KernelVersion | 6.1 |
| Contact | [email protected] |
| Description | Hardware isolation strategy의 error threshold를 구성하는 read-write node입니다. 값은 한 시간에 발생한 hardware errors의 threshold 수를 나타내는 integer입니다. Default는 0이고 0은 device를 절대 isolate하지 않음을 뜻합니다. Maximum은 65535이며 hardware에 맞는 threshold 수를 쓸 수 있습니다. |
| Access | Read-write |
| Values | 0 = never isolate; maximum 65535 |
Hourly error threshold와 isolate state values를 구분합니다.
Accelerator isolated state
32-39| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/isolate |
| Date | 2022년 11월 |
| KernelVersion | 6.1 |
| Contact | [email protected] |
| Description | Device isolated state를 읽는 node입니다. 1은 device가 unavailable, 0은 available임을 뜻합니다. |
| Access | Read-only |
| Values | 1 = unavailable; 0 = available |
Supported accelerator algorithms
40-46| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/algorithms |
| Date | 2020년 2월 |
| KernelVersion | 5.7 |
| Contact | [email protected] |
| Description | 이 accelerator가 지원하는 algorithms를 newline으로 구분해 반환합니다. 임의 string일 수 있으며 userspace가 parse합니다. |
| Access | Read-only |
MMIO queue-region size
47-52| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/region_mmio_size |
| Date | 2020년 2월 |
| KernelVersion | 5.7 |
| Contact | [email protected] |
| Description | Queue file의 MMIO region size를 bytes 단위로 반환합니다. |
| Access | Read-only |
| Unit | Bytes |
DUS queue-region size
53-57| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/uacce/<dev_name>/region_dus_size |
| Date | 2020년 2월 |
| KernelVersion | 5.7 |
| Contact | [email protected] |
| Description | Queue file의 DUS region size를 bytes 단위로 반환합니다. |
| Access | Read-only |
| Unit | Bytes |
두 region-size attributes와 공통 byte unit입니다.
API, flags and available instances
sysfs-driver-uacce:1-21api와 flags는 userspace driver matching·device attributes를 제공하고 available_instances는 남은 instance 수 또는 unsupported operation의 -ENODEV를 반환합니다.