[Bug 271276] Needs reboot to detect NVMe disk after hot add NVMe controller and disk separately in FreeBSD 12.x and 13.x

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 06 May 2023 10:05:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271276

            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 ways 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 vCenter
UI;

For the 1st scenario, all currrent FreeBSD 12.x and 13.x need reboot to detect
the NVMe hard disk. From dmesg, it reports´╝Ü
# 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

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