]> www.infradead.org Git - users/sagi/nvme-cli.git/log
users/sagi/nvme-cli.git
4 days agoudev: Add custom udev rule for the Vast Data Block array vastdata-block-custom-udev-rule
Sagi Grimberg [Sun, 22 Sep 2024 18:29:36 +0000 (21:29 +0300)]
udev: Add custom udev rule for the Vast Data Block array

Vast Data array supports NVMe-oF block access, and it prefers the
host to use round-robin path selection for performance benefits.

In addition, disable the ctrl_loss_tmo in case of prolonged
maintenance operations.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
11 days agosed: better error messages for revert and password
Greg Joyce [Thu, 10 Apr 2025 22:23:23 +0000 (17:23 -0500)]
sed: better error messages for revert and password

Use context to print better error messages for common
revert and password errors.

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
2 weeks agoRelease v2.13
Daniel Wagner [Fri, 11 Apr 2025 11:26:08 +0000 (13:26 +0200)]
Release v2.13

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 weeks agodoc: Regenerate all docs for v2.13
Daniel Wagner [Fri, 11 Apr 2025 11:26:07 +0000 (13:26 +0200)]
doc: Regenerate all docs for v2.13

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 weeks agobuild: bump libnvme wrap
Daniel Wagner [Fri, 11 Apr 2025 11:23:06 +0000 (13:23 +0200)]
build: bump libnvme wrap

Update to libnvme v1.13

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 weeks agonvme-print: print new fields of nvme_id_independent_id_ns
Francis Pravin [Thu, 10 Apr 2025 12:15:45 +0000 (17:45 +0530)]
nvme-print: print new fields of nvme_id_independent_id_ns

Print new fields of I/O Command Set Independent Identify Namespace
Data Structure based on NVM Express Base Specification 2.1.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
2 weeks agoplugins/lm: Refine Sequence Indicator description and macro usage
Dmitry Sherstoboev [Tue, 8 Apr 2025 23:53:17 +0000 (07:53 +0800)]
plugins/lm: Refine Sequence Indicator description and macro usage

Changed the command dword reference in the sequence indicator (seqind)
help text from CDW11 to CDW10. This aligns with the spec.

Also changed the macro used for setting the sequence indicator bits
in the `mos` field from LM_MIGRATION_SEND_MOS to LM_SEQIND.

Signed-off-by: Dmitry Sherstoboev <sdmitry@google.com>
2 weeks agobuild: bump libnvme wrap
Daniel Wagner [Wed, 9 Apr 2025 06:52:53 +0000 (08:52 +0200)]
build: bump libnvme wrap

Fetch LM_SEQIND changes.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 weeks agoplugins/solidigm: Updated SMART PLL Lock Loss counters field
Leonardo da Cunha [Thu, 27 Feb 2025 22:44:34 +0000 (14:44 -0800)]
plugins/solidigm: Updated SMART PLL Lock Loss counters field

Broke down additional SMART PLL Lock Loss field into separate counters.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
3 weeks agonvme-print: display fw-rev in list-subsys output
Martin George [Thu, 3 Apr 2025 16:45:28 +0000 (22:15 +0530)]
nvme-print: display fw-rev in list-subsys output

Include the subsys firmware revision as well in the list-subsys
verbose output.

Signed-off-by: Martin George <marting@netapp.com>
3 weeks agonvme-print: display model in list-subsys output
Martin George [Thu, 3 Apr 2025 16:38:23 +0000 (22:08 +0530)]
nvme-print: display model in list-subsys output

Include the subsys model as well in the list-subsys
verbose output.

Signed-off-by: Martin George <marting@netapp.com>
3 weeks agobuild: bump libnvme wrap
Daniel Wagner [Fri, 4 Apr 2025 06:27:43 +0000 (08:27 +0200)]
build: bump libnvme wrap

Fetch the latest fixes from libnvme.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
3 weeks agonvme-cli: attach ns to local controller if none specified
Keith Busch [Thu, 3 Apr 2025 14:29:26 +0000 (07:29 -0700)]
nvme-cli: attach ns to local controller if none specified

