nfit, address-range-scrub: determine one platform max_ars value
authorDan Williams <dan.j.williams@intel.com>
Thu, 5 Apr 2018 08:25:02 +0000 (01:25 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 7 Apr 2018 14:55:05 +0000 (07:55 -0700)
commit459d0ddb079c869c986e1bb871c91564a4b8ccfe
tree6a6d4c8dd0c863afd07d1403109f24bad4d156e9
parent3013e17381b8ba9adc5b0fb424128ea692205300
nfit, address-range-scrub: determine one platform max_ars value

acpi_nfit_query_poison() is awkward in that it requires an nfit_spa
argument in order to determine what max_ars value to use. Instead probe
for the minimum max_ars across all scrub-capable ranges in the system
and drop the nfit_spa argument.

This enables a larger rework / simplification of the ARS state machine
whereby the status can be retrieved once and then iterated over all
address ranges to reap completions.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h