]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit6c25bf45db3c5eecc0ed856f8d1b0e4aea5dca70
treed3ec31523027d0217bed554eeb280b7bd89d077e
parentea83f51556eb630ca803ad2b81973d938e9d332e
tools/testing/nvdimm: Align test resources to 128M

BugLink: https://bugs.launchpad.net/bugs/1837257
[ 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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/nvdimm/test/nfit.c