]>
www.infradead.org Git - users/sagi/nvme-cli.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Daniel Wagner [Fri, 7 Feb 2025 13:55:28 +0000 (14:55 +0100)]
Revert "argconfig: add argconfig_get_value()"
This reverts commit
cccefc48a9aca3c0b3f0f2a2a0fe5d01ad9eb59a .
Causes regression in nightly CI runs. The problem couldn't be figured out
thus revert it.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Daniel Wagner [Fri, 7 Feb 2025 13:54:52 +0000 (14:54 +0100)]
Revert "nvme: use blkdev for direct if namespace-id specified"
This reverts commit
565b30e285934502e9fcaaf7d9b8bd81e5011d0f .
Causes regression in nightly CI runs. The problem couldn't be figured out
thus revert it.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Daniel Wagner [Fri, 7 Feb 2025 13:53:29 +0000 (14:53 +0100)]
Revert "nvme: add flush command chardev handle error message"
This reverts commit
946029cf58d2b039a20c0c96dba7e6ef636070f9 .
Causes regression in nightly CI runs. The problem couldn't be figured out
thus revert it.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Tokunori Ikegami [Mon, 10 Feb 2025 14:56:07 +0000 (23:56 +0900)]
nvme: add reachability-groups-log command
Since added the NVMe 2.1 log page.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Daniel Wagner [Mon, 10 Feb 2025 13:19:16 +0000 (14:19 +0100)]
nvme: do not output debug infos on info level
Do not clutter the info message level with debug information.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Daniel Wagner [Mon, 10 Feb 2025 13:04:18 +0000 (14:04 +0100)]
build: checkpatch limit line length to 100 chars
The default is 100 chars.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Martin George [Sun, 9 Feb 2025 18:42:28 +0000 (00:12 +0530)]
nvme-print-stdout: add details in list-ns verbose output
Add identifier & NSID tags in the verbose output of the list-ns
command for better clarity. And while at it, print a common
"NVMe Namespace List" tag at the top too. For e.g.
nvme list-ns /dev/nvme1n1 -v
dev: /dev/nvme1n1, fd: 3
NVME Namespace List:
Identifier 0: NSID 0x1
Identifier 1: NSID 0x2
...
Signed-off-by: Martin George <marting@netapp.com>
Martin George [Sun, 9 Feb 2025 18:29:52 +0000 (23:59 +0530)]
nvme-print-stdout: add descriptions for nsze, ncap & nuse
Add descriptions for the nsze, ncap & nuse fields in the verbose
output of the id-ns command for better clarity. For e.g.
nvme id-ns /dev/nvme1n1 -v
dev: /dev/nvme1n1, fd: 3
NVME Identify Namespace 1:
nsze : 0x280000 Total size in logical blocks
ncap : 0x280000 Maximum size in logical blocks
nuse : 0x13b3e Current size in logical blocks
...
Signed-off-by: Martin George <marting@netapp.com>
Tokunori Ikegami [Sun, 9 Feb 2025 05:45:26 +0000 (14:45 +0900)]
completions: add and fix io-mgmt-recv and io-mgmt-send commands
Also fixed get-reg and set-reg commands completions.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 9 Feb 2025 03:02:17 +0000 (12:02 +0900)]
completions: add dispersed-ns-participating-nss-log command
Both bash and zsh completions updated for the command.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 9 Feb 2025 02:33:07 +0000 (11:33 +0900)]
doc: add dispersed-ns-participating-nss-log command
Added the nvme-dispersed-ns-participating-nss-log.txt file.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 2 Feb 2025 11:20:46 +0000 (20:20 +0900)]
nvme: add dispersed-ns-participating-nss-log command
Since added the NVMe 2.1 log page.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 7 Feb 2025 15:10:15 +0000 (00:10 +0900)]
completions: add changed-alloc-ns-list-log command
Both bash and zsh completions updated for the command.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 26 Jan 2025 01:29:09 +0000 (10:29 +0900)]
completions: fix mgmt-addr-list-log command
Since missed to add the command into the command list.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Sun, 26 Jan 2025 00:59:16 +0000 (09:59 +0900)]
doc: add changed-alloc-ns-list-log command
Added the nvme-changed-alloc-ns-list-log.txt file.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Mon, 27 Jan 2025 14:22:35 +0000 (23:22 +0900)]
nvme: add NVMe 2.1 changed-alloc-ns-list-log command
The command functions combined with the changed-ns-list-log command.
The output almost same but different as lists attached or allocated NSs.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Mon, 10 Feb 2025 12:28:42 +0000 (13:28 +0100)]
nvme-wrap: handle get log rotational media info correctly
Return error for the missing get log rotational media function
for non MI devices.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Daniel Wagner [Mon, 10 Feb 2025 12:44:01 +0000 (13:44 +0100)]
build: sync checkpatch config file
Sync nvme-cli checkpatch configuration with the one in libnvme.
There is no point in having different configurations for this.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Daniel Wagner [Mon, 10 Feb 2025 12:37:50 +0000 (13:37 +0100)]
build: checkpatch ignore new/del/mov files
Do not warn about missing MAINTAINER file updates.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Tokunori Ikegami [Sun, 2 Feb 2025 13:39:06 +0000 (22:39 +0900)]
nvme-wrap: use rotational media information log libnvme-mi API
Since the libnvme-mi missed to add but will be added then use it.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Fri, 7 Feb 2025 15:01:14 +0000 (00:01 +0900)]
build: bump libnvme wrap
Include libnvme-mi NVMe 2.1 log page APIs.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Wed, 5 Feb 2025 15:30:12 +0000 (00:30 +0900)]
ocp: fix to free hwcomp log desc memory allocated
Since the desc pointer used _cleanup_free_ only set NULL value.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
[wagi: free buffer on error in get_hwcomp_log_data]
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Tokunori Ikegami [Mon, 3 Feb 2025 15:38:14 +0000 (00:38 +0900)]
nvme: change attach-ns to error out if wrong device given
Also updating the documentation.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Francis Pravin [Tue, 21 Jan 2025 08:30:08 +0000 (14:00 +0530)]
nvme-print: print new id-ns fields added in NVM Command Set Spec 1.1
Print the new fields of Identify Namespace Data Structure added in NVM
Command Set Specification 1.1.
Signed-off-by: Francis Pravin <francis.p@samsung.com>
Francis Pravin [Tue, 21 Jan 2025 06:07:12 +0000 (11:37 +0530)]
build: bump libnvme wrap
dfc5cdf - types: Update id-ns fields based on NVM Command Set Spec 1.1
d8d9542 - types: Update nvm-id-ns fields based on NVM Command Set Spec 1.1
Signed-off-by: Francis Pravin <francis.p@samsung.com>
Daniel Wagner [Fri, 7 Feb 2025 14:52:41 +0000 (15:52 +0100)]
plugins/ocp: fix telemetry parser buffer overflow
The fixed 256-byte description_str will overflow for any reasonably
sized data_size >= 128.
Max data_size is for OCP VU Event Data is 0xFF Dwords, so the buffer
should be at least 1020 bytes + 1 for null. 1024 seems like a nice
number for OCP.
Reported-by: Nate Thornton <n.thornton@samsung.com>
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Greg Joyce [Fri, 31 Jan 2025 20:26:05 +0000 (14:26 -0600)]
sed: add '--read-only' to lock/unlock commands
This change allows a user to specify that a drive is to be locked
read-only rather than just read-write. Also a drive that is locked
read-write can be "unlocked" to locked read-only.
The flag '--read-only' is used so the locking type can be specified.
Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
Martin George [Fri, 31 Jan 2025 16:30:29 +0000 (22:00 +0530)]
udev-rules-ontap: switch to queue-depth iopolicy
The queue_depth based iopolicy suits ONTAP NVMe controllers better.
So switch to the same.
Signed-off-by: Martin George <marting@netapp.com>
Tokunori Ikegami [Thu, 30 Jan 2025 15:05:33 +0000 (00:05 +0900)]
doc: add rotational-media-info-log command
Added the nvme-rotational-media-info-log.txt file.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 30 Jan 2025 14:40:38 +0000 (23:40 +0900)]
completions: add rotational-media-info-log command
Both bash and zsh completions updated for the command.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Daniel Wagner [Wed, 29 Jan 2025 16:19:49 +0000 (17:19 +0100)]
tests: monitor /dev for new nvme block device
The attach operation takes a bit of time and is asynchronous, thus we
should monitor if the block device appears for a period, before
returning an error.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
hsdhillo [Thu, 2 Jan 2025 19:02:17 +0000 (11:02 -0800)]
plugins/solidigm: Telemetry null check json object
ensure object is not null
Signed-off-by: hsdhillo <Hardeep.Dhillon@solidigm.com>
hsdhillo [Tue, 31 Dec 2024 16:29:53 +0000 (08:29 -0800)]
plugins/solidigm: Replace snprintf with asprintf
Replace snprintf with better memory management option
Signed-off-by: hsdhillo <Hardeep.Dhillon@solidigm.com>
Tokunori Ikegami [Tue, 28 Jan 2025 15:00:54 +0000 (00:00 +0900)]
Revert "tests: add blkdev checking after NS creation"
This reverts commit
c276f3ddd780c55458e509b74d80633728828950 .
The namespace will be created but not yet attached, thus the block
device is not created either.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
[wagi: added commit message]
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Hannes Reinecke [Mon, 27 Jan 2025 11:20:46 +0000 (12:20 +0100)]
fabrics: make 'disconnect' accepting only -n or -d
There is limited usability in specifying both -n and -d, so make
both exclusive.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Tokunori Ikegami [Sun, 26 Jan 2025 14:36:58 +0000 (23:36 +0900)]
nvme: add rotational-media-info-log command
Since added the NVMe 2.1 log page.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 23 Jan 2025 15:45:54 +0000 (00:45 +0900)]
tests: add verbose options for NS management commands
This is for debugging output if test failed.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Tokunori Ikegami [Thu, 23 Jan 2025 15:03:45 +0000 (00:03 +0900)]
tests: add blkdev checking after NS creation
To make sure the blkdev as same with NS attachment.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>