]> asedeno.scripts.mit.edu Git - linux.git/commit
tools/testing/nvdimm: advertise a write cache for nfit_test
authorVishal Verma <vishal.l.verma@intel.com>
Mon, 18 Jun 2018 23:17:02 +0000 (17:17 -0600)
committerDan Williams <dan.j.williams@intel.com>
Sat, 30 Jun 2018 17:45:48 +0000 (10:45 -0700)
commit1273c253c32b9a073a4d8921ed079177ccc7c8af
tree6c7f47ce4bd1a4535abc66f9fcf02ddbd8be6ddf
parentc1985cefd844e26bd19673a6df8d8f0b1918c2db
tools/testing/nvdimm: advertise a write cache for nfit_test

Commit 546eb0317cfa "libnvdimm, pmem: Do not flush power-fail protected CPU caches"
fixed the write_cache detection to correctly show the lack of a write
cache based on the platform capabilities described in the ACPI NFIT. The
nfit_test unit tests expected a write cache to be present, so change the
nfit test namespaces to only advertise a persistence domain limited to
the memory controller. This allows the kernel to show a write_cache
attribute, and the test behaviour remains unchanged.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c