Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

acpi, nfit: Remove ecc_unit_size

The "Clear Error Unit" may be smaller than the ECC unit size on some
devices. For example, poison may be tracked at 64-byte alignment even
though the ECC unit is larger. Unless / until the ACPI specification
provides a non-ambiguous way to communicate this property do not expose
this to userspace.

Software that had been using this property must already be prepared for
the case where the property is not provided on older kernels, so it is
safe to remove this attribute.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>

+17 -30
+17
Documentation/ABI/removed/sysfs-bus-nfit
··· 1 + What: /sys/bus/nd/devices/regionX/nfit/ecc_unit_size 2 + Date: Aug, 2017 3 + KernelVersion: v4.14 (Removed v4.18) 4 + Contact: linux-nvdimm@lists.01.org 5 + Description: 6 + (RO) Size of a write request to a DIMM that will not incur a 7 + read-modify-write cycle at the memory controller. 8 + 9 + When the nfit driver initializes it runs an ARS (Address Range 10 + Scrub) operation across every pmem range. Part of that process 11 + involves determining the ARS capabilities of a given address 12 + range. One of the capabilities that is reported is the 'Clear 13 + Uncorrectable Error Range Length Unit Size' (see: ACPI 6.2 14 + section 9.20.7.4 Function Index 1 - Query ARS Capabilities). 15 + This property indicates the boundary at which the NVDIMM may 16 + need to perform read-modify-write cycles to maintain ECC (Error 17 + Correcting Code) blocks.
-19
Documentation/ABI/testing/sysfs-bus-nfit
··· 212 212 range. Used by NVDIMM Region Mapping Structure to uniquely refer 213 213 to this structure. Value of 0 is reserved and not used as an 214 214 index. 215 - 216 - 217 - What: /sys/bus/nd/devices/regionX/nfit/ecc_unit_size 218 - Date: Aug, 2017 219 - KernelVersion: v4.14 220 - Contact: linux-nvdimm@lists.01.org 221 - Description: 222 - (RO) Size of a write request to a DIMM that will not incur a 223 - read-modify-write cycle at the memory controller. 224 - 225 - When the nfit driver initializes it runs an ARS (Address Range 226 - Scrub) operation across every pmem range. Part of that process 227 - involves determining the ARS capabilities of a given address 228 - range. One of the capabilities that is reported is the 'Clear 229 - Uncorrectable Error Range Length Unit Size' (see: ACPI 6.2 230 - section 9.20.7.4 Function Index 1 - Query ARS Capabilities). 231 - This property indicates the boundary at which the NVDIMM may 232 - need to perform read-modify-write cycles to maintain ECC (Error 233 - Correcting Code) blocks.
-11
drivers/acpi/nfit/core.c
··· 1978 1978 } 1979 1979 static DEVICE_ATTR_RO(range_index); 1980 1980 1981 - static ssize_t ecc_unit_size_show(struct device *dev, 1982 - struct device_attribute *attr, char *buf) 1983 - { 1984 - struct nd_region *nd_region = to_nd_region(dev); 1985 - struct nfit_spa *nfit_spa = nd_region_provider_data(nd_region); 1986 - 1987 - return sprintf(buf, "%d\n", nfit_spa->clear_err_unit); 1988 - } 1989 - static DEVICE_ATTR_RO(ecc_unit_size); 1990 - 1991 1981 static struct attribute *acpi_nfit_region_attributes[] = { 1992 1982 &dev_attr_range_index.attr, 1993 - &dev_attr_ecc_unit_size.attr, 1994 1983 NULL, 1995 1984 }; 1996 1985