[PATCH]: NVME device not found with Linux 5.19.* - globally duplicate IDs for nsid 1

Shyamin Ayesh me at shyamin.com
Fri Aug 26 02:58:45 PDT 2022


Hi All,

After upgrading to linux-5.19.2 a second identical NVME device is no
longer found/visible. Only one of the 2 devices is visible in the /dev
tree. Also can reproduce the same bug in 5.18.* versions and
downgrading to 5.17.* fixes the issue atm.

The 5.18* / 5.19* kernel throws the error: "globally duplicate IDs for nsid 1"

➜  ~ sudo dmesg| grep nvme
[    1.145069] nvme nvme0: pci function 0000:02:00.0
[    1.145201] nvme nvme1: pci function 0000:05:00.0
[    1.148053] nvme nvme1: missing or invalid SUBNQN field.
[    1.149823] nvme nvme0: missing or invalid SUBNQN field.
[    1.157321] nvme nvme1: allocated 64 MiB host memory buffer.
[    1.157960] nvme nvme1: 4/0/0 default/read/poll queues
[    1.159831]  nvme1n1: p1 p2 p3 p4
[    1.159932] nvme nvme0: allocated 64 MiB host memory buffer.
[    1.160277] nvme nvme0: 4/0/0 default/read/poll queues
[    1.160530] nvme nvme0: globally duplicate IDs for nsid 1
[    1.160532] nvme nvme0: VID:DID 1d97:2263 model:Lexar 250GB SSD
firmware:V2.18.0
➜  ~

➜  ~ lspci -nnk | grep "Non-Volatile memory controller"
02:00.0 Non-Volatile memory controller [0108]: Shenzhen Longsys
Electronics Co., Ltd. SM2263EN/SM2263XT-based OEM SSD [1d97:2263] (rev
03)
05:00.0 Non-Volatile memory controller [0108]: Shenzhen Longsys
Electronics Co., Ltd. SM2263EN/SM2263XT-based OEM SSD [1d97:2263] (rev
03)
➜  ~

Ref: https://bugzilla.kernel.org/show_bug.cgi?id=216394

Please take a look at the attached test patch and hope someone can
help me to merge it to the upcoming kernel updates.

Regards,
Shyamin Ayesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lexar-nm610-duplicate-ids.patch
Type: application/octet-stream
Size: 536 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20220826/25230247/attachment-0001.obj>


More information about the Linux-nvme mailing list