From: junhyeok.im@samsung.com
To: linux-cxl@vger.kernel.org
Cc: dan.j.williams@intel.com, vishal.l.verma@intel.com,
bwidawsk@kernel.org, alison.schofield@intel.com,
Junhyeok Im <junhyeok.im@samsung.com>
Subject: [ndctl 3/3] Documentation: add man page documentation for inject-poison
Date: Mon, 20 Feb 2023 10:37:14 +0900 [thread overview]
Message-ID: <20230220013714.22277-3-junhyeok.im@samsung.com> (raw)
In-Reply-To: <20230220013714.22277-1-junhyeok.im@samsung.com>
From: Junhyeok Im <junhyeok.im@samsung.com>
Add man page documentation for inject-poison command in cxl,
also add the content of cxl_memdev_inject_poison in libcxl.
Signed-off-by: Junhyeok Im <junhyeok.im@samsung.com>
---
Documentation/cxl/cxl-inject-poison.txt | 42 +++++++++++++++++++++++++
Documentation/cxl/lib/libcxl.txt | 4 +++
Documentation/cxl/meson.build | 1 +
3 files changed, 47 insertions(+)
create mode 100644 Documentation/cxl/cxl-inject-poison.txt
diff --git a/Documentation/cxl/cxl-inject-poison.txt b/Documentation/cxl/cxl-inject-poison.txt
new file mode 100644
index 0000000..d438d33
--- /dev/null
+++ b/Documentation/cxl/cxl-inject-poison.txt
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: GPL-2.0
+
+cxl-inject-poison(1)
+====================
+
+NAME
+----
+cxl-inject-poison - send inject poison command to specified CXL memdev
+ targeting given DPA.
+
+SYNOPSIS
+--------
+[verse]
+'cxl inject-poison <memdev> -a <dpa> [<options>]'
+
+DESCRIPTION
+-----------
+Add the <dpa> to the <memdev> poison list and the error source shall be set
+to an injected error. In addition, the device shall add an appropriate poison
+creation event to its internal Informational Event Log, update the Event Status
+register, and if configured, interrupt the host.
+
+OPTIONS
+-------
+<memory device>::
+ A 'memX' device name, or a memdev id number. Restrict the operation to
+ the specified memdev.
+
+-a::
+--address=::
+ Physical address of a CXL memdev to inject poison into.
+
+-S::
+--serial=::
+ Specify CXL memory device serial number(s) to filter the listing
+
+include::verbose-option.txt[]
+
+
+SEE ALSO
+--------
+CXL-2.0 8.2.9.5.4.2
diff --git a/Documentation/cxl/lib/libcxl.txt b/Documentation/cxl/lib/libcxl.txt
index f9af376..95f5662 100644
--- a/Documentation/cxl/lib/libcxl.txt
+++ b/Documentation/cxl/lib/libcxl.txt
@@ -132,6 +132,7 @@ int cxl_memdev_read_label(struct cxl_memdev *memdev, void *buf, size_t length,
size_t offset);
int cxl_memdev_write_label(struct cxl_memdev *memdev, void *buf, size_t length,
size_t offset);
+int cxl_memdev_inject_poison(struct cxl_memdev *memdev, const char *address);
struct cxl_cmd *cxl_cmd_new_get_partition(struct cxl_memdev *memdev);
struct cxl_cmd *cxl_cmd_new_set_partition(struct cxl_memdev *memdev,
unsigned long long volatile_size);
@@ -172,6 +173,9 @@ cxl_memdev{read,write,zero}_label() are helpers for marshaling multiple
label access commands over an arbitrary extent of the device's label
area.
+cxl_memdev_inject_poison supports injecting poison into a physical address
+on a specified CXL memory device.
+
cxl_cmd_partition_set_mode() supports selecting NEXTBOOT or IMMEDIATE
mode. When CXL_SETPART_IMMEDIATE mode is set, it is the caller’s
responsibility to avoid immediate changes to partitioning when the
diff --git a/Documentation/cxl/meson.build b/Documentation/cxl/meson.build
index a6d77ab..a972467 100644
--- a/Documentation/cxl/meson.build
+++ b/Documentation/cxl/meson.build
@@ -46,6 +46,7 @@ cxl_manpages = [
'cxl-enable-region.txt',
'cxl-destroy-region.txt',
'cxl-monitor.txt',
+ 'cxl-inject-poison.txt',
]
foreach man : cxl_manpages
--
2.34.1
next prev parent reply other threads:[~2023-02-20 1:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230220013605epcas2p414e4f0c0c3c82bc5a004d19f4f02f15f@epcas2p4.samsung.com>
2023-02-20 1:37 ` [ndctl 1/3] libcxl: add memdev inject poison support junhyeok.im
2023-02-20 1:37 ` [ndctl 2/3] cxl: add inject-poison command to cxl tool junhyeok.im
2023-02-20 1:37 ` junhyeok.im [this message]
[not found] <CGME20230220045610epcas2p269c76f9b80a8d18d357af396b2968970@epcas2p2.samsung.com>
2023-02-20 4:57 ` [ndctl 0/3] Support for inject poison Junhyeok Im
2023-02-20 4:57 ` [ndctl 3/3] Documentation: add man page documentation for inject-poison Junhyeok Im
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=20230220013714.22277-3-junhyeok.im@samsung.com \
--to=junhyeok.im@samsung.com \
--cc=alison.schofield@intel.com \
--cc=bwidawsk@kernel.org \
--cc=dan.j.williams@intel.com \
--cc=linux-cxl@vger.kernel.org \
--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