nvme - duplicate cntlid

Bug #1961439 reported by Roman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

lsb_release -r
Release: 21.10

uname -r
5.13.0-28-generic

sudo dmesg | grep nvme
[ 2.213011] nvme 0000:01:00.0: platform quirk: setting simple suspend
[ 2.213050] nvme nvme0: pci function 0000:01:00.0
[ 2.213073] nvme 0000:04:00.0: platform quirk: setting simple suspend
[ 2.213102] nvme nvme1: pci function 0000:04:00.0
[ 2.264504] nvme nvme0: allocated 64 MiB host memory buffer.
[ 2.264525] nvme nvme1: Duplicate cntlid 1 with nvme0, rejecting
[ 2.264527] nvme nvme1: Removing after probe failure status: -22
[ 2.282402] nvme nvme0: 8/0/0 default/read/poll queues

lspci
...
01:00.0 Non-Volatile memory controller: Device 1d79:2263 (rev 03)
...
04:00.0 Non-Volatile memory controller: Device 1d79:2263 (rev 03)

lspci -k
...
01:00.0 Non-Volatile memory controller: Device 1d79:2263 (rev 03)
 Subsystem: Device 1d79:2263
 Kernel driver in use: nvme
 Kernel modules: nvme
...
04:00.0 Non-Volatile memory controller: Device 1d79:2263 (rev 03)
 Subsystem: Device 1d79:2263
 Kernel modules: nvme

There are two physically connected disks. One of the disks is not available in the system.
---
ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version k5.13.0-28-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D2', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D10p', '/dev/snd/pcmC0D9p', '/dev/snd/pcmC0D8p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D3p', '/dev/snd/pcmC0D2c', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
CasperMD5CheckResult: pass
DistroRelease: Ubuntu 21.10
InstallationDate: Installed on 2022-02-16 (2 days ago)
InstallationMedia: Ubuntu-Server 21.10 "Impish Indri" - Release amd64 (20211013)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.0-28-generic root=UUID=4b94deae-f8f1-45ed-ac4f-238858705d9d ro
ProcVersionSignature: Ubuntu 5.13.0-28.31-generic 5.13.19
RelatedPackageVersions:
 linux-restricted-modules-5.13.0-28-generic N/A
 linux-backports-modules-5.13.0-28-generic N/A
 linux-firmware 1.201.4
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: impish
Uname: Linux 5.13.0-28-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 01/06/2021
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: L1.33
dmi.board.name: Z490M-ITX/ac
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrL1.33:bd01/06/2021:br5.17:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnZ490M-ITX/ac:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:skuToBeFilledByO.E.M.:
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1961439

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Roman (rseleven) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected impish
description: updated
Revision history for this message
Roman (rseleven) wrote : CRDA.txt

apport information

Revision history for this message
Roman (rseleven) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Roman (rseleven) wrote : Card0.Codecs.codec.2.txt

apport information

Revision history for this message
Roman (rseleven) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Roman (rseleven) wrote : Lspci.txt

apport information

Revision history for this message
Roman (rseleven) wrote : Lspci-vt.txt

apport information

Revision history for this message
Roman (rseleven) wrote : Lsusb.txt

apport information

Revision history for this message
Roman (rseleven) wrote : Lsusb-t.txt

apport information

Revision history for this message
Roman (rseleven) wrote : Lsusb-v.txt

apport information

Revision history for this message
Roman (rseleven) wrote : PciMultimedia.txt

apport information

Revision history for this message
Roman (rseleven) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Roman (rseleven) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Roman (rseleven) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Roman (rseleven) wrote : ProcModules.txt

apport information

Revision history for this message
Roman (rseleven) wrote : UdevDb.txt
Revision history for this message
Roman (rseleven) wrote : WifiSyslog.txt
Revision history for this message
Roman (rseleven) wrote : acpidump.txt

apport information

Revision history for this message
Roman (rseleven) wrote :

apport-collect 1961439

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Roman (rseleven) wrote :
Download full text (3.5 KiB)

I will add information from FreeBSD 13.0:

