요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Card OS state and shutdown
sysfs-class-mic:36-89Card OS의 6개 read state, boot·reset·shutdown action과 5개 shutdown reason을 구분합니다.
Boot configuration
sysfs-class-mic:91-136Kernel command line, /lib/firmware/ 아래 firmware·ramdisk image와 linux·flash bootmode를 설정합니다.
Debug log buffer
sysfs-class-mic:138-164System.map에서 얻은 log buffer와 length의 kernel virtual address를 설정해 debugfs 접근에 사용합니다.
Crash heartbeat
sysfs-class-mic:166-178기본 enable된 heartbeat notification과 disable 시 user-space crash detection 책임을 설명합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/class/mic/
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
The mic class directory belongs to Intel MIC devices and
provides information per MIC device. An Intel MIC device is a
PCIe form factor add-in Coprocessor card based on the Intel Many
Integrated Core (MIC) architecture that runs a Linux OS.
What: /sys/class/mic/mic<X>
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
The directories /sys/class/mic/mic0, /sys/class/mic/mic1 etc.,
represent MIC devices (0,1,..etc). Each directory has
information specific to that MIC device.
What: /sys/class/mic/mic<X>/family
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
Provides information about the Coprocessor family for an Intel
MIC device. For example - "x100"
What: /sys/class/mic/mic<X>/stepping
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
Provides information about the silicon stepping for an Intel
MIC device. For example - "A0" or "B0"
What: /sys/class/mic/mic<X>/state
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
When read, this entry provides the current state of an Intel
MIC device in the context of the card OS. Possible values that
will be read are:
=============== ===============================================
"ready" The MIC device is ready to boot the card OS.
On reading this entry after an OSPM resume,
a "boot" has to be written to this entry if
the card was previously shutdown during OSPM
suspend.
"booting" The MIC device has initiated booting a card OS.
"online" The MIC device has completed boot and is online
"shutting_down" The card OS is shutting down.
"resetting" A reset has been initiated for the MIC device
"reset_failed" The MIC device has failed to reset.
=============== ===============================================
When written, this sysfs entry triggers different state change
operations depending upon the current state of the card OS.
Acceptable values are:
========== ===================================================
"boot" Boot the card OS image specified by the combination
of firmware, ramdisk, cmdline and bootmode
sysfs entries.
"reset" Initiates device reset.
"shutdown" Initiates card OS shutdown.
========== ===================================================
What: /sys/class/mic/mic<X>/shutdown_status
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
An Intel MIC device runs a Linux OS during its operation. This
OS can shutdown because of various reasons. When read, this
entry provides the status on why the card OS was shutdown.
Possible values are:
========== ===================================================
"nop" shutdown status is not applicable, when the card OS
is "online"
"crashed" Shutdown because of a HW or SW crash.
"halted" Shutdown because of a halt command.
"poweroff" Shutdown because of a poweroff command.
"restart" Shutdown because of a restart command.
========== ===================================================
What: /sys/class/mic/mic<X>/cmdline
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
An Intel MIC device runs a Linux OS during its operation. Before
booting this card OS, it is possible to pass kernel command line
options to configure various features in it, similar to
self-bootable machines. When read, this entry provides
information about the current kernel command line options set to
boot the card OS. This entry can be written to change the
existing kernel command line options. Typically, the user would
want to read the current command line options, append new ones
or modify existing ones and then write the whole kernel command
line back to this entry.
What: /sys/class/mic/mic<X>/firmware
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
When read, this sysfs entry provides the path name under
/lib/firmware/ where the firmware image to be booted on the
card can be found. The entry can be written to change the
firmware image location under /lib/firmware/.
What: /sys/class/mic/mic<X>/ramdisk
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
When read, this sysfs entry provides the path name under
/lib/firmware/ where the ramdisk image to be used during card
OS boot can be found. The entry can be written to change
the ramdisk image location under /lib/firmware/.
What: /sys/class/mic/mic<X>/bootmode
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
When read, this sysfs entry provides the current bootmode for
the card. This sysfs entry can be written with the following
valid strings:
a) linux - Boot a Linux image.
b) flash - Boot an image for flash updates.
What: /sys/class/mic/mic<X>/log_buf_addr
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
An Intel MIC device runs a Linux OS during its operation. For
debugging purpose and early kernel boot messages, the user can
access the card OS log buffer via debugfs. When read, this entry
provides the kernel virtual address of the buffer where the card
OS log buffer can be read. This entry is written by the host
configuration daemon to set the log buffer address. The correct
log buffer address to be written can be found in the System.map
file of the card OS.
What: /sys/class/mic/mic<X>/log_buf_len
Date: October 2013
KernelVersion: 3.13
Contact: Sudeep Dutt <[email protected]>
Description:
An Intel MIC device runs a Linux OS during its operation. For
debugging purpose and early kernel boot messages, the user can
access the card OS log buffer via debugfs. When read, this entry
provides the kernel virtual address where the card OS log buffer
length can be read. This entry is written by host configuration
daemon to set the log buffer length address. The correct log
buffer length address to be written can be found in the
System.map file of the card OS.
What: /sys/class/mic/mic<X>/heartbeat_enable
Date: March 2015
KernelVersion: 4.4
Contact: Ashutosh Dixit <[email protected]>
Description:
The MIC drivers detect and inform user space about card crashes
via a heartbeat mechanism (see the description of
shutdown_status above). User space can turn off this
notification by setting heartbeat_enable to 0 and enable it by
setting this entry to 1. If this notification is disabled it is
the responsibility of user space to detect card crashes via
alternative means such as a network ping. This setting is
enabled by default.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Intel MIC device class
1-9| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/ |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | mic class directory는 Intel MIC device에 속하며 MIC device별 정보를 제공합니다. Intel MIC device는 Intel Many Integrated Core(MIC) architecture에 기반하고 Linux OS를 실행하는 PCIe form-factor add-in coprocessor card입니다. |
MIC device instance
11-18| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X> |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | /sys/class/mic/mic0, /sys/class/mic/mic1 등의 directory는 MIC device 0, 1 등을 나타냅니다. 각 directory에는 해당 MIC device에 고유한 정보가 들어 있습니다. |
Class에서 numbered device instance와 instance별 제어·상태 속성으로 이어지는 구조입니다.
Coprocessor family
20-26| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/family |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | Intel MIC device의 coprocessor family 정보를 제공합니다. 예는 x100입니다. |
Silicon stepping
28-34| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/stepping |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | Intel MIC device의 silicon stepping 정보를 제공합니다. 예는 A0 또는 B0입니다. |
Coprocessor 계열과 silicon revision 정보를 구분합니다.
Card OS state and actions
36-70| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/state |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | 읽으면 card OS 관점의 현재 Intel MIC device state를 제공합니다. 가능한 read 값은 ready, booting, online, shutting_down, resetting, reset_failed입니다. 쓰면 card OS의 현재 state에 따라 state-change operation을 trigger하며 허용되는 값은 boot, reset, shutdown입니다. |
원문 첫 번째 ASCII 표의 read state와 의미입니다.
원문 두 번째 ASCII 표의 허용 write 값과 operation입니다.
Card OS shutdown status
72-89| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/shutdown_status |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | Intel MIC device의 Linux OS가 shutdown된 이유를 읽어 제공합니다. 가능한 값은 nop, crashed, halted, poweroff, restart입니다. |
원문 ASCII 표의 shutdown reason을 구조화했습니다.
Card OS kernel command line
91-105| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/cmdline |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | Card OS를 boot하기 전에 self-bootable machine과 비슷하게 여러 feature를 구성하는 kernel command-line option을 전달할 수 있습니다. 읽으면 card OS boot에 설정된 현재 option을 제공하고 쓰면 기존 option을 변경합니다. 일반적으로 현재 command line을 읽고 새 option을 추가하거나 기존 option을 수정한 뒤 전체 kernel command line을 이 항목에 다시 씁니다. |
Card firmware image
107-115| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/firmware |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | 읽으면 card에서 boot할 firmware image가 있는 /lib/firmware/ 아래 path name을 제공합니다. 쓰면 /lib/firmware/ 아래 firmware image 위치를 변경합니다. |
Card OS ramdisk image
117-125| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/ramdisk |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | 읽으면 card OS boot 중 사용할 ramdisk image가 있는 /lib/firmware/ 아래 path name을 제공합니다. 쓰면 /lib/firmware/ 아래 ramdisk image 위치를 변경합니다. |
Card boot mode
127-136| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/bootmode |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | 읽으면 card의 현재 bootmode를 제공합니다. 쓸 수 있는 유효 문자열은 Linux image를 boot하는 linux와 flash update용 image를 boot하는 flash입니다. |
원문 목록의 유효 bootmode 문자열입니다.
Card OS log buffer address
138-150| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/log_buf_addr |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | Debugging과 early kernel boot message를 위해 user는 debugfs를 통해 card OS log buffer에 접근할 수 있습니다. 읽으면 card OS log buffer를 읽을 수 있는 buffer의 kernel virtual address를 제공합니다. Host configuration daemon이 log buffer address를 설정하기 위해 이 항목을 씁니다. 쓸 올바른 log buffer address는 card OS의 System.map file에서 찾을 수 있습니다. |
Card OS log buffer length address
152-164| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/log_buf_len |
| Date | 2013년 10월 |
| KernelVersion | 3.13 |
| Contact | Sudeep Dutt <[email protected]> |
| Description | Debugging과 early kernel boot message를 위해 user는 debugfs를 통해 card OS log buffer에 접근할 수 있습니다. 읽으면 card OS log buffer length를 읽을 수 있는 kernel virtual address를 제공합니다. Host configuration daemon이 log buffer length address를 설정하기 위해 이 항목을 씁니다. 쓸 올바른 address는 card OS의 System.map file에서 찾을 수 있습니다. |
두 속성은 모두 System.map에서 찾은 kernel virtual address를 host configuration daemon이 설정합니다.
Card crash heartbeat
166-178| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/mic/mic<X>/heartbeat_enable |
| Date | 2015년 3월 |
| KernelVersion | 4.4 |
| Contact | Ashutosh Dixit <[email protected]> |
| Description | MIC driver는 heartbeat mechanism으로 card crash를 감지하고 user space에 알립니다. shutdown_status 설명도 참조하십시오. heartbeat_enable을 0으로 설정하면 notification을 끄고 1로 설정하면 켭니다. Notification을 disable하면 network ping 같은 대체 방법으로 card crash를 감지할 책임이 user space에 있습니다. 기본값은 enable입니다. |
Heartbeat setting과 crash detection 책임을 구분합니다.
Device topology and identity
sysfs-class-mic:1-34PCIe MIC coprocessor별 mic<X> instance와 family·silicon stepping 정보를 제공합니다.