]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r365948:
authorDavid Bright <dab@FreeBSD.org>
Tue, 29 Sep 2020 16:38:56 +0000 (16:38 +0000)
committerDavid Bright <dab@FreeBSD.org>
Tue, 29 Sep 2020 16:38:56 +0000 (16:38 +0000)
commit34227b4ca84d2a12be9fa5a1001b756399b1db0f
treeaa6ae2549b0b93ac9a5e9fda38a77d2ca35e75ad
parent876ca2b5c5e05bfc71f97b1668115fa848206511
MFC r365948:

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
    identify-controller response to set the max transfer size.
  - 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.

Sponsored by: Dell EMC Isilon
sbin/nvmecontrol/firmware.c
sbin/nvmecontrol/identify_ext.c