nfit_test: add error injection DSMs
authorDave Jiang <dave.jiang@intel.com>
Mon, 30 Oct 2017 20:22:20 +0000 (13:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 2 Nov 2017 17:42:30 +0000 (10:42 -0700)
commit9fb1a1903345fea598f48277576a3589a972b72e
treef531856064348bfdb55e256a988e6b3d411ad026
parentaa9ad44a42b4cf4387f8ecddaf8e51707fdcda5a
nfit_test: add error injection DSMs

Add nfit_test emulation for the new ACPI 6.2 error injectino DSMs.
This will allow unit tests to selectively inject the errors they wish to
test for.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
[vishal: Move injection functions to ND_CMD_CALL]
[vishal: Add support for the notification option]
[vishal: move an nfit_test private definition into a local header]
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c
tools/testing/nvdimm/test/nfit_test.h