blob: 8e08bd443e516e3c31f6e328c38269ef065e6c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
nvme-fw-commit(1)
=================
NAME
----
nvme-fw-commit - Used to verify and commit a firmware image.
SYNOPSIS
--------
[verse]
'nvme fw-commit' <device> [--slot=<slot> | -s <slot>]
[--action=<action> | -a <action>]
[--bpid=<boot-partid> | -b <boot-partid>]
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
DESCRIPTION
-----------
For the NVMe device given, send an nvme Firmware Commit admin command
and provides the results.
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 ‘1’ to ‘0’, 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.
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:
------------
# echo 1 > /sys/class/nvme/nvme0/device/reset
------------
If your kernel is not recent enough, you will need to remove and add
the device some other way.
OPTIONS
-------
-a <action>::
--action=<action>::
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.
+
[]
|=================
|Value|Definition
|0|Downloaded image replaces the image indicated by the Firmware Slot
field. This image is not activated.
|1|Downloaded image replaces the image indicated by the Firmware Slot
field. This image is activated at the next reset.
|2|The image indicated by the Firmware Slot field is activated at the
next reset.
|3|The image specified by the Firmware Slot field is requested to be
activated immediately without reset.
|6|Downloaded image replaces the Boot Partition specified by the Boot Partition
ID field.
|7|Mark the Boot Partition specified in the BPID field as active and update
BPINFO.ABPID.
|=================
-s <slot>::
--slot=<slot>::
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 – 7)
to use for the operation.
--bpid=<boot-partid>::
-b <boot-partid>::
Specifies the Boot partition that shall be used for the Commit Action,
if applicable (default: 0)
-o <fmt>::
--output-format=<fmt>::
Set the reporting format to 'normal', 'json' or 'binary'. Only one
output format can be used at a time.
-v::
--verbose::
Increase the information detail in the output.
EXAMPLES
--------
* commit the last downloaded fw to slot 1.
+
------------
# nvme fw-commit /dev/nvme0 --slot=1 --action=2
------------
ALIAS
-----
fw-activate
NVME
----
Part of the nvme-user suite
|