acpi/nfit: Issue Start ARS to retrieve existing records
authorToshi Kani <toshi.kani@hpe.com>
Fri, 30 Jun 2017 02:41:30 +0000 (20:41 -0600)
committerDan Williams <dan.j.williams@intel.com>
Sun, 2 Jul 2017 16:56:37 +0000 (09:56 -0700)
commit807900395efebf9276178eb6157959f2e81fe013
tree5b7954f7bb3e2530fdbfb87a6ecd8055eb98cd00
parent759d6a9641d7f52f9311aae4f2d90058adad3ac2
acpi/nfit: Issue Start ARS to retrieve existing records

ACPI 6.2 defines in section 9.20.7.2 that the OSPM may call a Start
ARS with Flags Bit [1] set upon receiving the 0x81 notification.

  Upon receiving the notification, the OSPM may decide to issue
  a Start ARS with Flags Bit [1] set to prepare for the retrieval
  of existing records and issue the Query ARS Status function to
  retrieve the records.

Add support to call a Start ARS from acpi_nfit_uc_error_notify()
with ND_ARS_RETURN_PREV_DATA set when HW_ERROR_SCRUB_ON is not set.

Link: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Linda Knippers <linda.knippers@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/mce.c
drivers/acpi/nfit/nfit.h
include/uapi/linux/ndctl.h