Nvme nvme1: Could not set queue count (16390)

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

If an installed NVMe SSD is not recognized during the installation of a Linux system, you can search for clues in the dmesg output. If you see a Could not set queue count (16390) message, this indicates an error with the NVMe SSD. In this example, we have not yet been able to revive the faulty SSD. In this example, we have not yet been able to revive the faulty SSD.

dmesg output

When the nvme_set_features() function returns the status value 0, the queues can be created. Values > 0 (example "16390") indicate problems with the NVMe controller of the SSD.[1]

In the following example (system with Ubuntu 22.04 and Linux-Kernel 5.15.0-78-generic), two M.2 NVMe SSDs are installed:

  • nvme0: functional Micron M.2 22110 7450 3,86 TB SSD
  • nvme1: faulty Micron M.2 2280 7450 960 GB SSD

The first SSD (nvme0) is recognized correctly and the Namespace-Device /dev/nvme0n1 is created. The second SSD (nvme1) is also recognized in principle, but no Namespace-Device is created. Instead, the following error messages are displayed:

root@ubuntu-22-04:~# dmesg | grep nvme
[    5.452345] nvme nvme0: pci function 0000:6a:00.0
[    5.472769] nvme nvme0: 96/0/0 default/read/poll queues
[    5.488684]  nvme0n1: p1 p2
[    5.611739] nvme nvme1: pci function 0000:6b:00.0
[    5.618658] nvme nvme1: could not set timestamp (16390)
[    5.619188] nvme nvme1: Could not set queue count (16390)
[    5.619190] nvme nvme1: IO queues not created
[    5.619214] nvme nvme1: Failed to configure AEN (cfg 300)
[    9.274180] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    9.804294] EXT4-fs (nvme0n1p2): re-mounted. Opts: (null). Quota mode: none.
root@ubuntu-22-04:~# 

Further analysis

For further analysis, the NVMe-CLI is used.

nvme list-subsys

The command nvme list-subsys shows both SSDs:

root@ubuntu-22-04:~# nvme list-subsys
nvme-subsys0 - NQN=nqn.2016-08.com.micron:nvme:nvm-subsystem-sn-22513D6D91F2
\
 +- nvme0 pcie 0000:6a:00.0 live
nvme-subsys1 - NQN=nqn.2016-08.com.micron:nvme:nvm-subsystem-sn-22503FB3D7CE
\
 +- nvme1 pcie 0000:6b:00.0 live
root@ubuntu-22-04:~# 

The command nvme list, which lists namespaces, can only display the functional SSD:

root@ubuntu-22-04:~# nvme list
Node                  SN                   Model                                    Namespace Usage                      Format           FW Rev
--------------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1          22513D6D91F2         Micron_7450_MTFDKBG3T8TFR                1          68,81  GB /   3,84  TB      4 KiB +  0 B   E2MU200
root@ubuntu-22-04:~# 

nvme id-ctrl

Output of the functional SSD /dev/nvme0:

root@ubuntu-22-04:~# nvme id-ctrl /dev/nvme0
NVME Identify Controller:
vid       : 0x1344
ssvid     : 0x1344
sn        : 22513D6D91F2
mn        : Micron_7450_MTFDKBG3T8TFR
fr        : E2MU200
rab       : 3
ieee      : 00a075
cmic      : 0
mdts      : 10
cntlid    : 0
ver       : 0x10400
rtd3r     : 0x1e8480
rtd3e     : 0x3d0900
oaes      : 0x300
ctratt    : 0x98
rrls      : 0x8010
cntrltype : 1
fguid     : =m▒▒
crdt1     : 0
crdt2     : 0
crdt3     : 0
nvmsr     : 1
vwci      : 255
mec       : 3
oacs      : 0x5e
acl       : 3
aerl      : 7
frmw      : 0x17
lpa       : 0x1e
elpe      : 255
npss      : 4
avscc     : 0x1
apsta     : 0
wctemp    : 350
cctemp    : 358
mtfa      : 20
hmpre     : 0
hmmin     : 0
tnvmcap   : 3840755982336
unvmcap   : 0
rpmbs     : 0
edstt     : 30
dsto      : 1
fwug      : 1
kas       : 0
hctma     : 0x1
mntmt     : 303
mxtmt     : 356
sanicap   : 0xa0000003
hmminds   : 0
hmmaxd    : 0
nsetidmax : 0
endgidmax : 1
anatt     : 0
anacap    : 0
anagrpmax : 0
nanagrpid : 0
pels      : 512
domainid  : 0
megcap    : 0
sqes      : 0x66
cqes      : 0x44
maxcmd    : 0
nn        : 132
oncs      : 0xdf
fuses     : 0x1
fna       : 0x4
vwc       : 0x6
awun      : 63
awupf     : 63
icsvscc     : 1
nwpc      : 0
acwu      : 63
ocfs      : 0
sgls      : 0xf0001
mnan      : 0
maxdna    : 0
maxcna    : 0
subnqn    : nqn.2016-08.com.micron:nvme:nvm-subsystem-sn-22513D6D91F2
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:7.00W operational enlat:0 exlat:0 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps    2 : mp:6.00W operational enlat:0 exlat:0 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps    3 : mp:5.00W operational enlat:0 exlat:0 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps    4 : mp:4.00W operational enlat:0 exlat:0 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-

