요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
State flags and interfaces
sysfs-bus-nfit:49-83flags는 persistence와 energy source에 관련된 NVDIMM health 상태를, format 계열은 direct persistent-memory mapping 또는 block aperture interface 지원을 나타냅니다.
Vendor and command metadata
sysfs-bus-nfit:84-155Vendor·subsystem 식별자, DSM function bitmask, command family, ACPI NVDIMM identifier를 읽기 전용으로 제공합니다.
ARS and firmware activation
sysfs-bus-nfit:156-224NFIT bus revision과 DSM capability를 보고하고, Address Range Scrub 실행·hardware error scrub 정책·Intel firmware activation idle 정책을 제어합니다.
NFIT range identity
sysfs-bus-nfit:225-233range_index는 BIOS가 address range에 부여한 고유 번호이며 0은 예약되어 index로 사용하지 않습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
For all of the nmem device attributes under ``nfit/*``, see the 'NVDIMM Firmware
Interface Table (NFIT)' section in the ACPI specification
(http://www.uefi.org/specifications) for more details.
What: /sys/bus/nd/devices/nmemX/nfit/serial
Date: Jun, 2015
KernelVersion: v4.2
Contact: nvdimm@lists.linux.dev
Description:
(RO) Serial number of the NVDIMM (non-volatile dual in-line
memory module), assigned by the module vendor.
What: /sys/bus/nd/devices/nmemX/nfit/handle
Date: Apr, 2015
KernelVersion: v4.2
Contact: nvdimm@lists.linux.dev
Description:
(RO) The address (given by the _ADR object) of the device on its
parent bus of the NVDIMM device containing the NVDIMM region.
What: /sys/bus/nd/devices/nmemX/nfit/device
Date: Apr, 2015
KernelVersion: v4.1
Contact: nvdimm@lists.linux.dev
Description:
(RO) Device id for the NVDIMM, assigned by the module vendor.
What: /sys/bus/nd/devices/nmemX/nfit/rev_id
Date: Jun, 2015
KernelVersion: v4.2
Contact: nvdimm@lists.linux.dev
Description:
(RO) Revision of the NVDIMM, assigned by the module vendor.
What: /sys/bus/nd/devices/nmemX/nfit/phys_id
Date: Apr, 2015
KernelVersion: v4.2
Contact: nvdimm@lists.linux.dev
Description:
(RO) Handle (i.e., instance number) for the SMBIOS (system
management BIOS) Memory Device structure describing the NVDIMM
containing the NVDIMM region.
What: /sys/bus/nd/devices/nmemX/nfit/flags
Date: Jun, 2015
KernelVersion: v4.2
Contact: nvdimm@lists.linux.dev
Description:
(RO) The flags in the NFIT memory device sub-structure indicate
the state of the data on the nvdimm relative to its energy
source or last "flush to persistence".
The attribute is a translation of the 'NVDIMM State Flags' field
in section 5.2.25.3 'NVDIMM Region Mapping' Structure of the
ACPI specification 6.2.
The health states are "save_fail", "restore_fail", "flush_fail",
"not_armed", "smart_event", "map_fail" and "smart_notify".
What: /sys/bus/nd/devices/nmemX/nfit/format
What: /sys/bus/nd/devices/nmemX/nfit/format1
What: /sys/bus/nd/devices/nmemX/nfit/formats
Date: Apr, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) The interface codes indicate support for persistent memory
mapped directly into system physical address space and / or a
block aperture access mechanism to the NVDIMM media.
The 'formats' attribute displays the number of supported
interfaces.
This layout is compatible with existing libndctl binaries that
only expect one code per-dimm as they will ignore
nmemX/nfit/formats and nmemX/nfit/formatN.
What: /sys/bus/nd/devices/nmemX/nfit/vendor
Date: Apr, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) Vendor id of the NVDIMM.
What: /sys/bus/nd/devices/nmemX/nfit/dsm_mask
Date: May, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) The bitmask indicates the supported device specific control
functions relative to the NVDIMM command family supported by the
device
What: /sys/bus/nd/devices/nmemX/nfit/family
Date: Apr, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) Displays the NVDIMM family command sets. Values
0, 1, 2 and 3 correspond to NVDIMM_FAMILY_INTEL,
NVDIMM_FAMILY_HPE1, NVDIMM_FAMILY_HPE2 and NVDIMM_FAMILY_MSFT
respectively.
See the specifications for these command families here:
http://pmem.io/documents/NVDIMM_DSM_Interface-V1.6.pdf
https://github.com/HewlettPackard/hpe-nvm/blob/master/Documentation/
https://msdn.microsoft.com/library/windows/hardware/mt604741"
What: /sys/bus/nd/devices/nmemX/nfit/id
Date: Apr, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) ACPI specification 6.2 section 5.2.25.9, defines an
identifier for an NVDIMM, which reflects the id attribute.
What: /sys/bus/nd/devices/nmemX/nfit/subsystem_vendor
Date: Apr, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) Sub-system vendor id of the NVDIMM non-volatile memory
subsystem controller.
What: /sys/bus/nd/devices/nmemX/nfit/subsystem_rev_id
Date: Apr, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) Sub-system revision id of the NVDIMM non-volatile memory subsystem
controller, assigned by the non-volatile memory subsystem
controller vendor.
What: /sys/bus/nd/devices/nmemX/nfit/subsystem_device
Date: Apr, 2016
KernelVersion: v4.7
Contact: nvdimm@lists.linux.dev
Description:
(RO) Sub-system device id for the NVDIMM non-volatile memory
subsystem controller, assigned by the non-volatile memory
subsystem controller vendor.
What: /sys/bus/nd/devices/ndbusX/nfit/revision
Date: Jun, 2015
KernelVersion: v4.2
Contact: nvdimm@lists.linux.dev
Description:
(RO) ACPI NFIT table revision number.
What: /sys/bus/nd/devices/ndbusX/nfit/scrub
Date: Sep, 2016
KernelVersion: v4.9
Contact: nvdimm@lists.linux.dev
Description:
(RW) This shows the number of full Address Range Scrubs (ARS)
that have been completed since driver load time. Userspace can
wait on this using select/poll etc. A '+' at the end indicates
an ARS is in progress
Writing a value of 1 triggers an ARS scan.
What: /sys/bus/nd/devices/ndbusX/nfit/hw_error_scrub
Date: Sep, 2016
KernelVersion: v4.9
Contact: nvdimm@lists.linux.dev
Description:
(RW) Provides a way to toggle the behavior between just adding
the address (cache line) where the MCE happened to the poison
list and doing a full scrub. The former (selective insertion of
the address) is done unconditionally.
This attribute can have the following values written to it:
'0': Switch to the default mode where an exception will only
insert the address of the memory error into the poison and
badblocks lists.
'1': Enable a full scrub to happen if an exception for a memory
error is received.
What: /sys/bus/nd/devices/ndbusX/nfit/dsm_mask
Date: Jun, 2017
KernelVersion: v4.13
Contact: nvdimm@lists.linux.dev
Description:
(RO) The bitmask indicates the supported bus specific control
functions. See the section named 'NVDIMM Root Device _DSMs' in
the ACPI specification.
What: /sys/bus/nd/devices/ndbusX/nfit/firmware_activate_noidle
Date: Apr, 2020
KernelVersion: v5.8
Contact: nvdimm@lists.linux.dev
Description:
(RW) The Intel platform implementation of firmware activate
support exposes an option let the platform force idle devices in
the system over the activation event, or trust that the OS will
do it. The safe default is to let the platform force idle
devices since the kernel is already in a suspend state, and on
the chance that a driver does not properly quiesce bus-mastering
after a suspend callback the platform will handle it. However,
the activation might abort if, for example, platform firmware
determines that the activation time exceeds the max PCI-E
completion timeout. Since the platform does not know whether the
OS is running the activation from a suspend context it aborts,
but if the system owner trusts driver suspend callback to be
sufficient then 'firmware_activation_noidle' can be
enabled to bypass the activation abort.
What: /sys/bus/nd/devices/regionX/nfit/range_index
Date: Jun, 2015
KernelVersion: v4.2
Contact: nvdimm@lists.linux.dev
Description:
(RO) A unique number provided by the BIOS to identify an address
range. Used by NVDIMM Region Mapping Structure to uniquely refer
to this structure. Value of 0 is reserved and not used as an
index.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
NFIT 참고 문서와 NVDIMM serial 번호
1-13nfit/* 아래의 모든 nmem 장치 속성에 관한 자세한 내용은 ACPI specification의 'NVDIMM Firmware Interface Table (NFIT)' 절(http://www.uefi.org/specifications)을 참조하십시오.
| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/serial |
| Date | 2015년 6월 |
| KernelVersion | v4.2 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) Module vendor가 할당한 NVDIMM(non-volatile dual in-line memory module)의 serial 번호입니다. |
NVDIMM parent bus address
14-22| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/handle |
| Date | 2015년 4월 |
| KernelVersion | v4.2 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) NVDIMM region을 포함하는 NVDIMM 장치가 parent bus에서 사용하는 address입니다. 이 address는 _ADR object가 제공합니다. |
NVDIMM device ID
23-30| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/device |
| Date | 2015년 4월 |
| KernelVersion | v4.1 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) Module vendor가 할당한 NVDIMM device ID입니다. |
NVDIMM revision
31-38| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/rev_id |
| Date | 2015년 6월 |
| KernelVersion | v4.2 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) Module vendor가 할당한 NVDIMM revision입니다. |
SMBIOS Memory Device handle
39-48| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/phys_id |
| Date | 2015년 4월 |
| KernelVersion | v4.2 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) NVDIMM region을 포함하는 NVDIMM을 설명하는 SMBIOS(system management BIOS) Memory Device structure의 handle, 즉 instance 번호입니다. |
NVDIMM health 상태 flag
49-65| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/flags |
| Date | 2015년 6월 |
| KernelVersion | v4.2 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) NFIT memory device 하위 structure의 flag는 energy source 또는 마지막 "flush to persistence"를 기준으로 NVDIMM 데이터의 상태를 나타냅니다. 이 속성은 ACPI specification 6.2의 5.2.25.3절 'NVDIMM Region Mapping' Structure에 있는 'NVDIMM State Flags' field를 변환한 것입니다. |
| Health 상태 | 의미 |
|---|---|
| save_fail | 저장 실패 |
| restore_fail | 복원 실패 |
| flush_fail | flush 실패 |
| not_armed | armed 상태가 아님 |
| smart_event | SMART event |
| map_fail | mapping 실패 |
| smart_notify | SMART notification |
지원 NVDIMM media interface
66-83| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/format |
| What | /sys/bus/nd/devices/nmemX/nfit/format1 |
| What | /sys/bus/nd/devices/nmemX/nfit/formats |
| Date | 2016년 4월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) Interface code는 system physical address space에 직접 mapping되는 persistent memory와 NVDIMM media에 대한 block aperture access mechanism 중 하나 또는 둘 모두의 지원 여부를 나타냅니다. formats 속성은 지원되는 interface 수를 표시합니다. 이 layout은 DIMM당 code 하나만 예상하는 기존 libndctl binary와 호환됩니다. 이 binary들은 nmemX/nfit/formats와 nmemX/nfit/formatN을 무시합니다. |
NVDIMM vendor ID
84-91| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/vendor |
| Date | 2016년 4월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) NVDIMM의 vendor ID입니다. |
NVDIMM device DSM function mask
92-101| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/dsm_mask |
| Date | 2016년 5월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) 이 bitmask는 장치가 지원하는 NVDIMM command family를 기준으로, 지원되는 device-specific control function을 나타냅니다. |
NVDIMM command family
102-117| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/family |
| Date | 2016년 4월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) NVDIMM family command set을 표시합니다. |
| Specification | http://pmem.io/documents/NVDIMM_DSM_Interface-V1.6.pdf / https://github.com/HewlettPackard/hpe-nvm/blob/master/Documentation/ / https://msdn.microsoft.com/library/windows/hardware/mt604741". 원문의 마지막 URL에는 닫는 큰따옴표가 붙어 있습니다. |
| 값 | Command family |
|---|---|
| 0 | NVDIMM_FAMILY_INTEL |
| 1 | NVDIMM_FAMILY_HPE1 |
| 2 | NVDIMM_FAMILY_HPE2 |
| 3 | NVDIMM_FAMILY_MSFT |
ACPI NVDIMM identifier
118-126| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/id |
| Date | 2016년 4월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) ACPI specification 6.2의 5.2.25.9절은 NVDIMM identifier를 정의하며, 이 값이 id 속성에 반영됩니다. |
NVDIMM subsystem vendor ID
127-135| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/subsystem_vendor |
| Date | 2016년 4월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) NVDIMM non-volatile memory subsystem controller의 subsystem vendor ID입니다. |
NVDIMM subsystem revision ID
136-145| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/subsystem_rev_id |
| Date | 2016년 4월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) Non-volatile memory subsystem controller vendor가 할당한 NVDIMM non-volatile memory subsystem controller의 subsystem revision ID입니다. |
NVDIMM subsystem device ID
146-155| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/nmemX/nfit/subsystem_device |
| Date | 2016년 4월 |
| KernelVersion | v4.7 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) Non-volatile memory subsystem controller vendor가 할당한 NVDIMM non-volatile memory subsystem controller의 subsystem device ID입니다. |
ACPI NFIT table revision
156-163| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/ndbusX/nfit/revision |
| Date | 2015년 6월 |
| KernelVersion | v4.2 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) ACPI NFIT table revision 번호입니다. |
Address Range Scrub 상태와 실행
164-176| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/ndbusX/nfit/scrub |
| Date | 2016년 9월 |
| KernelVersion | v4.9 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RW) Driver가 load된 뒤 완료된 전체 Address Range Scrub(ARS) 횟수를 표시합니다. Userspace는 select/poll 등으로 이 값을 기다릴 수 있습니다. 값 끝의 '+'는 ARS가 진행 중임을 나타냅니다. 1을 쓰면 ARS scan을 시작합니다. |
Hardware error scrub 정책
177-195| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/ndbusX/nfit/hw_error_scrub |
| Date | 2016년 9월 |
| KernelVersion | v4.9 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RW) MCE가 발생한 address(cache line)만 poison list에 추가하는 동작과 전체 scrub을 수행하는 동작 사이를 전환합니다. Address를 선택적으로 추가하는 전자의 동작은 조건 없이 수행됩니다. |
| 쓰기 값 | 동작 |
|---|---|
| 0 | 기본 모드로 전환합니다. Exception은 memory error address만 poison list와 badblocks list에 삽입합니다. |
| 1 | Memory error exception을 받으면 전체 scrub을 수행하도록 활성화합니다. |
NFIT bus DSM function mask
196-204| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/ndbusX/nfit/dsm_mask |
| Date | 2017년 6월 |
| KernelVersion | v4.13 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) 이 bitmask는 지원되는 bus-specific control function을 나타냅니다. ACPI specification의 'NVDIMM Root Device _DSMs' 절을 참조하십시오. |
Firmware activation idle 우회
205-224| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/ndbusX/nfit/firmware_activate_noidle |
| Date | 2020년 4월 |
| KernelVersion | v5.8 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RW) Intel platform의 firmware activation 구현은 activation event 동안 platform이 system 장치를 강제로 idle 상태로 만들게 할지, OS가 이를 수행한다고 신뢰할지 선택하게 합니다. 안전한 기본값은 platform이 장치를 강제로 idle 상태로 만드는 것입니다. Kernel이 이미 suspend 상태이고, driver가 suspend callback 뒤 bus-mastering을 올바르게 quiesce하지 못해도 platform이 처리할 수 있기 때문입니다. 그러나 platform firmware가 activation 시간이 최대 PCI-E completion timeout을 넘는다고 판단하는 등의 경우 activation이 중단될 수 있습니다. Platform은 OS가 suspend context에서 activation을 실행하는지 알지 못해 중단하지만, system owner가 driver suspend callback만으로 충분하다고 신뢰한다면 'firmware_activation_noidle'을 활성화하여 activation 중단을 우회할 수 있습니다. |
NVDIMM region range index
225-233| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nd/devices/regionX/nfit/range_index |
| Date | 2015년 6월 |
| KernelVersion | v4.2 |
| Contact | nvdimm@lists.linux.dev |
| Description | (RO) BIOS가 address range를 식별하도록 제공하는 고유 번호입니다. NVDIMM Region Mapping Structure가 이 structure를 고유하게 참조하는 데 사용합니다. 값 0은 예약되어 index로 사용하지 않습니다. |
NVDIMM identity
sysfs-bus-nfit:1-48serial, handle, device, rev_id, phys_id는 vendor·ACPI·SMBIOS가 제공하는 NVDIMM 식별 정보를 노출합니다.