Assume the user meant to attach the namespace to the controller the
command was sent to if the user didn't provide a controller id list.

Suggested-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Daniel Wagner <wagi@kernel.org>
3 weeks agoRevert "nvme-print-json: display only verbose output"
Daniel Wagner [Tue, 1 Apr 2025 13:02:52 +0000 (15:02 +0200)]
Revert "nvme-print-json: display only verbose output"

This reverts commit 929f4619a9aa9c900247384480fe60ff96931b07.

The output format chagned and breaks existing automation.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
3 weeks agonvme: fix to set nvme_io_args reftag value
Tokunori Ikegami [Wed, 2 Apr 2025 13:40:41 +0000 (22:40 +0900)]
nvme: fix to set nvme_io_args reftag value

Since the value is used by the libnvme nvme_io() function.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agonetapp-ontapdev: add subsysname to regular output
Martin George [Wed, 2 Apr 2025 11:49:46 +0000 (17:19 +0530)]
netapp-ontapdev: add subsysname to regular output

Display the subsysname in the regular output as well.

Signed-off-by: Martin George <marting@netapp.com>
3 weeks agonvme-print: use allocation error string variable
Tokunori Ikegami [Sun, 30 Mar 2025 12:55:14 +0000 (21:55 +0900)]
nvme-print: use allocation error string variable

Use the variable instead of the hardcorded and duplicated strings.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agoplugins: add NVMe feature extension
Tokunori Ikegami [Tue, 1 Apr 2025 15:18:10 +0000 (00:18 +0900)]
plugins: add NVMe feature extension

This extension is for adding each features commands to get and set.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agonvme-print: add nvme_show_perror() variable number arguments
Tokunori Ikegami [Sun, 30 Mar 2025 10:58:44 +0000 (19:58 +0900)]
nvme-print: add nvme_show_perror() variable number arguments

Then show_perror print function outputs the message with a va_list.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agonvme-print-json: set allocation error string directly
Tokunori Ikegami [Sun, 30 Mar 2025 10:43:55 +0000 (19:43 +0900)]
nvme-print-json: set allocation error string directly

Currenty allocation error string set if the variable was NULL.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agoocp: Fix print_formatted_var_size_str and json_add_formatted_var_size_str
jeff-lien-wdc [Mon, 31 Mar 2025 21:54:33 +0000 (16:54 -0500)]
ocp: Fix print_formatted_var_size_str and json_add_formatted_var_size_str

These 2 functions, used by the ocp plugin, had string arrays
with hard coded lengths.  In some cases, the hard coded length
was not long enough for strings that were being printed.
The functions were changed to allocate a buffers long enough
to contain the full string.

Updated the OCP plugin version to 2.12.0

Signed-off-by: jeff-lien-wdc <jeff.lien@sandisk.com>
3 weeks agomailmap: show only contributers name
Daniel Wagner [Tue, 1 Apr 2025 12:48:23 +0000 (14:48 +0200)]
mailmap: show only contributers name

Signed-off-by: Daniel Wagner <wagi@kernel.org>
3 weeks agoocp: replace no-uuid option help string to use no_uuid variable
Tokunori Ikegami [Sun, 30 Mar 2025 04:54:34 +0000 (13:54 +0900)]
ocp: replace no-uuid option help string to use no_uuid variable

Reduce duplicated string definitions.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agoplugins/lm: Pass numd option to nvme_lm_migration_recv
Dmitry Sherstoboev [Fri, 28 Mar 2025 17:50:15 +0000 (01:50 +0800)]
plugins/lm: Pass numd option to nvme_lm_migration_recv

Forward the user-provided 'numd' value from the command-line options
to the underlying nvme_lm_migration_recv library function call.

Signed-off-by: Dmitry Sherstoboev <sdmitry@google.com>
3 weeks agoplugins: sort subdir list as alphabetical order
Tokunori Ikegami [Sat, 29 Mar 2025 15:31:53 +0000 (00:31 +0900)]
plugins: sort subdir list as alphabetical order

