From dfc9d61e57d63d55b707ce1bf4cad73df00de674 Mon Sep 17 00:00:00 2001 From: Jeffrey Lien Date: Fri, 12 Oct 2018 15:50:35 +0000 Subject: [PATCH] nvme-cli: Add help text for wdc-plugin command vs-internal-log. Update help text for wdc-plugin command cap-diag. Signed-off-by: Jeff Lien --- Documentation/nvme-wdc-cap-diag.txt | 16 +++++- Documentation/nvme-wdc-vs-internal-log.txt | 64 ++++++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 Documentation/nvme-wdc-vs-internal-log.txt diff --git a/Documentation/nvme-wdc-cap-diag.txt b/Documentation/nvme-wdc-cap-diag.txt index f9d232d0..9439eaa6 100644 --- a/Documentation/nvme-wdc-cap-diag.txt +++ b/Documentation/nvme-wdc-cap-diag.txt @@ -8,7 +8,7 @@ nvme-wdc-cap-diag - Retrieve WDC device's diagnostic log and save to file. SYNOPSIS -------- [verse] -'nvme wdc cap-diag' [--output-file=, -o ] +'nvme wdc cap-diag' [--output-file=, -o ] [--transfer-size=, -s ] DESCRIPTION ----------- @@ -27,6 +27,10 @@ OPTIONS --output-file=:: Output file; defaults to device serial number followed by "cap_diag" suffix +-s :: +--transfer-size=:: + Transfer size; defaults to 0x10000 (65536 decimal) bytes + EXAMPLES -------- * Gets the capture diagnostics log from the device and saves to default file in current directory (e.g. STM00019F3F9cap_diag.bin): @@ -44,6 +48,16 @@ EXAMPLES ------------ # nvme wdc cap-diag /dev/nvme0 -o /tmp/test ------------ +* Gets the capture diagnostics log from the device transferring the data in 64k chunks and saves to default file in current directory (e.g. STM00019F3F9internal_fw_log.bin): ++ +------------ +# nvme wdc cap-diag /dev/nvme0 -s 0x10000 +------------ +* Gets the capture diagnostics log from the device transferring the data in 16k chunks and saves to default file in current directory (e.g. STM00019F3F9internal_fw_log.bin): ++ +------------ +# nvme wdc cap-diag /dev/nvme0 -s 16384 +------------ NVME ---- diff --git a/Documentation/nvme-wdc-vs-internal-log.txt b/Documentation/nvme-wdc-vs-internal-log.txt new file mode 100644 index 00000000..8a048630 --- /dev/null +++ b/Documentation/nvme-wdc-vs-internal-log.txt @@ -0,0 +1,64 @@ +nvme-wdc-vs-internal-log(1) +=========================== + +NAME +---- +nvme-wdc-vs-internal-log - Retrieve WDC device's internal firmware log and save to file. + +SYNOPSIS +-------- +[verse] +'nvme wdc vs-internal-log' [--output-file=, -o ] [--transfer-size=, -s ] + +DESCRIPTION +----------- + +For the NVMe device given, sends the WDC Vendor Specific Internal Log request and saves +the result to a file. + +The parameter is mandatory NVMe character device (ex: /dev/nvme0). + +This will only work on WDC devices supporting this feature. +Results for any other device are undefined. + +OPTIONS +------- +-o :: +--output-file=:: + Output file; defaults to device serial number followed by "_internal_fw_log__