#
330449 |
|
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended.
|
#
328724 |
|
01-Feb-2018 |
mav |
MFC r314229 (by imp): Exit with usage if argv[1] is NULL in dispatch. This fixes core dumps when a command has subcommands, but the user doesn't give the parameters on the command line.
|
#
328716 |
|
01-Feb-2018 |
mav |
MFC r313191 (by imp): Implement 5 wdc-specific nvme control options for their HGST drives: wdc cap-diag Capture diagnostic data from drive wdc drive-log Capture drive history data from drive wdc get-crash-dump Retrieve firmware crash dump from drive
|
#
328715 |
|
01-Feb-2018 |
mav |
MFC r313190 (by imp): Move the usage and command name lookup into functions.
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
295087 |
|
30-Jan-2016 |
imp |
Implement power command to list all power modes, find out the power mode we're in and to set the power mode.
|
#
295076 |
|
30-Jan-2016 |
ngie |
Revert r295062 to unbreak buildworld
Some of the structures referenced in power.c (in particular struct nvme_power_state) are missing from sbin/nvmecontrol/
Pointyhat to: imp Reported by: Jenkins [*], O. Hartmann <ohartman@zedat.fu-berlin.de>, Outback Dingo <outbackdingo@gmail.com>
|
#
295062 |
|
30-Jan-2016 |
imp |
Implement power command to list all power modes, find out the power mode we're in and to set the power mode.
|
#
253459 |
|
18-Jul-2013 |
jimharris |
Use _PATH_DEV (from paths.h) for the "/dev/" string, rather than hard-coding it.
Sponsored by: Intel Suggested by: kib Reviewed by: kib, carl MFC after: 3 days
|
#
253458 |
|
18-Jul-2013 |
jimharris |
Simplify open_dev() by returning errno values rather than just 0 or 1.
Also remove stat() call and just rely on errno from open() call to discern whether dev node exists or not.
Sponsored by: Intel Reviewed by: kib, carl MFC after: 3 days
|
#
253436 |
|
17-Jul-2013 |
jimharris |
Always initialize fd to 0 in open_dev().
Sponsored by: Intel Reviewed by: carl MFC after: 3 days
|
#
253114 |
|
09-Jul-2013 |
jimharris |
Send per-namespace logpage commands to the controller devnode, so they are processed as admin commands, not I/O commands.
As part of this change, pull out the code for parsing a namespace node string into a separate function, since it is used for both identify and logpage commands.
Sponsored by: Intel MFC after: 3 days
|
#
253109 |
|
09-Jul-2013 |
jimharris |
Incorporate feedback from bde@ based on r252672 changes:
* Use 0/1 instead of sysexits. Man pages are confusing on this topic, but 0/1 is sufficient for nvmecontrol. * Use err function family where possible instead of fprintf/exit. * Fix some typing errors. * Clean up some error message inconsistencies.
Sponsored by: Intel Submitted by: bde (parts of firmware.c changes) MFC after: 3 days
|
#
252302 |
|
27-Jun-2013 |
glebius |
Fix build.
|
#
252278 |
|
26-Jun-2013 |
jimharris |
Add firmware replacement and activation support to nvmecontrol(8) through a new firmware command.
NVMe controllers may support up to 7 firmware slots for storing of different firmware revisions. This new firmware command supports firmware replacement (i.e. firmware download) with or without immediate activation, or activation of a previously stored firmware image. It also supports selection of the firmware slot during replacement operations, using IDENTIFY information from the controller to check that the specified slot is valid.
Newly activated firmware does not take effect until the new controller reset, either via a reboot or separate 'nvmecontrol reset' command to the same controller.
Submitted by: Joe Golio <joseph.golio@emc.com> Obtained from: EMC / Isilon Storage Division MFC after: 3 days
|
#
252277 |
|
26-Jun-2013 |
jimharris |
Add log page support to nvmecontrol(8) through a new logpage command.
This includes pretty printers for all of the standard NVMe log pages (Error, SMART/Health, Firmware), as well as hex output for non-standard or vendor-specific log pages.
Submitted by: Joe Golio <joseph.golio@emc.com> Obtained from: EMC / Isilon Storage Division MFC after: 3 days
|
#
252275 |
|
26-Jun-2013 |
jimharris |
Add generalized helper functions for printing hex data as part of nvmecontrol commands.
Submitted by: Joe Golio <joseph.golio@emc.com> Obtained from: EMC / Isilon Storage Division MFC after: 3 days
|
#
252274 |
|
26-Jun-2013 |
jimharris |
Ensure that a device node is specified when invoking the identify or reset commands.
Also improve the checking of device node names, so that better error messages are displayed when incorrect names are specified.
Sponsored by: Intel MFC after: 3 days
|
#
252269 |
|
26-Jun-2013 |
jimharris |
Add an nvme_function structure array, defining the name, C function and usage message for each nvmecontrol command. This helps reduce some code clutter both now and for future commits which will add logpage and firmware support to nvmecontrol(8).
Also move helper function prototypes to the end of the header file, after the per-command functions.
Sponsored by: Intel MFC after: 3 days
|
#
252268 |
|
26-Jun-2013 |
jimharris |
Break out code related to the reset command into a separate source file.
Sponsored by: Intel MFC after: 3 days
|
#
252267 |
|
26-Jun-2013 |
jimharris |
Break out code related to the perftest command into a separate file.
Sponsored by: Intel MFC after: 3 days
|
#
252266 |
|
26-Jun-2013 |
jimharris |
Break out code related to the identify command into a separate source file.
Sponsored by: Intel MFC after: 3 days
|
#
252265 |
|
26-Jun-2013 |
jimharris |
Break out code related to the devlist command into a separate source file.
Sponsored by: Intel MFC after: 3 days
|
#
252264 |
|
26-Jun-2013 |
jimharris |
Add separate *_usage() functions for each nvmecontrol command.
Sponsored by: Intel MFC after: 3 days
|
#
252263 |
|
26-Jun-2013 |
jimharris |
Add an open_dev() helper function to be used in the various places where nvmecontrol needs to open a handle to a controller or namespace device node.
Sponsored by: Intel MFC after: 3 days
|
#
249422 |
|
12-Apr-2013 |
jimharris |
Remove the NVME_IDENTIFY_CONTROLLER and NVME_IDENTIFY_NAMESPACE IOCTLs and replace them with the NVMe passthrough equivalent.
Sponsored by: Intel
|
#
249067 |
|
03-Apr-2013 |
jimharris |
Fix typo (devicde -> device).
|
#
248772 |
|
26-Mar-2013 |
jimharris |
Use errno and strerror to print more descriptive messages when operations fail in nvmecontrol(8).
While here, use consistent checks of return values from stat, open and ioctl.
Sponsored by: Intel Suggested by: carl Reviewed by: carl
|
#
248746 |
|
26-Mar-2013 |
jimharris |
Add controller reset capability to nvme(4) and ability to explicitly invoke it from nvmecontrol(8).
Controller reset will be performed in cases where I/O are repeatedly timing out, the controller reports an unrecoverable condition, or when explicitly requested via IOCTL or an nvme consumer. Since the controller may be in such a state where it cannot even process queue deletion requests, we will perform a controller reset without trying to clean up anything on the controller first.
Sponsored by: Intel Reviewed by: carl
|
#
240620 |
|
17-Sep-2012 |
jimharris |
Add nvmecontrol(8) source code and beginnings of a man page to the tree.
Sponsored by: Intel Contributions from: Joe Golio/EMC <joseph dot golio at emc dot com>
|