Re: [PATCH 3/3] tools/testing/nvdimm: Populate dirty shutdown data

2018-09-27 Thread Keith Busch
On Wed, Sep 26, 2018 at 09:24:36PM -0700, Dan Williams wrote: > +/* strong / override definition of nfit_intel_shutdown_status */ > +void nfit_intel_shutdown_status(struct nfit_mem *nfit_mem) > +{ > + set_bit(NFIT_MEM_DIRTY_COUNT, _mem->flags); > + nfit_mem->dirty_shutdown = 42; > +}

[PATCH 3/3] tools/testing/nvdimm: Populate dirty shutdown data

2018-09-26 Thread Dan Williams
Allow the unit tests to verify the retrieval of the dirty shutdown count via smart commands, and allow the driver-load-time retrieval of the smart health payload to be simulated by nfit_test. Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c | 14 --