This is to find easily the sub-commands name from the help list.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agoplugins: move meson.build solidigm-nvme.c into solidigm/meson.build
Tokunori Ikegami [Sat, 29 Mar 2025 15:19:58 +0000 (00:19 +0900)]
plugins: move meson.build solidigm-nvme.c into solidigm/meson.build

Add as same with other solidigm sources added by solidigm/meson.build.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
3 weeks agocompletions: Update solidigm parse-telemetry-log --sourcefile
Leonardo da Cunha [Fri, 21 Mar 2025 00:19:25 +0000 (17:19 -0700)]
completions: Update solidigm parse-telemetry-log --sourcefile

Updated option description.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
3 weeks agodocumentation: Updated solidigm parse-telemetry-log source-file.
Leonardo da Cunha [Fri, 21 Mar 2025 00:11:38 +0000 (17:11 -0700)]
documentation: Updated solidigm parse-telemetry-log source-file.

Source-file was a flag, now is gets a filename.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
3 weeks agoplugins/solidigm: Fix parse-telemetry-log command parsing error handling.
Leonardo da Cunha [Thu, 20 Mar 2025 01:03:52 +0000 (18:03 -0700)]
plugins/solidigm: Fix parse-telemetry-log command parsing error handling.

Returning errno as negative number as rest of code.
Turned -source-file into a regular file argument.
Replaced goto with clean_up variable attributes.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
3 weeks agoplugins/solidigm: parse-telemetry-log aware of OCP2.5 binaries
Leonardo da Cunha [Wed, 5 Mar 2025 20:11:14 +0000 (12:11 -0800)]
plugins/solidigm: parse-telemetry-log aware of OCP2.5 binaries

Made parse-telemetry-log aware of OCP2.5 binaries.
Display proper OCP reason identifier.
Don't extract toc from DA1/DA2 when OCP log detected.
Show DA4 last block in the header.
Removed ccan ilog.h dependency
Fixed Nlog parser by taking Nlog header into account.
Added verbose mode.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
3 weeks agosndk: Add documentation for Sandisk plugin commands
jeff-lien-wdc [Thu, 13 Feb 2025 20:25:33 +0000 (14:25 -0600)]
sndk: Add documentation for Sandisk plugin commands

Add documentation files for new Sandisk plugin commands.

Signed-off-by: jeff-lien-wdc <jeff.lien@sandisk.com>
3 weeks agosandisk: Add sandisk plugin
jeff-lien-wdc [Fri, 10 Jan 2025 22:10:39 +0000 (16:10 -0600)]
sandisk: Add sandisk plugin

Add new plugin to support sandisk drives.

Signed-off-by: jeff-lien-wdc <jeff.lien@sandisk.com>
3 weeks agonetapp-ontapdev: add subsysname to the verbose output
Martin George [Wed, 19 Mar 2025 10:00:05 +0000 (15:30 +0530)]
netapp-ontapdev: add subsysname to the verbose output

Display the ONTAP subsystem name too in the verbose output.

Signed-off-by: Martin George <marting@netapp.com>
3 weeks agosed: add SED man pages
Greg Joyce [Mon, 17 Mar 2025 20:16:41 +0000 (15:16 -0500)]
sed: add SED man pages

man pages for SED plugin commands

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
5 weeks agoRelease v2.12
Daniel Wagner [Mon, 17 Mar 2025 09:40:09 +0000 (10:40 +0100)]
Release v2.12

Signed-off-by: Daniel Wagner <wagi@kernel.org>
5 weeks agodoc: Regenerate all docs for v2.12
Daniel Wagner [Mon, 17 Mar 2025 09:40:09 +0000 (10:40 +0100)]
doc: Regenerate all docs for v2.12

Signed-off-by: Daniel Wagner <wagi@kernel.org>
5 weeks agobuild: bump libnvme wrap
Daniel Wagner [Mon, 17 Mar 2025 09:31:22 +0000 (10:31 +0100)]
build: bump libnvme wrap

