From: Keith Busch Date: Tue, 19 Dec 2017 20:33:49 +0000 (-0700) Subject: Update documentation to use aliases X-Git-Tag: v1.5~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=78c412fcd53e1e5085e90cbd0ef43411e2eb6221;p=users%2Fsagi%2Fnvme-cli.git Update documentation to use aliases Firmware activate is now called 'fw-commit', so this patch updates the documentation, documents the options, and renames the man page. The firmware activate will alias to the new man page if requested. Signed-off-by: Keith Busch --- diff --git a/Documentation/nvme-fw-activate.1 b/Documentation/nvme-fw-commit.1 similarity index 52% rename from Documentation/nvme-fw-activate.1 rename to Documentation/nvme-fw-commit.1 index 38ba512e..2a7f4961 100644 --- a/Documentation/nvme-fw-activate.1 +++ b/Documentation/nvme-fw-commit.1 @@ -1,13 +1,13 @@ '\" t -.\" Title: nvme-fw-activate -.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] -.\" Generator: DocBook XSL Stylesheets v1.79.1 -.\" Date: 12/10/2017 +.\" Title: nvme-fw-commit +.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 12/19/2017 .\" Manual: NVMe Manual .\" Source: NVMe .\" Language: English .\" -.TH "NVME\-FW\-ACTIVATE" "1" "12/10/2017" "NVMe" "NVMe Manual" +.TH "NVME\-FW\-COMMIT" "1" "12/19/2017" "NVMe" "NVMe Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -28,20 +28,21 @@ .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" -nvme-fw-activate \- Used to verify and commit a firmware image\&. +nvme-fw-commit \- Used to verify and commit a firmware image\&. .SH "SYNOPSIS" .sp .nf -\fInvme fw\-activate\fR [\-\-slot= | \-s ] +\fInvme fw\-commit\fR [\-\-slot= | \-s ] [\-\-action= | \-a ] + [\-\-bpid= | \-b ] .fi .SH "DESCRIPTION" .sp -For the NVMe device given, send an nvme Firmware Activate admin command and provides the results\&. +For the NVMe device given, send an nvme Firmware Commit admin command and provides the results\&. .sp -The Firmware Activate command is used to verify that a valid firmware image has been downloaded and to commit that revision to a specific firmware slot\&. The host may select the firmware image to activate on the next controller reset (CC\&.EN transitions from \(oq1\(cq to \(oq0\(cq, a PCI function level reset, and/or other Controller or NVM Subsystem Reset) as part of this command\&. The currently executing firmware revision may be determined from the Firmware Revision field of the Identify Controller data structure as indicated in the Firmware Slot Information log page\&. +The Firmware Commit command is used to verify that a valid firmware image has been downloaded and to commit that revision to a specific firmware slot\&. The host may select the firmware image to commit on the next controller reset (CC\&.EN transitions from \(oq1\(cq to \(oq0\(cq, a PCI function level reset, and/or other Controller or NVM Subsystem Reset) as part of this command\&. The currently executing firmware revision may be determined from the Firmware Revision field of the Identify Controller data structure as indicated in the Firmware Slot Information log page\&. .sp -No further action is automatically taken to reset the device, which is usually required to complete the activation process\&. If your kernel and driver are recent enough, you can activate the firmware by issuing a reset through Linux sysfs, for example: +No further action is automatically taken to reset the device, which is usually required to complete the activation process\&. If your kernel and driver are recent enough, you can commit the firmware by issuing a reset through Linux sysfs, for example: .sp .if n \{\ .RS 4 @@ -58,13 +59,15 @@ If your kernel is not recent enough, you will need to remove and add the device .PP \-a , \-\-action= .RS 4 -Activate Action: This field specifies the action that is taken on the image downloaded with the Firmware Image Download command or on a previously downloaded and placed image\&. +Commit Action: This field specifies the action that is taken on the image downloaded with the Firmware Image Download command or on a previously downloaded and placed image\&. .TS allbox tab(:); lt lt lt lt lt lt lt lt +lt lt +lt lt lt lt. T{ Value @@ -91,13 +94,28 @@ T{ T}:T{ The image specified by the Firmware Slot field is requested to be activated immediately without reset\&. T} +T{ +6 +T}:T{ +Downloaded image replaces the Boot Partition specified by the Boot Partition ID field\&. +T} +T{ +7 +T}:T{ +Mark the Boot Partition specified in the BPID field as active and update BPINFO\&.ABPID\&. +T} .TE .sp 1 .RE .PP \-s , \-\-slot= .RS 4 -Firmware Slot: Specifies the firmware slot that shall be used for the Activate Action, if applicable\&. If the value specified is 0h, then the controller shall choose the firmware slot (slot 1 \(en 7) to use for the operation\&. +Firmware Slot: Specifies the firmware slot that shall be used for the Commit Action, if applicable\&. If the value specified is 0h, then the controller shall choose the firmware slot (slot 1 \(en 7) to use for the operation\&. +.RE +.PP +\-\-bpid=, \-b +.RS 4 +Specifiies the Boot partition that shall be used for the Commit Action, if applicable (default: 0) .RE .SH "EXAMPLES" .sp @@ -109,18 +127,21 @@ Firmware Slot: Specifies the firmware slot that shall be used for the Activate A .sp -1 .IP \(bu 2.3 .\} -Activate the last downloaded fw to slot 1\&. +commit the last downloaded fw to slot 1\&. .sp .if n \{\ .RS 4 .\} .nf -# nvme fw\-activate /dev/nvme0 \-\-slot=1 \-\-action=2 +# nvme fw\-commit /dev/nvme0 \-\-slot=1 \-\-action=2 .fi .if n \{\ .RE .\} .RE +.SH "ALIAS" +.sp +fw\-activate .SH "NVME" .sp Part of the nvme\-user suite diff --git a/Documentation/nvme-fw-activate.html b/Documentation/nvme-fw-commit.html similarity index 88% rename from Documentation/nvme-fw-activate.html rename to Documentation/nvme-fw-commit.html index 368f2bc1..4d790fb7 100644 --- a/Documentation/nvme-fw-activate.html +++ b/Documentation/nvme-fw-commit.html @@ -4,7 +4,7 @@ -nvme-fw-activate(1) +nvme-fw-commit(1)