The Intel NVDIMM command specification publishes a dirty-shutdown-count in addition to the dirty-shutdown / flush-failed indication that comes from the ACPI NFIT. This is expected to be a common property of NVDIMMs and is a static hardware health detail to be cached / exported via sysfs. Add plumbing for retrieving this data at driver load time, publish the count, and use the dynamically retrieved dirty-shutdown indicator to augment the existing 'flush_failed' flag. --- Dan Williams (3): acpi, nfit: Introduce nfit_mem flags acpi, nfit: Collect shutdown status tools/testing/nvdimm: Populate dirty shutdown data drivers/acpi/nfit/core.c | 115 ++++++++++++++++++++++++++++----- drivers/acpi/nfit/intel.h | 34 ++++++++++ drivers/acpi/nfit/nfit.h | 11 +++ tools/testing/nvdimm/Kbuild | 1 tools/testing/nvdimm/acpi_nfit_test.c | 8 ++ tools/testing/nvdimm/test/nfit.c | 3 + tools/testing/nvdimm/test/nfit_test.h | 24 ------- 7 files changed, 152 insertions(+), 44 deletions(-)