]> git.baikalelectronics.ru Git - kernel.git/commit
acpi/nfit: Fix user-initiated ARS to be "ARS-long" rather than "ARS-short"
authorDan Williams <dan.j.williams@intel.com>
Mon, 3 Dec 2018 18:30:25 +0000 (10:30 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 5 Dec 2018 22:16:13 +0000 (14:16 -0800)
commit95f3bb3c2b0bf333bab8da0421442e90a94ab3e3
tree459dcea9186c29eb11fe8fadf747c5b190b1d3e6
parent32d9abd3aafd3fb0267bca053ff8f785a8f38a44
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 1c1dc1d57a67 "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.

Fixes: 1c1dc1d57a67 ("acpi, nfit: Fix Address Range Scrub completion tracking")
Reported-by: Jacek Zloch <jacek.zloch@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c