On Tue, 25 Jan 2022 01:52:04 +0530, Vaibhav Jain wrote:
Presently PAPR doesn't support injecting smart errors on an
NVDIMM. This makes testing the NVDIMM health reporting functionality
difficult as simulating NVDIMM health related events need a hacked up
qemu version.
To solve this problem this patch proposes simulating certain set of
NVDIMM health related events in papr_scm. Specifically 'fatal' health
state and 'dirty' shutdown state. These error can be injected via the
user-space 'ndctl-inject-smart(1)' command. With the proposed patch and
corresponding ndctl patches following command flow is expected:
[...]
Applied to powerpc/next.
[1/1] powerpc/papr_scm: Implement initial support for injecting smart errors
https://git.kernel.org/powerpc/c/bbbca72352bb9484bc057c91a408332b35ee8f4c
cheers