Ubuntu 22.04, "nvme list" will hang for 60 seconds after "nvme subsystem-reset"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Issue description:
root:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
root:~# uname -a
Linux dapu-Star-Lake 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
root:~#nvme subsystem-reset /dev/nvme0
root:~#nvme list //This command will hang about 60 seconds.
Issue analysis:
Maybe it hangs in function nvme_wait_reset. When we revert the following commit, this issue will disappear.
if (!nvme_
https:/
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
CasperMD5CheckR
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-10-27 (306 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
IwConfig:
lo no wireless extensions.
enp65s0f0np0 no wireless extensions.
enp65s0f1np1 no wireless extensions.
MachineType: Tencent Star Lake
Package: linux (not installed)
ProcFB: 0 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 20220329.
RfKill:
Tags: jammy
Uname: Linux 6.2.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 12/09/2021
dmi.bios.release: 5.14
dmi.bios.vendor: Tencent
dmi.bios.version: 1.53.02
dmi.board.
dmi.board.name: TC1-SLMB-A
dmi.board.vendor: Inventec
dmi.board.version: MBD3A43200D00001
dmi.chassis.
dmi.chassis.type: 23
dmi.chassis.vendor: Tencent
dmi.modalias: dmi:bvnTencent:
dmi.product.family: Default string
dmi.product.name: Star Lake
dmi.product.sku: 012345678901234
dmi.product.
dmi.sys.vendor: Tencent
affects: | ubuntu → linux (Ubuntu) |
tags: | added: jammy |
Here is the dmesg.
nvme subsytem-reset /dev/nvme0 at 11:51:03. And then execute nvme list.
And the nvme0 is normal at 11:52:05.
[11:51:03 2023] pcieport 0000:80:01.1: pciehp: Slot(17): Link Down 0x0000ffff 64bit] 0x00001fff 64bit pref] 0x00007fff pref] 0xb240ffff 64bit] 0xb2417fff pref] 0x58140f01fff 64bit pref] 0xb24fffff] 0x58140ffffff 64bit pref]
[11:52:04 2023] nvme 0000:81:00.0: Unable to change power state from D3cold to D0, device inaccessible
[11:52:04 2023] nvme nvme0: Removing after probe failure status: -19
[11:52:04 2023] nvme0n1: detected capacity change from 27346862080 to 0
[11:52:04 2023] pci 0000:81:00.0: Removing from iommu group 10
[11:52:05 2023] pcieport 0000:80:01.1: pciehp: Slot(17): Card present
[11:52:05 2023] pcieport 0000:80:01.1: pciehp: Slot(17): Link Up
[11:52:05 2023] pci 0000:81:00.0: [1e3b:0600] type 00 class 0x010802
[11:52:05 2023] pci 0000:81:00.0: reg 0x10: [mem 0x00000000-
[11:52:05 2023] pci 0000:81:00.0: reg 0x20: [mem 0x00000000-
[11:52:05 2023] pci 0000:81:00.0: reg 0x30: [mem 0x00000000-
[11:52:05 2023] pci 0000:81:00.0: Max Payload Size set to 512 (was 128, max 512)
[11:52:05 2023] pci 0000:81:00.0: Adding to iommu group 10
[11:52:05 2023] pcieport 0000:80:01.1: bridge window [io 0x1000-0x0fff] to [bus 81] add_size 1000
[11:52:05 2023] pcieport 0000:80:01.1: BAR 13: no space for [io size 0x1000]
[11:52:05 2023] pcieport 0000:80:01.1: BAR 13: failed to assign [io size 0x1000]
[11:52:05 2023] pcieport 0000:80:01.1: BAR 13: no space for [io size 0x1000]
[11:52:05 2023] pcieport 0000:80:01.1: BAR 13: failed to assign [io size 0x1000]
[11:52:05 2023] pci 0000:81:00.0: BAR 0: assigned [mem 0xb2400000-
[11:52:05 2023] pci 0000:81:00.0: BAR 6: assigned [mem 0xb2410000-
[11:52:05 2023] pci 0000:81:00.0: BAR 4: assigned [mem 0x58140f00000-
[11:52:05 2023] pcieport 0000:80:01.1: PCI bridge to [bus 81]
[11:52:05 2023] pcieport 0000:80:01.1: bridge window [mem 0xb2400000-
[11:52:05 2023] pcieport 0000:80:01.1: bridge window [mem 0x58140f00000-
[11:52:05 2023] nvme nvme0: pci function 0000:81:00.0
[11:52:05 2023] nvme 0000:81:00.0: enabling device (0000 -> 0002)
[11:52:05 2023] nvme nvme0: 64/0/0 default/read/poll queues
[11:52:05 2023] nvme_log_error: 20 callbacks suppressed