tools/testing/nvdimm: Align test resources to 128M
authorDan Williams <dan.j.williams@intel.com>
Wed, 5 Dec 2018 22:11:48 +0000 (14:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:15:23 +0000 (14:15 +0100)
commitd689c1371d18eb00fd9d7233dcf795dfffc348ff
treec0b0cfbf3a738a81dd4cdeaa748248cefb324a21
parent878275fa3e75d6ffd3062013526695a440283ed3
tools/testing/nvdimm: Align test resources to 128M

[ Upstream commit e3f5df762d4a6ef6326c3c09bc9f89ea8a2eab2c ]

In preparation for libnvdimm growing new restrictions to detect section
conflicts between persistent memory regions, enable nfit_test to
allocate aligned resources. Use a gen_pool to allocate nfit_test's fake
resources in a separate address space from the virtual translation of
the same.

Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Tested-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/nvdimm/test/nfit.c