papr_scm[1] and ndtest[2] now support PDSMs for injecting smart errors that can exercise various libndctl code paths. The following patch series updates libndctl to support injecting these inject-smart events to an nvdimm. Since the support for inject-smart is presently limited to injecting fatal-health and dirty-shutdown the patch-series tweaks the ndctl tests to only exercise certain applicable tests for PAPR nvdimms.
The patches to be applied on the series[3] which added the necessary smart error injection support. The make check results look like this below. PASS: libndctl PASS: dsm-fail FAIL: dpa-alloc FAIL: parent-uuid PASS: multi-pmem PASS: create.sh FAIL: clear.sh FAIL: pmem-errors.sh FAIL: daxdev-errors.sh PASS: multi-dax.sh PASS: btt-check.sh FAIL: label-compat.sh PASS: blk-exhaust.sh PASS: sector-mode.sh FAIL: inject-error.sh SKIP: btt-errors.sh SKIP: hugetlb PASS: btt-pad-compat.sh SKIP: firmware-update.sh SKIP: ack-shutdown-count-set PASS: rescan-partitions.sh PASS: inject-smart.sh PASS: monitor.sh PASS: max_available_extent_ns.sh FAIL: pfn-meta-errors.sh PASS: track-uuid.sh ============================================================================ Testsuite summary for ndctl 71.35.gf8b89d5 ============================================================================ # TOTAL: 26 # PASS: 14 # SKIP: 4 # XFAIL: 0 # FAIL: 8 # XPASS: 0 # ERROR: 0 ============================================================================ [1] : https://patchwork.kernel.org/project/linux-nvdimm/patch/20210712084819.1150350-1-vaib...@linux.ibm.com/ [2] : https://www.mail-archive.com/nvdimm@lists.linux.dev/msg00590.html [3] : https://www.mail-archive.com/nvdimm@lists.linux.dev/msg00426.html --- Shivaprasad G Bhat (3): test/inject-smart: Enable inject-smart tests on ndtest ndtest/ack-shutdown-count: Skip the test on ndtest test/monitor.sh: Partially skip monitor test on ndtest test/ack-shutdown-count-set.c | 4 +++ test/inject-smart.sh | 12 ++++++--- test/libndctl.c | 46 +++++++++++++++++++++++++++++++++++ test/list-smart-dimm.c | 36 ++++++++++++++++++++++++++- test/monitor.sh | 11 ++++++++- 5 files changed, 103 insertions(+), 6 deletions(-) -- Signature