acpi/nfit: Add support of NVDIMM memory error notification in ACPI 6.2
authorToshi Kani <toshi.kani@hpe.com>
Thu, 8 Jun 2017 18:36:57 +0000 (12:36 -0600)
committerDan Williams <dan.j.williams@intel.com>
Thu, 15 Jun 2017 21:39:42 +0000 (14:39 -0700)
commit56b47fe6579234e3102f1f28e26fa91fb6c38b3d
tree12f711e49e89ce38450caf20354ab3717857d907
parent975750a98c26769fe54785579f4b26c961a7a6f4
acpi/nfit: Add support of NVDIMM memory error notification in ACPI 6.2

ACPI 6.2 defines a new ACPI notification value to NVDIMM Root Device
in Table 5-169.

 0x81 Unconsumed Uncorrectable Memory Error Detected
      Used to pro-actively notify OSPM of uncorrectable memory errors
      detected (for example a memory scrubbing engine that continuously
      scans the NVDIMMs memory). This is an optional notification. Only
      locations that were mapped in to SPA by the platform will generate
      a notification.

Add support of this notification value by initiating an ARS scan. This
will find new error locations and add their badblocks information.

Link: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
Signed-off-by: Toshi Kani <toshi.kani@hpe.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/nfit.h