Output of the faulty SSD /dev/nvme1:

root@ubuntu-22-04:~# nvme id-ctrl /dev/nvme1
NVME Identify Controller:
vid       : 0x1344
ssvid     : 0x1344
sn        : 22503FB3D7CE
mn        : Micron_7450_MTFDKBA960TFR
fr        : E2MU200
rab       : 3
ieee      : 00a075
cmic      : 0
mdts      : 10
cntlid    : 0
ver       : 0x10400
rtd3r     : 0x1e8480
rtd3e     : 0x1e8480
oaes      : 0x300
ctratt    : 0x98
rrls      : 0x8010
cntrltype : 1
fguid     : ?▒▒▒
crdt1     : 0
crdt2     : 0
crdt3     : 0
nvmsr     : 1
vwci      : 255
mec       : 3
oacs      : 0x5f
acl       : 3
aerl      : 7
frmw      : 0x17
lpa       : 0x1e
elpe      : 255
npss      : 4
avscc     : 0x1
apsta     : 0
wctemp    : 350
cctemp    : 358
mtfa      : 20
hmpre     : 0
hmmin     : 0
tnvmcap   : 960197124096
unvmcap   : 0
rpmbs     : 0
edstt     : 30
dsto      : 1
fwug      : 1
kas       : 0
hctma     : 0x1
mntmt     : 303
mxtmt     : 356
sanicap   : 0xa0000003
hmminds   : 0
hmmaxd    : 0
nsetidmax : 0
endgidmax : 1
anatt     : 0
anacap    : 0
anagrpmax : 0
nanagrpid : 0
pels      : 512
domainid  : 0
megcap    : 0
sqes      : 0x66
cqes      : 0x44
maxcmd    : 0
nn        : 132
oncs      : 0xdf
fuses     : 0x1
fna       : 0x4
vwc       : 0x6
awun      : 63
awupf     : 63
icsvscc     : 1
nwpc      : 0
acwu      : 63
ocfs      : 0
sgls      : 0xf0001
mnan      : 0
maxdna    : 0
maxcna    : 0
subnqn    : nqn.2016-08.com.micron:nvme:nvm-subsystem-sn-22503FB3D7CE
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:7.00W operational enlat:0 exlat:0 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps    2 : mp:6.00W operational enlat:0 exlat:0 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps    3 : mp:5.00W operational enlat:0 exlat:0 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps    4 : mp:4.00W operational enlat:0 exlat:0 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-

More information

References

  1. drivers/nvme/host/core.c (git.kernel.org, Kernel 5.15)


Author: Werner Fischer

Werner Fischer, working in the Knowledge Transfer team at Thomas-Krenn, completed his studies of Computer and Media Security at FH Hagenberg in Austria. He is a regular speaker at many conferences like LinuxTag, OSMC, OSDC, LinuxCon, and author for various IT magazines. In his spare time he enjoys playing the piano and training for a good result at the annual Linz marathon relay.


Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

Kioxia SSD overview
Perform a SSD Secure Erase
Western Digital SN640 firmware updates R1110021 and R1410004