요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Bitstream selection and reload
sysfs-driver-genwqe:18-40curr_bitstream은 active default/backup image를 나타내고 next_bitstream과 reload_bitstream이 다음 image 선택과 PCIe card reset을 통한 reload를 담당합니다.
Telemetry, card state, clock and SR-IOV
sysfs-driver-genwqe:41-78Temperature, free-running timer, queue working time과 card state·base clock을 읽고 sriov_numvfs에 1-15 또는 0을 써 VF를 enable/disable합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/class/genwqe/genwqe<n>_card/version
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Unique bitstream identification e.g.
'0000000330336283.00000000475a4950'.
What: /sys/class/genwqe/genwqe<n>_card/appid
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Identifies the currently active card application e.g. 'GZIP'
for compression/decompression.
What: /sys/class/genwqe/genwqe<n>_card/type
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Type of the card e.g. 'GenWQE5-A7'.
What: /sys/class/genwqe/genwqe<n>_card/curr_bitstream
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Currently active bitstream. 1 is default, 0 is backup.
What: /sys/class/genwqe/genwqe<n>_card/next_bitstream
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Interface to set the next bitstream to be used.
What: /sys/class/genwqe/genwqe<n>_card/reload_bitstream
Date: May 2014
Contact: klebers@linux.vnet.ibm.com
Description: Interface to trigger a PCIe card reset to reload the bitstream.
::
sudo sh -c 'echo 1 > \
/sys/class/genwqe/genwqe0_card/reload_bitstream'
If successfully, the card will come back with the bitstream set
on 'next_bitstream'.
What: /sys/class/genwqe/genwqe<n>_card/tempsens
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Interface to read the cards temperature sense register.
What: /sys/class/genwqe/genwqe<n>_card/freerunning_timer
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Interface to read the cards free running timer.
Used for performance and utilization measurements.
What: /sys/class/genwqe/genwqe<n>_card/queue_working_time
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Interface to read queue working time.
Used for performance and utilization measurements.
What: /sys/class/genwqe/genwqe<n>_card/state
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: State of the card: "unused", "used", "error".
What: /sys/class/genwqe/genwqe<n>_card/base_clock
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Base clock frequency of the card.
What: /sys/class/genwqe/genwqe<n>_card/device/sriov_numvfs
Date: Oct 2013
Contact: haver@linux.vnet.ibm.com
Description: Enable VFs (1..15)::
sudo sh -c 'echo 15 > \
/sys/bus/pci/devices/0000\:1b\:00.0/sriov_numvfs'
Disable VFs::
Write a 0 into the same sysfs entry.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Unique bitstream identification
1-6| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/version |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Unique bitstream identification을 반환합니다. 예시는 "0000000330336283.00000000475a4950"입니다. |
Card identity, bitstream lifecycle, telemetry와 virtualization controls를 묶었습니다.
Active card application identifier
7-12| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/appid |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Currently active한 card application을 식별합니다. 예를 들어 compression/decompression application은 "GZIP"으로 표시됩니다. |
GenWQE card type
13-17| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/type |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Card type을 반환합니다. 예시는 "GenWQE5-A7"입니다. |
Currently active bitstream
18-22| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/curr_bitstream |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Currently active한 bitstream을 반환합니다. 1은 default bitstream이고 0은 backup bitstream입니다. |
Active image를 default와 backup으로 구분합니다.
Next bitstream selection
23-27| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/next_bitstream |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | 다음에 사용할 bitstream을 설정하는 interface입니다. |
Reload selected bitstream
28-40| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/reload_bitstream |
| Date | 2014년 5월 |
| Contact | klebers@linux.vnet.ibm.com |
| Description | Bitstream을 reload하도록 PCIe card reset을 trigger하는 interface입니다. 성공하면 card는 next_bitstream에 설정한 bitstream으로 다시 나타납니다. |
sudo sh -c 'echo 1 > \
/sys/class/genwqe/genwqe0_card/reload_bitstream'
next_bitstream selection이 reset 뒤 active image가 되는 순서입니다.
Card temperature-sense register
41-45| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/tempsens |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Card의 temperature sense register를 읽는 interface입니다. |
Card free-running timer
46-51| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/freerunning_timer |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Card의 free-running timer를 읽습니다. Performance와 utilization measurement에 사용합니다. |
Queue working time
52-57| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/queue_working_time |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Queue working time을 읽습니다. Performance와 utilization measurement에 사용합니다. |
GenWQE card state
58-62| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/state |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Card state를 "unused", "used" 또는 "error"로 반환합니다. |
State attribute가 반환하는 세 가지 string입니다.
Card base-clock frequency
63-67| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/base_clock |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | Card의 base clock frequency를 반환합니다. |
GenWQE SR-IOV virtual functions
68-78| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/genwqe/genwqe<n>_card/device/sriov_numvfs |
| Date | 2013년 10월 |
| Contact | haver@linux.vnet.ibm.com |
| Description | 1-15를 write하면 해당 수의 VFs를 enable합니다. 같은 sysfs entry에 0을 write하면 VFs를 disable합니다. |
sudo sh -c 'echo 15 > \
/sys/bus/pci/devices/0000\:1b\:00.0/sriov_numvfs'
sriov_numvfs write value가 VF allocation을 제어합니다.
Card and application identity
sysfs-driver-genwqe:1-17version, appid와 type이 bitstream identifier, active card application과 hardware type을 각각 보고합니다.