aboutsummaryrefslogtreecommitdiff
path: root/sbin/nvmecontrol
Commit message (Collapse)AuthorAgeFilesLines
...
* Exit with usage if argv[1] is NULL in dispatch. This fixes core dumpsWarner Losh2017-02-251-0/+5
| | | | | | | | | | when a command has subcommands, but the user doesn't give the parameters on the command line. Sponsored by: Netflix Notes: svn path=/head/; revision=314229
* Fix typos in output.Warner Losh2017-02-251-3/+3
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=314228
* Use ssize_t instead of uint32_t to prevent warnings about a comparisonWarner Losh2017-02-051-1/+2
| | | | | | | | with different signs. Due to the promotion rules, this would only happen on 32-bit platforms. Notes: svn path=/head/; revision=313259
* Add the ability to dump log pages directly in binary to stdout.Warner Losh2017-02-052-4/+27
| | | | | | | | Update man page to include this flag, and an example of dumping a vendor-specific page while I'm here. Notes: svn path=/head/; revision=313258
* Add some descriptions to the man page for the supported log pages asWarner Losh2017-02-052-1/+24
| | | | | | | | well as the new wdc commands. Make wdc be an alias for hgst when specifying the vendor to use to interpret the page. Notes: svn path=/head/; revision=313257
* Fix off by one error that truncated the serial number for filenames.Warner Losh2017-02-041-1/+1
| | | | Notes: svn path=/head/; revision=313252
* Fix a typo in usage string for unimplemented command.Warner Losh2017-02-041-1/+1
| | | | Notes: svn path=/head/; revision=313251
* Implement 5 wdc-specific nvme control options for their HGST drives:Warner Losh2017-02-045-1/+365
| | | | | | | | | 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 Notes: svn path=/head/; revision=313191
* Move the usage and command name lookup into functions.Warner Losh2017-02-042-20/+30
| | | | Notes: svn path=/head/; revision=313190
* Put the arguments to aligned_alloc in the right order.Warner Losh2017-02-041-1/+1
| | | | Notes: svn path=/head/; revision=313188
* Use aligned buffer for the firmware data. Otherwise, when loading aWarner Losh2017-02-021-1/+1
| | | | | | | | | | MAXPHYS bytes of data, the I/O would require MAXPHYS + PAGE_SIZE worth of pages to do the I/O and we'd hit an assertion in vm_fault_quick_hold_pages unless MAXPHYS was larger than 1M + PAGE_SIZE. Notes: svn path=/head/; revision=313111
* Implement Intel's log page 0xc1 (Read Command Latency Log) and pageWarner Losh2016-12-091-2/+47
| | | | | | | | | 0xc1 (Write Command Latency Log). Sponsored By: Netflix, Inc Notes: svn path=/head/; revision=309777
* Fix TypoWarner Losh2016-12-071-1/+1
| | | | Notes: svn path=/head/; revision=309684
* Flag the vendor specific pages as such. This allows different decodingWarner Losh2016-12-021-20/+27
| | | | | | | | for the same page number as different vendors encode vendor specific pages differently. Notes: svn path=/head/; revision=309413
* i386 turns out to not have __uint128_t. So confusingly use 64-bit mathWarner Losh2016-11-191-1/+9
| | | | | | | | | | | | | | instead. Since we're little endian, we can get away with it. Also, since the counters in quesitons would require billions of iops for tens of billions of seconds to overflow, and since such data rates are unlikely for people using i386 for a while, that's OK. The fastest cards today can't do even a million IOPs. Noticed by: dim@ Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=308869
* Decode the Intel-specific Additional SMART data page (0xca) and printWarner Losh2016-11-191-1/+80
| | | | | | | | | | | | | | it in human readable form. Include a pointer to the public spec that was followed to implement this in the code. Samsung also implements page 0xca on some of their drives, but the format is slighly different, so the code skips printing zero keys. Samsung's log page has additional, unknown data after the end of Intel defined data which isn't displayed. Supported by: Netfix, Inc Notes: svn path=/head/; revision=308856
* Implement HGST Log page 0xc1, as documented in the HGST SN100 andWarner Losh2016-11-191-0/+420
| | | | | | | | | SN150 product manuals. Subpage 0x32 is documented, but not implemented. Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=308855
* Print Intel's expanded Temperature log page.Warner Losh2016-11-191-1/+32
| | | | | | | Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=308854
* Expand the SMART / Health Information Log Page (Page 02) printoutWarner Losh2016-11-191-6/+21
| | | | | | | | | based on NVM Express 1.2.1 Standard. Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=308851
* Print numbers instead of hex values for smart data. The full 128-bitWarner Losh2016-11-191-34/+58
| | | | | | | | | | number is printed, even though you'd need like a billion IOPs for a 10 billion seconds to overflow the 64-bit counters (~300 years). Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=308850
* Use a table for pages we know the size of. We have a special case forWarner Losh2016-11-191-19/+15
| | | | | | | | | the error log since it isn't a fixed size. Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=308849
* Remove check for valid log pages. Let the drive tell us which pagesWarner Losh2016-11-191-8/+0
| | | | | | | | | | | are valid or not. While many pages are reserved in the standard, that doesn't make them invalid and future versions of the standard may define then. Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=308848
* Add missing history sections to a number of storage related man pagesAllan Jude2016-09-161-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gmultipath.8: Add HISTORY Adjust sentences with bad phrases picked up by igor ggatec.8: Add HISTORY ggated.8: Add HISTORY ggatel.8: Add HISTORY Seperate out sentence as advised by igor. hastctl.8: Add HISTORY hastd.8: Add HISTORY Fix sentence highlighted by igor. iscontrol.8: Add HISTORY mdmfs.8: Add HISTORY Address issues raised by igor mount_nfs.8: Add HISTORY Not sure where mount_nfs first showed up, but the verison used in the BSD's originates from 4.4BSD according to CSRG archive. Though commercial offerings from Sun and others covers older systems, eg https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI nandfs.8: Add HISTORY Adjust sentence in description to address bad phrase highlighted by igor. nvmecontrol.8: Add HISTORY PR: 212491 PR: 212498 PR: 212499 PR: 212500 PR: 212501 PR: 212502 PR: 212505 PR: 212508 PR: 212540 PR: 212543 PR: 212546 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Notes: svn path=/head/; revision=305861
* nvmecontrol.8: minor spelling fix.Pedro F. Giffuni2016-05-061-2/+2
| | | | | | | No functional change. Notes: svn path=/head/; revision=299151
* MFHGlen Barber2016-03-141-5/+5
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296869
| * In nvmecontrol, fix gcc warnings about the local 'power' variablesDimitry Andric2016-03-111-5/+5
| | | | | | | | | | | | | | shadowing a global declaration. Notes: svn path=/head/; revision=296672
* | Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Implement power command to list all power modes, find out the powerWarner Losh2016-01-305-1/+208
| | | | | | | mode we're in and to set the power mode. Notes: svn path=/head/; revision=295087
* Revert r295062 to unbreak buildworldEnji Cooper2016-01-305-208/+1
| | | | | | | | | | | 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> Notes: svn path=/head/; revision=295076
* Implement power command to list all power modes, find out the powerWarner Losh2016-01-305-1/+208
| | | | | | | mode we're in and to set the power mode. Notes: svn path=/head/; revision=295062
* nvmecontrol: read controller identify data before any log page operationsJim Harris2015-07-221-1/+2
| | | | | | | | MFC after: 3 days Sponsored by: Intel Notes: svn path=/head/; revision=285796
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-191-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-283-15/+26
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ Merge head@256284Simon J. Gerraty2013-10-131-5/+7
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * \ \ Merge from headSimon J. Gerraty2013-09-0510-535/+1541
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ sync from headSimon J. Gerraty2013-04-122-25/+88
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
* | | | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-2/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | | | For "nvmecontrol devlist", show namespace sizes in terms of MB instead ofJim Harris2014-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GB to improve granularity of the reporting - especially for namespaces that are on the order of 1 or 2 GB. Submitted by: Tony Beltran <anthony.beltran@emc.com> MFC after: 3 days Notes: svn path=/head/; revision=260381
* | | | | Check for special status code from FIRMWARE_ACTIVATE commandJim Harris2013-11-121-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | signifying that a reboot is required to complete activation of the requested firmware image. Reported by: Joe Golio <joseph.golio@emc.com> Sponsored by: Intel MFC after: 3 days Notes: svn path=/head/; revision=258071
* | | | | Do not exit with error status after printing data for perftest.Jim Harris2013-11-011-2/+0
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: Intel Reported by: Joe Golio <joseph.golio@emc.com> MFC after: 3 days Notes: svn path=/head/; revision=257531
* | | | Extend some 32-bit fields and variables to 64-bit to prevent overflowJim Harris2013-10-081-5/+7
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when calculating stats in nvmecontrol perftest. Sponsored by: Intel Reported by: Joe Golio <joseph.golio@emc.com> Reviewed by: carl Approved by: re (hrs) MFC after: 1 week Notes: svn path=/head/; revision=256152
* | | Add message when nvd disks are attached and detached.Jim Harris2013-07-193-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of this commit, add an nvme_strvis() function which borrows heavily from cam_strvis(). This will allow stripping of leading/trailing whitespace and also handle unprintable characters in model/serial numbers. This function goes into a new nvme_util.c file which is used by both the driver and nvmecontrol. Sponsored by: Intel Reviewed by: carl MFC after: 3 days Notes: svn path=/head/; revision=253476
* | | Fix nvme(4) and nvd(4) to support non 512-byte sector sizes.Jim Harris2013-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent testing with QEMU that has variable sector size support for NVMe uncovered some of these issues. Chatham prototype boards supported only 512 byte sectors. Sponsored by: Intel Reviewed by: carl MFC after: 3 days Notes: svn path=/head/; revision=253474