Update to v1.12.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
5 weeks agowdc: On FreeBSD, get the timezone the same as with real glibc
Warner Losh [Sat, 8 Mar 2025 05:56:54 +0000 (22:56 -0700)]
wdc: On FreeBSD, get the timezone the same as with real glibc

FreeBSD 15 and newer finally has the timezone variable (prior it that
was a compat function leftover from 4BSD). Older versions are still
supported. Both have tm_gmoff, which I've always preferred for better
portability.

Signed-off-by: Warner Losh <imp@bsdimp.com>
5 weeks agonvme: add error message for mmap_registers
Steven Seungcheol Lee [Sun, 16 Mar 2025 06:07:14 +0000 (15:07 +0900)]
nvme: add error message for mmap_registers

To indicate that backward compatibility is not supported
since we drop the block device fallback

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
6 weeks agosed: improved contextual error messages
Greg Joyce [Mon, 10 Mar 2025 22:20:01 +0000 (17:20 -0500)]
sed: improved contextual error messages

Improve quality of error messages but including context and
locking state.

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
6 weeks agonvme: use correct parser type for nvmsetid and endgid option
Daniel Wagner [Tue, 11 Mar 2025 12:29:53 +0000 (13:29 +0100)]
nvme: use correct parser type for nvmsetid and endgid option

nvmsetid and endgid are both shorts, thus the OPT_SHRT parser
type needs to be used. Otherwise the result is written to the wrong
memory location.

Fixes: 972effdf884e ("nvme.c: create-ns arguments are added")
Signed-off-by: Daniel Wagner <wagi@kernel.org>
7 weeks agonvme-print: print new fields of Asynchronous Event Configuration
Francis Pravin [Thu, 6 Mar 2025 11:28:12 +0000 (16:58 +0530)]
nvme-print: print new fields of Asynchronous Event Configuration

Print the newly added fields of Asynchronous Event Configuration
feature (FID - 0Bh)
NVM Express Base Specification 2.1.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
7 weeks agocompletions: add pull-model-ddc-req-log command
Tokunori Ikegami [Fri, 28 Feb 2025 14:52:01 +0000 (23:52 +0900)]
completions: add pull-model-ddc-req-log command

Both bash and zsh completions updated for the command.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
7 weeks agodoc: add pull-model-ddr-req-log command
Tokunori Ikegami [Fri, 28 Feb 2025 14:50:56 +0000 (23:50 +0900)]
doc: add pull-model-ddr-req-log command

Added the nvme-pull-model-ddr-req-log.txt file.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
7 weeks agonvme: add pull-model-ddc-req-log command
Tokunori Ikegami [Fri, 28 Feb 2025 14:36:51 +0000 (23:36 +0900)]
nvme: add pull-model-ddc-req-log command

Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
7 weeks agonvme: fix ave-discovery-log command LID setting
Tokunori Ikegami [Fri, 28 Feb 2025 14:33:33 +0000 (23:33 +0900)]
nvme: fix ave-discovery-log command LID setting

Also fixed the function definition unnecessary line break.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
7 weeks agoMakefile: Add new targets and update meson command syntax
Martin Belanger [Fri, 28 Feb 2025 16:06:23 +0000 (11:06 -0500)]
Makefile: Add new targets and update meson command syntax

- For the "install" target, use "--skip-subprojects" so that only
  nvme-cli (and not the subprojects) get installed.
- For the "purge" target, add "meson subprojects purge".
- Added "update-subprojects" target
- Added "test-strict" target. This is to limit testing to nvme-cli
  and not all the subprojects.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
7 weeks agomicron: Add missing newline
Warner Losh [Fri, 28 Feb 2025 21:56:06 +0000 (14:56 -0700)]
micron: Add missing newline

Add missing newline to error for cards that don't support the
vs-drive-info command.

Signed-off-by: Warner Losh <imp@bsdimp.com>
8 weeks agocompletions: add ave-discovery-log command
Tokunori Ikegami [Thu, 27 Feb 2025 16:37:30 +0000 (01:37 +0900)]
completions: add ave-discovery-log command

