^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/nd/devices/regionX/nfit/ecc_unit_size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Aug, 2017
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: v4.14 (Removed v4.18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: linux-nvdimm@lists.01.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) (RO) Size of a write request to a DIMM that will not incur a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) read-modify-write cycle at the memory controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) When the nfit driver initializes it runs an ARS (Address Range
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Scrub) operation across every pmem range. Part of that process
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) involves determining the ARS capabilities of a given address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) range. One of the capabilities that is reported is the 'Clear
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Uncorrectable Error Range Length Unit Size' (see: ACPI 6.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) section 9.20.7.4 Function Index 1 - Query ARS Capabilities).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) This property indicates the boundary at which the NVDIMM may
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) need to perform read-modify-write cycles to maintain ECC (Error
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Correcting Code) blocks.