Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Documentation/nvme-fw-download.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ Download command. It is applied following a reset, where the image to
apply and the firmware slot it should be committed to is specified with
the Firmware Commit command (nvme fw-commit <args>).

Note: nvme-cli must allocate a contiguous (linear) memory buffer and map
the firmware binary into it. To do this, nvme-cli first attempts to
allocate the buffer using huge TLB pages. If allocation using huge pages
fails, it falls back to using posix_memalign() combined with madvise(),
though this is also likely to fail.

To increase the likelihood of success, you may want to pre-allocate a
number of huge pages before initiating the firmware download:

echo 20 > /proc/sys/vm/nr_hugepages

For more details, refer to:
https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt

OPTIONS
-------
-f <firmware-file>::
Expand Down