testing/nvdimm: Add test module for non-nfit platforms
authorSantosh Sivaraj <santosh@fossix.org>
Tue, 22 Dec 2020 04:22:34 +0000 (09:52 +0530)
committerDan Williams <dan.j.williams@intel.com>
Thu, 28 Jan 2021 08:22:48 +0000 (00:22 -0800)
commit9a27e109a391c9021147553b97c3fe4356e2261c
tree161d1901f9fc587d221176a5f12f02b1edb02ccd
parent13f445d65955f388499f00851dc9a86280970f7c
testing/nvdimm: Add test module for non-nfit platforms

The current test module cannot be used for testing platforms (make check)
that do not have support for NFIT. In order to get the ndctl tests working,
we need a module which can emulate NVDIMM devices without relying on
ACPI/NFIT.

The aim of this proposed module is to implement a similar functionality to
the existing module but without the ACPI dependencies.

This RFC series is split into reviewable and compilable chunks.

This patch adds a new driver and registers two nvdimm bus needed for ndctl
make check.

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Link: https://lore.kernel.org/r/20201222042240.2983755-2-santosh@fossix.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/config_check.c
tools/testing/nvdimm/test/Kbuild
tools/testing/nvdimm/test/ndtest.c [new file with mode: 0644]
tools/testing/nvdimm/test/ndtest.h [new file with mode: 0644]