Both bash and zsh completions updated for the command.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agodoc: add ave-discovery-log command
Tokunori Ikegami [Thu, 27 Feb 2025 16:34:09 +0000 (01:34 +0900)]
doc: add ave-discovery-log command

Added the nvme-ave-discovery-log.txt file.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agoDocumentation: Added solidigm plugin commands to main manual page.
Leonardo da Cunha [Fri, 28 Feb 2025 00:34:24 +0000 (16:34 -0800)]
Documentation: Added solidigm plugin commands to main manual page.

Added most unique solidigm plugin commands to main manual page.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
8 weeks agonvme-print: add human readable output for IOCS Data Structure
Francis Pravin [Thu, 27 Feb 2025 12:19:32 +0000 (17:49 +0530)]
nvme-print: add human readable output for IOCS Data Structure

Add human readable output for Identify I/O Command Set Data
Structure (CNS 1Ch).

Signed-off-by: Francis Pravin <francis.p@samsung.com>
8 weeks agobuild: bump libnvme wrap
Francis Pravin [Thu, 27 Feb 2025 11:50:25 +0000 (17:20 +0530)]
build: bump libnvme wrap

020b979 - types: add enum for Identify I/O Command Set Data Structure

Signed-off-by: Francis Pravin <francis.p@samsung.com>
8 weeks agosed: extended discovery feature code printing
Greg Joyce [Wed, 26 Feb 2025 21:14:06 +0000 (15:14 -0600)]
sed: extended discovery feature code printing

Added ability to discover and print details of all specified
level 0 features.

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
8 weeks agonetapp-ontapdev: correct the basestr header
Martin George [Wed, 26 Feb 2025 16:27:40 +0000 (21:57 +0530)]
netapp-ontapdev: correct the basestr header

Yet another correction to the basestr headers.

Signed-off-by: Martin George <marting@netapp.com>
8 weeks agonvme: add ave-discovery-log command
Tokunori Ikegami [Wed, 26 Feb 2025 16:18:46 +0000 (01:18 +0900)]
nvme: add ave-discovery-log command

Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agonvme-print-json: delete json_host_discovery_log printf error code
Tokunori Ikegami [Wed, 26 Feb 2025 16:15:45 +0000 (01:15 +0900)]
nvme-print-json: delete json_host_discovery_log printf error code

Missed to delete the printf call since copied from nvme-print-stdout.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agonetapp-smdev: update err msg for no smdevices
Martin George [Wed, 26 Feb 2025 11:41:24 +0000 (17:11 +0530)]
netapp-smdev: update err msg for no smdevices

Update the error message when no smdevices are detected on
the host.

Signed-off-by: Martin George <marting@netapp.com>
8 weeks agonetapp-ontapdev: update err msg for no ontapdevices
Martin George [Wed, 26 Feb 2025 11:36:00 +0000 (17:06 +0530)]
netapp-ontapdev: update err msg for no ontapdevices

Update the error message when no ontapdevices are detected
on the host.

Signed-off-by: Martin George <marting@netapp.com>
8 weeks agonetapp-smdev: update basestr header in verbose output
Martin George [Wed, 26 Feb 2025 08:06:00 +0000 (13:36 +0530)]
netapp-smdev: update basestr header in verbose output

Update the basestr headers to be more descriptive in the
verbose output.

Signed-off-by: Martin George <marting@netapp.com>
8 weeks agonetapp-ontapdev: update basestr headers in verbose output
Martin George [Wed, 26 Feb 2025 07:56:56 +0000 (13:26 +0530)]
netapp-ontapdev: update basestr headers in verbose output

Update the basestr headers to be more descriptive in the
verbose output.

Signed-off-by: Martin George <marting@netapp.com>
8 weeks agonvme: enforce ns granularity on ns create
Daniel Wagner [Tue, 25 Feb 2025 08:44:38 +0000 (09:44 +0100)]
nvme: enforce ns granularity on ns create

