History

acpi/nfit: Fix user-initiated ARS to be "ARS-long" rather than "ARS-short"

A "short" ARS (address range scrub) instructs the platform firmware to return known errors. In contrast, a "long" ARS instructs platform firmware to arrange every data address on the DIMM to be read / checked for poisoned data. The conversion of the flags in commit d3abaf43bab8 "acpi, nfit: Fix Address Range Scrub completion tracking", changed the meaning of passing '0' to acpi_nfit_ars_rescan(). Previously '0' meant "not short", now '0' is ARS_REQ_SHORT. Pass ARS_REQ_LONG to restore the expected scrub-type behavior of user-initiated ARS sessions.

Dan Williams committed 7 years ago

Commit b5fd2e01 parent ae86cbf1 file · +1 −1Browse files

Unified · Split

drivers/acpi/nfit/core.c+1−1
@@ -1308,7 +1308,7 @@ static ssize_t scrub_store(struct device *dev, · 1307 unmodified lines
13081308 if (nd_desc) {
13091309 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc);
13101310
1311− rc = acpi_nfit_ars_rescan(acpi_desc, 0);
1311+ rc = acpi_nfit_ars_rescan(acpi_desc, ARS_REQ_LONG);
13121312 }
13131313 device_unlock(dev);
13141314 if (rc)