dmesg | grep nv
nvme0: <Generic NVMe Device> mem 0xb1400000-0xb1403fff irq 16 at device 0.0 on pci1
nvme1: <Generic NVMe Device> mem 0xb1100000-0xb1103fff irq 16 at device 0.0 on pci4
nvme0: Allocated 64MB host memory buffer
nvd0: <TS128GMTE110S> NVMe namespace
nvd0: 122104MB (250069680 512 byte sectors)
nvme1: Allocated 64MB host memory buffer
nvd1: <TS128GMTE110S> NVMe namespace
nvd1: 122104MB (250069680 512 byte sectors)

nvmecontrol devlist
 nvme0: TS128GMTE110S
    nvme0ns1 (122104MB)
 nvme1: TS128GMTE110S
    nvme1ns1 (122104MB)

nvme id-ctrl /dev/nvme0
0xc0484e41: opc: 0x6 fuse: 0 cid 0 nsid:0 cmd2: 0 cmd3: 0
          : cdw10: 0x1 cdw11: 0 cdw12: 0 cdw13: 0
          : cdw14: 0 cdw15: 0 len: 0x1000 is_read: 0
<--- 0 cid: 0 status 0
NVME Identify Controller:
vid : 0x1d79
ssvid : 0x1d79
sn : <sn-01>
mn : TS128GMTE110S
fr : T1102A0L
rab : 6
ieee : 000000
cmic : 0
mdts : 6
cntlid : 1
ver : 10300
rtd3r : 249f0
rtd3e : 13880
oaes : 0x200
ctratt : 0
rrls : 0
oacs : 0x7
acl : 4
aerl : 7
frmw : 0x12
lpa : 0x3
elpe : 63
npss : 0
avscc : 0
apsta : 0
wctemp : 356
cctemp : 358
mtfa : 100
hmpre : 16384
hmmin : 8192
tnvmcap : 128035676160
unvmcap : 0
rpmbs : 0
edstt : 0
dsto : 0
fwug : 4
kas : 0
hctma : 0x1
mntmt : 273
mxtmt : 358
sanicap : 0
hmminds : 0
hmmaxd : 0
nsetidmax : 0
anatt : 0
anacap : 0
anagrpmax : 0
nanagrpid : 0
sqes : 0x66
cqes : 0x44
maxcmd : 0
nn : 1
oncs : 0x14
fuses : 0
fna : 0
vwc : 0x1
awun : 0
awupf : 0
nvscc : 0
nwpc : 0
acwu : 0
sgls : 0
mnan : 0
subnqn : nqn.2021-04.com.siliconmotion:nvm-subsystem-sn-0009726A000000500000
ioccsz : 0
iorcsz : 0
icdoff : 0
ctrattr : 0
msdbd : 0
ps 0 : mp:6.00W operational enlat:0 exlat:0 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-

nvme id-ctrl /dev/nvme1
0xc0484e41: opc: 0x6 fuse: 0 cid 0 nsid:0 cmd2: 0 cmd3: 0
          : cdw10: 0x1 cdw11: 0 cdw12: 0 cdw13: 0
          : cdw14: 0 cdw15: 0 len: 0x1000 is_read: 0
<--- 0 cid: 0 status 0
NVME Identify Controller:
vid : 0x1d79
ssvid : 0x1d79
sn : <sn-02>
mn : TS128GMTE110S
fr : T1102A0L
rab : 6
ieee : 000000
cmic : 0
mdts : 6
cntlid : 1
ver : 10300
rtd3r : 249f0
rtd3e : 13880
oaes : 0x200
ctratt : 0
rrls : 0
oacs : 0x7
acl : 4
aerl : 7
frmw : 0x12
lpa : 0x3
elpe : 63
npss : 0
avscc : 0
apsta : 0
wctemp : 356
cctemp : 358
mtfa : 100
hmpre : 16384
hmmin : 8192
tnvmcap : 128035676160
unvmcap : 0
rpmbs : 0
edstt : 0
dsto : 0
fwug : 4
kas : 0
hctma : 0x1
mntmt : 273
mxtmt : 358
sanicap : 0
hmminds : 0
hmmaxd : 0
nsetidmax : 0
anatt : 0
anacap : 0
anagrpmax : 0
nanagrpid : 0
sqes : 0x66
cqes : 0x44
maxcmd : 0
nn : 1
oncs : 0x14
fuses : 0
fna : 0
vwc : 0x1
awun ...

Read more...

Revision history for this message
Roman (rseleven) wrote :

