freebsd-dev/sbin/nvmecontrol
David Bright 16969d1448 Honor the FWUG value of some drives in nvmecontrol
nvmecontrol tries to upload firmware in chunks as large as it thinks
the device permits. It fails to take into account the FWUG value used
by some drives to advertise the size and alignment limits for firmware
chunks.

  - Use the firwmare update granularity value from the
  - If the granularity is not reported or not restricted, fall back to
    the previously existing logic that calculates the max transfer
    size based on MDTS.
  - Add firmware update granularity to the identify-controller output.

Reviewed by:	imp (previous version), chuck
Obtained from:	Dell EMC Isilon
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D26390
2020-09-21 15:45:49 +00:00
..
modules Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
tests Ensure kyua list working when there is no /dev/nvme* 2020-04-13 21:08:54 +00:00
comnd.c Assume all the short args have optional args so allocate space for the 2019-09-11 13:34:19 +00:00
comnd.h Create generic command / arg parsing routines 2019-07-16 17:24:03 +00:00
devlist.c Add a basic test for nvmecontrol 2020-04-07 20:26:42 +00:00
firmware.c Honor the FWUG value of some drives in nvmecontrol 2020-09-21 15:45:49 +00:00
format.c Fix parameter check broken at r350057. 2019-08-03 04:30:22 +00:00
identify_ext.c Honor the FWUG value of some drives in nvmecontrol 2020-09-21 15:45:49 +00:00
identify.c Add missing newlines. 2020-07-23 14:33:25 +00:00
logpage.c Open device with O_RDONLY when command is non-invasive. 2020-04-20 13:47:07 +00:00
Makefile Add a basic test for nvmecontrol 2020-04-07 20:26:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nc_util.c Add SPDX tag. 2019-02-28 02:29:48 +00:00
ns.c Allow namespace-id specification where it makes sense. 2020-04-20 14:54:41 +00:00
nsid.c Open device with O_RDONLY when command is non-invasive. 2020-04-20 13:47:07 +00:00
nvmecontrol_ext.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
nvmecontrol.8 Document the passthru commands. 2020-05-01 20:29:51 +00:00
nvmecontrol.c Open device with O_RDONLY when command is non-invasive. 2020-04-20 13:47:07 +00:00
nvmecontrol.h Open device with O_RDONLY when command is non-invasive. 2020-04-20 13:47:07 +00:00
passthru.c Document the passthru commands. 2020-05-01 20:29:51 +00:00
perftest.c Size is unsigned, so remove the test entirely. 2019-09-25 07:51:30 +00:00
power.c Allow namespace-id specification where it makes sense. 2020-04-20 14:54:41 +00:00
reset.c Allow namespace-id specification where it makes sense. 2020-04-20 14:54:41 +00:00
resv.c Open device with O_RDONLY when command is non-invasive. 2020-04-20 13:47:07 +00:00
sanitize.c Add nvmecontrol resv to handle NVMe reservations. 2019-08-05 17:36:00 +00:00