When the device supports the namespace granularity feature, update the
alignment requirements accordingly. Because this is likely to change the
capacity of the namespace also issue a info what is going to happen.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
8 weeks agodoc: add host-discovery-log command
Tokunori Ikegami [Mon, 24 Feb 2025 02:28:01 +0000 (11:28 +0900)]
doc: add host-discovery-log command

Added the nvme-host-discovery-log.txt file.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agocompletions: add host-discovery-log command
Tokunori Ikegami [Mon, 24 Feb 2025 02:26:46 +0000 (11:26 +0900)]
completions: add host-discovery-log command

Both bash and zsh completions updated for the command.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agocompletions: fix zsh completions array parameter names
Tokunori Ikegami [Mon, 24 Feb 2025 02:09:54 +0000 (11:09 +0900)]
completions: fix zsh completions array parameter names

Since copied from the exsisting completion but missed to change.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agonvme: add host-discovery-log command
Tokunori Ikegami [Fri, 21 Feb 2025 15:30:54 +0000 (00:30 +0900)]
nvme: add host-discovery-log command

Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agobuild: bump libnvme wrap
Tokunori Ikegami [Mon, 24 Feb 2025 09:32:33 +0000 (18:32 +0900)]
build: bump libnvme wrap

Include nvmf_exat_ptr_next export.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
8 weeks agonvme-print: print Host Behavior Support feature fields
Francis Pravin [Thu, 20 Feb 2025 13:05:40 +0000 (18:35 +0530)]
nvme-print: print Host Behavior Support feature fields

Print the fields of Host Behavior Support feature (FID - 16h).
NVM Express Base Specification 2.1

Signed-off-by: Francis Pravin <francis.p@samsung.com>
2 months agocompletions: Added fdp feature auto-completion.
Leonardo da Cunha [Wed, 19 Feb 2025 22:37:34 +0000 (14:37 -0800)]
completions: Added fdp feature auto-completion.

Fixed syntax error on zsh auto-completion

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
2 months agonvme-wrap: fix get_log_reachability_associations parameters order
Tokunori Ikegami [Mon, 17 Feb 2025 15:13:40 +0000 (00:13 +0900)]
nvme-wrap: fix get_log_reachability_associations parameters order

Since the len parameter should be moved before the log parameter.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agonvme-print-binary: fix to output phy rx eom log length
Tokunori Ikegami [Sun, 16 Feb 2025 06:58:04 +0000 (15:58 +0900)]
nvme-print-binary: fix to output phy rx eom log length

Previously incorrectly the log length is calculated by the LE log data.
So fix to convert the value from LE to host endian for the calculation.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agonvme-print-binary: fix to output dispersed ns participating nss log length
Tokunori Ikegami [Sun, 16 Feb 2025 06:36:55 +0000 (15:36 +0900)]
nvme-print-binary: fix to output dispersed ns participating nss log length

Previously only the log header output since the log length is changeable.
The changes to output the changeable log length correctly.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agonvme-print-binary: fix to output reachability groups log length
Tokunori Ikegami [Sun, 16 Feb 2025 06:18:38 +0000 (15:18 +0900)]
nvme-print-binary: fix to output reachability groups log length

Previously only the log header output since the log length is changeable.
The changes to output the changeable log length correctly.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agonvme-print-binary: fix to output reachability associations log length
Tokunori Ikegami [Sun, 16 Feb 2025 02:25:42 +0000 (11:25 +0900)]
nvme-print-binary: fix to output reachability associations log length

Previously only the log header output since the log length is changeable.
The changes to output the changeable log length correctly.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agoplugins/ocp: Added OCP 2.6 telemetry support
Vigneshwaran Saravanan/Vigneshwaran Saravanan [Mon, 17 Feb 2025 13:49:24 +0000 (19:19 +0530)]
plugins/ocp: Added OCP 2.6 telemetry support
Updated the Telemetry Structure and Enum to support the OCP 2.6 spec

