tools/testing/nvdimm: support for sub-dividing a pmem region
authorDan Williams <dan.j.williams@intel.com>
Thu, 6 Oct 2016 18:22:37 +0000 (11:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 7 Oct 2016 16:20:53 +0000 (09:20 -0700)
commitbd4cd745b3b412ac93227640e3b337962f41d932
treefc87b054e3d62373f8059e3d5e9bea285489c748
parent8a5f50d3b7f2f601c200f84827c2c9220cd69f71
tools/testing/nvdimm: support for sub-dividing a pmem region

Update nfit_test to handle multiple sub-allocations within a given pmem
region.  The mock resource now tracks and un-tracks sub-ranges as they
are requested and released (either explicitly or via devm callback).

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/iomap.c
tools/testing/nvdimm/test/nfit.c
tools/testing/nvdimm/test/nfit_test.h