forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'docs-4.17' of git://git.lwn.net/linux
Pull documentation updates from Jonathan Corbet: "There's been a fair amount of activity in Documentation/ this time around: - Lots of work aligning Documentation/ABI with reality, done by Aishwarya Pant. - The trace documentation has been converted to RST by Changbin Du - I thrashed up kernel-doc to deal with a parsing issue and to try to make the code more readable. It's still a 20+-year-old Perl hack, though. - Lots of other updates, typo fixes, and more" * tag 'docs-4.17' of git://git.lwn.net/linux: (82 commits) Documentation/process: update FUSE project website docs: kernel-doc: fix parsing of arrays dmaengine: Fix spelling for parenthesis in dmatest documentation dmaengine: Make dmatest.rst indeed reST compatible dmaengine: Add note to dmatest documentation about supported channels Documentation: magic-numbers: Fix typo Documentation: admin-guide: add kvmconfig, xenconfig and tinyconfig commands Input: alps - Update documentation for trackstick v3 format Documentation: Mention why %p prints ptrval COPYING: use the new text with points to the license files COPYING: create a new file with points to the Kernel license files Input: trackpoint: document sysfs interface xfs: Change URL for the project in xfs.txt char/bsr: add sysfs interface documentation acpi: nfit: document sysfs interface block: rbd: update sysfs interface Documentation/sparse: fix typo Documentation/CodingStyle: Add an example for braces docs/vm: update 00-INDEX kernel-doc: Remove __sched markings ...
- Loading branch information
Showing
62 changed files
with
6,900 additions
and
5,452 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
What: /sys/block/etherd*/mac | ||
Date: Apr, 2005 | ||
KernelVersion: v2.6.12 | ||
Contact: Ed L. Cashin <[email protected]> | ||
Description: | ||
(RO) The ethernet address of the remote Ata over Ethernet (AoE) | ||
device. | ||
|
||
What: /sys/block/etherd*/netif | ||
Date: Apr, 2005 | ||
KernelVersion: v2.6.12 | ||
Contact: Ed L. Cashin <[email protected]> | ||
Description: | ||
(RO) The names of the network interfaces on the localhost (comma | ||
separated) through which we are communicating with the remote | ||
AoE device. | ||
|
||
What: /sys/block/etherd*/state | ||
Date: Apr, 2005 | ||
KernelVersion: v2.6.12 | ||
Contact: Ed L. Cashin <[email protected]> | ||
Description: | ||
(RO) Device status. The state attribute is "up" when the device | ||
is ready for I/O and "down" if detected but unusable. The | ||
"down,closewait" state shows that the device is still open and | ||
cannot come up again until it has been closed. The "up,kickme" | ||
state means that the driver wants to send more commands to the | ||
target but found out there were already the max number of | ||
commands waiting for a response. It will retry again after being | ||
kicked by the periodic timer handler routine. | ||
|
||
What: /sys/block/etherd*/firmware-version | ||
Date: Apr, 2005 | ||
KernelVersion: v2.6.12 | ||
Contact: Ed L. Cashin <[email protected]> | ||
Description: | ||
(RO) Version of the firmware in the target. | ||
|
||
What: /sys/block/etherd*/payload | ||
Date: Dec, 2012 | ||
KernelVersion: v3.10 | ||
Contact: Ed L. Cashin <[email protected]> | ||
Description: | ||
(RO) The amount of user data transferred (in bytes) inside each AoE | ||
command on the network, network headers excluded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
What: /sys/block/loopX/loop/autoclear | ||
Date: Aug, 2010 | ||
KernelVersion: v2.6.37 | ||
Contact: [email protected] | ||
Description: | ||
(RO) Shows if the device is in autoclear mode or not ( "1" or | ||
"0"). Autoclear (if set) indicates that the loopback device will | ||
self-distruct after last close. | ||
|
||
What: /sys/block/loopX/loop/backing_file | ||
Date: Aug, 2010 | ||
KernelVersion: v2.6.37 | ||
Contact: [email protected] | ||
Description: | ||
(RO) The path of the backing file that the loop device maps its | ||
data blocks to. | ||
|
||
What: /sys/block/loopX/loop/offset | ||
Date: Aug, 2010 | ||
KernelVersion: v2.6.37 | ||
Contact: [email protected] | ||
Description: | ||
(RO) Start offset (in bytes). | ||
|
||
What: /sys/block/loopX/loop/sizelimit | ||
Date: Aug, 2010 | ||
KernelVersion: v2.6.37 | ||
Contact: [email protected] | ||
Description: | ||
(RO) The size (in bytes) that the block device maps, starting | ||
from the offset. | ||
|
||
What: /sys/block/loopX/loop/partscan | ||
Date: Aug, 2011 | ||
KernelVersion: v3.10 | ||
Contact: [email protected] | ||
Description: | ||
(RO) Shows if automatic partition scanning is enabled for the | ||
device or not ("1" or "0"). This can be requested individually | ||
per loop device during its setup by setting LO_FLAGS_PARTSCAN in | ||
in the ioctl request. By default, no partition tables are | ||
scanned. | ||
|
||
What: /sys/block/loopX/loop/dio | ||
Date: Aug, 2015 | ||
KernelVersion: v4.10 | ||
Contact: [email protected] | ||
Description: | ||
(RO) Shows if direct IO is being used to access backing file or | ||
not ("1 or "0"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
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: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
Description: | ||
(RO) Vendor id of the NVDIMM. | ||
|
||
|
||
What: /sys/bus/nd/devices/nmemX/nfit/dsm_mask | ||
Date: May, 2016 | ||
KernelVersion: v4.7 | ||
Contact: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
Description: | ||
(RO) ACPI specification 6.2 section 5.2.25.9, defines an | ||
identifier for an NVDIMM, which refelects the id attribute. | ||
|
||
|
||
What: /sys/bus/nd/devices/nmemX/nfit/subsystem_vendor | ||
Date: Apr, 2016 | ||
KernelVersion: v4.7 | ||
Contact: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
Description: | ||
(RO) ACPI NFIT table revision number. | ||
|
||
|
||
What: /sys/bus/nd/devices/ndbusX/nfit/scrub | ||
Date: Sep, 2016 | ||
KernelVersion: v4.9 | ||
Contact: [email protected] | ||
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: [email protected] | ||
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: [email protected] | ||
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/regionX/nfit/range_index | ||
Date: Jun, 2015 | ||
KernelVersion: v4.2 | ||
Contact: [email protected] | ||
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. | ||
|
||
|
||
What: /sys/bus/nd/devices/regionX/nfit/ecc_unit_size | ||
Date: Aug, 2017 | ||
KernelVersion: v4.14 | ||
Contact: [email protected] | ||
Description: | ||
(RO) Size of a write request to a DIMM that will not incur a | ||
read-modify-write cycle at the memory controller. | ||
|
||
When the nfit driver initializes it runs an ARS (Address Range | ||
Scrub) operation across every pmem range. Part of that process | ||
involves determining the ARS capabilities of a given address | ||
range. One of the capabilities that is reported is the 'Clear | ||
Uncorrectable Error Range Length Unit Size' (see: ACPI 6.2 | ||
section 9.20.7.4 Function Index 1 - Query ARS Capabilities). | ||
This property indicates the boundary at which the NVDIMM may | ||
need to perform read-modify-write cycles to maintain ECC (Error | ||
Correcting Code) blocks. |
Oops, something went wrong.