Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 May 2023 10:05:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271276] Needs reboot to detect NVMe disk after hot add NVMe controller and disk separately in FreeBSD 12.x and 13.x
Message-ID:  <bug-271276-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271276

            Bug ID: 271276
           Summary: Needs reboot to detect NVMe disk after hot add NVMe
                    controller and disk separately in FreeBSD 12.x and
                    13.x
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: yanhuih@vmware.com

After install a FreeBSD guest OS in VMware vSphere, we have 2 different way=
s to
do hot adding NVMe controller and hard disk.

1st: Hot adding NVMe controller firstly and press OK in "Edit Setting" of
vSphere vCenter UI, then hot adding a Hard disk attached to this NVMe
controller and press OK in "Edit Setting";

2nd: Hot adding NVMe controller and a hard disk attached to this NVMe
controller at the same time, and press OK in "Edit Setting" of vSphere vCen=
ter
UI;

For the 1st scenario, all currrent FreeBSD 12.x and 13.x need reboot to det=
ect
the NVMe hard disk. From dmesg, it reports=EF=BC=9A
# dmesg
pci5: <ACPI PCI bus> on pcib19
nvme0: <VMware NVMe Controller> at device 0.0 on pci5
nvme0: temperature threshold not supported
nvme0: async event occurred (type 0x2, info 0x00, page 0x04)

After reboot, dmesg reports "/dev/nvd0" has been detected.
# dmesg
......
nvme0: temperature threshold not supported
nvd0: <VMware Virtual NVMe Disk> NVMe namespace
nvd0: 1024MB (2097152 512 byte sectors)
......


For the 2nd scenario, all current FreeBSD 12.x and 13.x can detect NVMe hard
disk without reboot.
# dmesg
pci5: <ACPI PCI bus> on pcib19
nvme0: <VMware NVMe Controller> at device 0.0 on pci5
nvme0: temperature threshold not supported
nvd0: <VMware Virtual NVMe Disk> NVMe namespace
nvd0: 1024MB (2097152 512 byte sectors)

Can FreeBSD add the support of detecting the NVMe hard disk without reboot
after hot adding NVMe controller and hard disk separately?

Thanks in advance!
Yanhui

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271276-227>