acpi: nfit: Add support for detect platform CPU cache flush on power loss
authorDave Jiang <dave.jiang@intel.com>
Wed, 31 Jan 2018 19:45:38 +0000 (12:45 -0700)
committerRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 1 Feb 2018 22:01:15 +0000 (15:01 -0700)
commit06e8ccdab15f46dfd31292e2b75d744bc5fc2a7c
tree00ffd44862f319520b55d29e6b4a6feef60ffbe9
parenta7f2766ac7c359216da4e714dc117c881e39a74a
acpi: nfit: Add support for detect platform CPU cache flush on power loss

In ACPI 6.2a the platform capability structure has been added to the NFIT
tables. That provides software the ability to determine whether a system
supports the auto flushing of CPU caches on power loss. If the capability
is supported, we do not need to do dax_flush(). Plumbing the path to set the
property on per region from the NFIT tables.

This patch depends on the ACPI NFIT 6.2a platform capabilities support code
in include/acpi/actbl1.h.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h
drivers/nvdimm/pmem.c
include/linux/libnvdimm.h