NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/55189: NVMe SSD reports unsafe shutdowns
The following reply was made to PR kern/55189; it has been noted by GNATS.
From: Andreas Gustafsson <gson%gson.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gson%gson.org@localhost (Andreas Gustafsson)
Subject: Re: kern/55189: NVMe SSD reports unsafe shutdowns
Date: Wed, 22 Apr 2020 18:17:14 +0300
FWIW, the lack of detach messages for nvme0 and ld0 can also be
reproduced in qemu without any physical NVMe hardware. Just create
a disk image:
dd if=/dev/zero of=nvme.img bs=1k count=1024
and add the following to the qemu-system-x86_64 command line:
-drive file=nvme.img,if=none,id=a -device nvme,drive=a,serial=1234
The console will show attach messages like these at boot time:
[ 1.0071408] nvme0 at pci0 dev 4 function 0: Intel product 5845 (rev. 0x02)
[ 1.0071408] nvme0: NVMe 1.2
[ 1.0071408] nvme0: for admin queue interrupting at msix0 vec 0
[ 1.0071408] nvme0: QEMU NVMe Ctrl, firmware 1.0, serial 1234
[ 1.0071408] nvme0: for io queue 1 interrupting at msix0 vec 1 affinity to cpu0
[ 1.0071408] ld0 at nvme0 nsid 1
[ 1.0071408] ld0: 1024 KB, 2 cyl, 16 head, 63 sec, 512 bytes/sect x 2048 sectors
but no corresponding detach messages at shutdown time.
--
Andreas Gustafsson, gson%gson.org@localhost
Home |
Main Index |
Thread Index |
Old Index