Gathered info on FreeBSD 13.0 because I couldn't on Ubuntu.
CNTLID value for these drives is really the same.

tags: added: focal jammy
Revision history for this message
Justin Berger (jdavidberger) wrote :
Download full text (3.3 KiB)

Running into the same issue:

$ sudo dmesg | grep nvme
[ 3.153211] nvme nvme0: pci function 0000:02:00.0
[ 3.153959] nvme nvme1: pci function 0000:5b:00.0
[ 3.204128] nvme nvme0: 16/0/0 default/read/poll queues
[ 3.214443] nvme0n1: p1 p2 p3 p4
[ 3.215829] nvme nvme1: Duplicate cntlid 0 with nvme0, subsys nqn.2014-08.org.nvmexpress:uuid:4be34a83-f00e-488a-ac5a-3006545c2b7f, rejecting
[ 3.250785] nvme nvme1: Removing after probe failure status: -22
[ 107.996697] EXT4-fs (nvme0n1p1): VFS: Can't find ext4 filesystem
[ 107.996927] EXT4-fs (nvme0n1p1): VFS: Can't find ext4 filesystem
[ 107.997035] EXT4-fs (nvme0n1p1): VFS: Can't find ext4 filesystem
[ 107.997162] Can't find a SQUASHFS superblock on nvme0n1p1

$ lsb_release -r
Release: 21.10

$ uname -r
5.16.11-76051611-generic

$ lspci -k
00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
 DeviceName: Onboard - Other
 Subsystem: Micro-Star International Co., Ltd. [MSI] 11th Gen Core Processor Host
...
02:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5407
 Subsystem: Micron Technology Inc Device 0100
 Kernel driver in use: nvme
 Kernel modules: nvme
...
5b:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5407
 Subsystem: Micron Technology Inc Device 0100
 Kernel modules: nvme
...

$ sudo nvme id-ctrl /dev/nvme0
NVME Identify Controller:
vid : 0x1344
ssvid : 0x1344
sn : 21343102D309
mn : Micron_3400_MTFDKBA1T0TFH
fr : P7MA000
rab : 0
ieee : 00a075
cmic : 0
mdts : 9
cntlid : 0
ver : 0x10400
rtd3r : 0x7a120
rtd3e : 0x1e8480
oaes : 0
ctratt : 0x2
rrls : 0
cntrltype : 1
fguid :
crdt1 : 0
crdt2 : 0
crdt3 : 0
oacs : 0x17
acl : 3
aerl : 7
frmw : 0x14
lpa : 0x1b
elpe : 255
npss : 4
avscc : 0x1
apsta : 0x1
wctemp : 353
cctemp : 355
mtfa : 50
hmpre : 0
hmmin : 0
tnvmcap : 1024209543168
unvmcap : 0
rpmbs : 0
edstt : 30
dsto : 1
fwug : 0
kas : 0
hctma : 0x1
mntmt : 273
mxtmt : 353
sanicap : 0x60000002
hmminds : 0
hmmaxd : 0
nsetidmax : 0
endgidmax : 0
anatt : 0
anacap : 0
anagrpmax : 0
nanagrpid : 0
pels : 125
sqes : 0x66
cqes : 0x44
maxcmd : 0
nn : 1
oncs : 0x57
fuses : 0
fna : 0
vwc : 0x7
awun : 255
awupf : 0
icsvscc : 1
nwpc : 0
acwu : 0
sgls : 0
mnan : 0
subnqn : nqn.2014-08.org.nvmexpress:uuid:4be34a83-f00e-488a-ac5a-3006545c2b7f
ioccsz : 0
iorcsz : 0
icdoff : 0
fcatt : 0
msdbd : 0
ofcs : 0
ps 0 : mp:8.25W operational enlat:0 exlat:0 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-
ps 1 : mp:4.00W operational enlat:0 exlat:0 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps 2 : mp:2.00W operational enlat:0 exlat:0 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps 3 : mp:0.1000W non-operational enlat:5000 exlat:6000 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps 4 : mp:0.0050W non-operati...

Read more...

Revision history for this message
Justin Berger (jdavidberger) wrote :

Also worth noting: It's random which one gets removed and which one gets added on my system. This makes it harder to work around and was pretty confusing when I did a new system install without paying attention to the name of the device.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.