Reviewed-by: Karthik Balan <karthik.b82@samsung.com>
Reviewed-by: Arunpandian J <arun.j@samsung.com>
Signed-off-by: Vigneshwaran Saravanan/Vigneshwaran Saravanan <s.vignesh@samsung.com>
2 months agoutil/logging: fix print format string
Daniel Wagner [Mon, 17 Feb 2025 14:20:10 +0000 (15:20 +0100)]
util/logging: fix print format string

Let's cast it to the longest type which works on 32bit and 64bit.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 months agoplugins/sed: use platform depended cast for pointer type
Daniel Wagner [Mon, 17 Feb 2025 14:16:49 +0000 (15:16 +0100)]
plugins/sed: use platform depended cast for pointer type

On 32bit platforms the compiler complains with

../plugins/sed/sedopal_cmd.c:515:25: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  515 |         discover.data = (__u64)buf;

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 months agoplugins/virtium: fix print format string
Daniel Wagner [Mon, 17 Feb 2025 13:57:49 +0000 (14:57 +0100)]
plugins/virtium: fix print format string

time_ms is of type time_t which is not really portable to use. Let's
cast it to the longest type which works on 32bit and 64bit.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 months agoutil/types: fix print format string
Daniel Wagner [Mon, 17 Feb 2025 13:50:43 +0000 (14:50 +0100)]
util/types: fix print format string

Let's cast it to the longest type which works on 32bit and 64bit.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 months agobuild: bump libnvme wrap
Daniel Wagner [Mon, 17 Feb 2025 13:43:40 +0000 (14:43 +0100)]
build: bump libnvme wrap

Update to get cross build fixes for the updated cross build containers.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
2 months agonvme-print: print new fields of nvm_id_ctrl
Francis Pravin [Mon, 17 Feb 2025 09:10:40 +0000 (14:40 +0530)]
nvme-print: print new fields of nvm_id_ctrl

Print the new fields of I/O Command Set Specific Identify Controller
Data Structure based on NVM Command Set Specification 1.1.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
2 months agonvme: check for valid output format
Martin George [Sun, 16 Feb 2025 16:38:23 +0000 (22:08 +0530)]
nvme: check for valid output format

Several commands such as nvme get-feature, get-property, id_iocs, etc.
don't check for a valid output format unlike other nvme commands.
Fix the same.

Signed-off-by: Martin George <marting@netapp.com>
2 months agonvme: make get-feature JSON output print everything
Martin George [Sun, 16 Feb 2025 15:58:31 +0000 (21:28 +0530)]
nvme: make get-feature JSON output print everything

The nvme JSON outputs now print everything verbose. But this was
missed out for the get-feature command, so fix the same here.

Signed-off-by: Martin George <marting@netapp.com>
2 months agodoc: Add nvme-fdp-feature command
Leonardo da Cunha [Wed, 22 Jan 2025 23:36:45 +0000 (15:36 -0800)]
doc: Add nvme-fdp-feature command

Adds helper command to enable FDP configuration.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
2 months agoplugins/fdp: Added FDP feature subcommand.
Leonardo da Cunha [Wed, 22 Jan 2025 00:06:55 +0000 (16:06 -0800)]
plugins/fdp: Added FDP feature subcommand.

Allows enabling and disabling FDP configuration.

Signed-off-by: Leonardo da Cunha <leonardo.da.cunha@solidigm.com>
2 months agotests: check if verify command is supported
Dennis Maisenbacher [Thu, 13 Feb 2025 13:56:36 +0000 (13:56 +0000)]
tests: check if verify command is supported

Check if the optional NVM command 'verify' (NVMCPYS) is supported before
running tests for this command.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
2 months agotests: fix hex to base-10 conversion in id-ctrl output
Dennis Maisenbacher [Fri, 14 Feb 2025 08:11:41 +0000 (08:11 +0000)]
tests: fix hex to base-10 conversion in id-ctrl output

