]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Honor the FWUG value of some drives in nvmecontrol
authordab <dab@FreeBSD.org>
Mon, 21 Sep 2020 15:45:49 +0000 (15:45 +0000)
committerdab <dab@FreeBSD.org>
Mon, 21 Sep 2020 15:45:49 +0000 (15:45 +0000)
commitb262c464a675a5272f924e915bb588c44ed995b0
tree769ba785bef4fefcd81ed6d73aec6e31949d896f
parent0111f11ec6f6f729909b5cb0d1b7d1505a871bca
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
sbin/nvmecontrol/firmware.c
sbin/nvmecontrol/identify_ext.c