From: Vaibhav Jain <vaibhav@linux.ibm.com>
To: nvdimm@lists.linux.dev
Cc: Vaibhav Jain <vaibhav@linux.ibm.com>,
Dan Williams <dan.j.williams@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
"Aneesh Kumar K . V" <aneesh.kumar@linux.ibm.com>,
Ira Weiny <ira.weiny@intel.com>,
Shivaprasad G Bhat <sbhat@linux.ibm.com>
Subject: [ndctl PATCH 0/2] papr: Implement initial support for injecting smart errors
Date: Mon, 12 Jul 2021 23:01:30 +0530 [thread overview]
Message-ID: <20210712173132.1205192-1-vaibhav@linux.ibm.com> (raw)
The patch series implements limited support for injecting smart errors for PAPR
NVDIMMs via ndctl-inject-smart(1) command. SMART errors are emulating in
papr_scm module as presently PAPR doesn't support injecting smart errors on an
NVDIMM. Currently support for injecting 'fatal' health state and 'dirty'
shutdown state is implemented. With the proposed ndctl patched and with
corresponding kernel patch [1] following command flow is expected:
$ sudo ndctl list -DH -d nmem0
...
"health_state":"ok",
"shutdown_state":"clean",
...
# inject unsafe shutdown and fatal health error
$ sudo ndctl inject-smart nmem0 -Uf
...
"health_state":"fatal",
"shutdown_state":"dirty",
...
# uninject all errors
$ sudo ndctl inject-smart nmem0 -N
...
"health_state":"ok",
"shutdown_state":"clean",
...
Structure of the patch series
=============================
* First patch updates 'inject-smart' code to not always assume support for
injecting all smart-errors. It also updates 'intel.c' to explicitly indicate
the type of smart-inject errors supported.
* Update 'papr.c' to add support for injecting smart 'fatal' health and
'dirty-shutdown' errors.
Vaibhav Jain (2):
libndctl, intel: Indicate supported smart-inject types
libndctl/papr: Add limited support for inject-smart
ndctl/inject-smart.c | 33 ++++++++++++++++++-----
ndctl/lib/intel.c | 7 ++++-
ndctl/lib/papr.c | 61 +++++++++++++++++++++++++++++++++++++++++++
ndctl/lib/papr_pdsm.h | 17 ++++++++++++
ndctl/libndctl.h | 8 ++++++
5 files changed, 118 insertions(+), 8 deletions(-)
--
2.31.1
next reply other threads:[~2021-07-12 17:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-12 17:31 Vaibhav Jain [this message]
2021-07-12 17:31 ` [ndctl PATCH 1/2] libndctl, intel: Indicate supported smart-inject types Vaibhav Jain
2021-07-12 17:31 ` [ndctl PATCH 2/2] libndctl/papr: Add limited support for inject-smart Vaibhav Jain
2021-07-13 4:43 ` Aneesh Kumar K.V
2021-07-13 7:51 ` Vaibhav Jain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210712173132.1205192-1-vaibhav@linux.ibm.com \
--to=vaibhav@linux.ibm.com \
--cc=aneesh.kumar@linux.ibm.com \
--cc=dan.j.williams@intel.com \
--cc=ira.weiny@intel.com \
--cc=nvdimm@lists.linux.dev \
--cc=sbhat@linux.ibm.com \
--cc=vishal.l.verma@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).