When doing bit checks on id-ctrl output fields we need to convert the
field numbers to a base-10 integer. However, the json output mostly
returns already base-10 integers, so we now first check for the '0x'
prefix before falsely converting the desired value.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
2 months agotests: read LBA size for validation
Dennis Maisenbacher [Thu, 13 Feb 2025 12:17:40 +0000 (12:17 +0000)]
tests: read LBA size for validation

Create the default namespace before running tests and validate IO in LBA
size granularity.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
2 months agotests: fix LBA format calculation
Dennis Maisenbacher [Thu, 13 Feb 2025 08:23:46 +0000 (08:23 +0000)]
tests: fix LBA format calculation

We assumed that the test drive is always formatted with lbaf 0 which
leads to miscalculation of the maximum available size on namespace
creation.
Now we query the LBA size according to the selected `self.flbas`.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
2 months agocompletions: add reachability-associations-log command
Tokunori Ikegami [Thu, 13 Feb 2025 14:55:49 +0000 (23:55 +0900)]
completions: add reachability-associations-log command

Both bash and zsh completions updated for the command.
Also fix the reachability-groups-log bash completion to use a single space.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agodoc: add reachability-associations-log command
Tokunori Ikegami [Thu, 13 Feb 2025 14:51:26 +0000 (23:51 +0900)]
doc: add reachability-associations-log command

Added the nvme-reachability-associations-log.txt file.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agonvme: add reachability-associations-log command
Tokunori Ikegami [Tue, 11 Feb 2025 15:15:37 +0000 (00:15 +0900)]
nvme: add reachability-associations-log command

Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agonvme-wrap: do_admin_op() get_log_reachability_groups parameters order
Tokunori Ikegami [Wed, 12 Feb 2025 17:11:36 +0000 (02:11 +0900)]
nvme-wrap: do_admin_op() get_log_reachability_groups parameters order

Since the len parameter should be moved before the log parameter.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agobuild: bump libnvme wrap
Tokunori Ikegami [Wed, 12 Feb 2025 17:02:08 +0000 (02:02 +0900)]
build: bump libnvme wrap

Include nvme_reachability_association_desc member variable name fix.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agonvme: make -v output consistent with -H output for nvme get-feature
Martin George [Tue, 11 Feb 2025 16:23:20 +0000 (21:53 +0530)]
nvme: make -v output consistent with -H output for nvme get-feature

Current -v verbose output of the nvme get-feature command is a no-op.
So update it to make it consistent with the -H human-readable output
for this same command.

Signed-off-by: Martin George <marting@netapp.com>
2 months agonvme: make -v output consistent with -H output for nvme get-property
Martin George [Tue, 11 Feb 2025 16:07:24 +0000 (21:37 +0530)]
nvme: make -v output consistent with -H output for nvme get-property

Current -v verbose output of the nvme get-property command is a
no-op. So update it to make it consistent with the -H human-readable
output for this same command.

Signed-off-by: Martin George <marting@netapp.com>
2 months agonvme: fix reachability-groups-log command perror message
Tokunori Ikegami [Tue, 11 Feb 2025 15:17:42 +0000 (00:17 +0900)]
nvme: fix reachability-groups-log command perror message

Since copied the command implementation but missed to change.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agocompletions: add reachability-groups-log command
Tokunori Ikegami [Tue, 11 Feb 2025 14:17:45 +0000 (23:17 +0900)]
completions: add reachability-groups-log command

Both bash and zsh completions updated for the command.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agodoc: add reachability-groups-log command
Tokunori Ikegami [Tue, 11 Feb 2025 14:09:08 +0000 (23:09 +0900)]
doc: add reachability-groups-log command

Added the nvme-reachability-groups-log.txt file.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
2 months agoCI: add missing bind-mount option for /dev
Dennis Maisenbacher [Tue, 11 Feb 2025 11:09:01 +0000 (12:09 +0100)]
CI: add missing bind-mount option for /dev

The failing run-nightly-tests GitHub action is caused by a missing
bind-mount option of the /dev directory. Without the 'shared'
bind-propagation the device tree is not reliably updated within the
container. This causes newly created namespaces not to show up.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>