[Bug 285993] nvme device breakage in 14.2 STABLE n270867-25df691800f0

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Apr 2025 21:17:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285993

--- Comment #19 from Jim Long <freebsd-bugzilla@umpquanet.com> ---
Just to wrap up an open question, Warner had asked for some tracepoints in
pcib_hotplug_present so I added:

@@ -1099,12 +1120,19 @@ pcib_hotplug_present(struct pcib_softc *sc)

    /* Card must be inserted. */
    if (!pcib_hotplug_inserted(sc))
+{
+device_printf(sc->dev, "card not inserted\n");
        return (0);
+}

    /* Require the Data Link Layer to be active. */
    if (!(sc->pcie_link_sta & PCIEM_LINK_STA_DL_ACTIVE))
+{
+device_printf(sc->dev, "Data Link Layer not active\n");
        return (0);
+}

+device_printf(sc->dev, "pcib_hotplug_present\n");
    return (-1);
 }

And saw:

---<<BOOT>>---
...
pci8: <ACPI PCI bus> numa-domain 0 on pcib8
pcib9: <Intel Volume Management Device> mem
0x3800fc000000-0x3800fdffffff,0xf8000000-0xf9ffffff,0x3800fff00000-0x3800ffffffff
at device 5.5 numa-domain 0 on pci8
pci9: <PCI bus> numa-domain 0 on pcib9
pcib10: <PCI-PCI bridge> irq 0 at device 2.0 numa-domain 0 on pci9
pcib10: link_sta == 0x3043
pcib10: slot_sta == 0x15a
pcib10: failed to allocate initial I/O port window: 0-0xafff
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: card not inserted
pcib11: <PCI-PCI bridge> irq 0 at device 3.0 numa-domain 0 on pci9
pcib11: link_sta == 0x1001
pcib11: failed to allocate initial I/O port window: 0-0xbfff
pcib11: (2) PCIEM_SLOT_STA_PDS
pcib11: (2) PCIEM_SLOT_STA_PDS
pcib11: card not inserted
...
hwpstate_intel19: <Intel Speed Shift> numa-domain 0 on cpu19
cpufreq19: <CPU frequency control> numa-domain 0 on cpu19
pcib10: Power Fault Detected
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: card not inserted
pcib10: pcib_hotplug_present
pcib10: Power Fault Detected
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: card not inserted
pcib10: Power Fault Detected
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: card not inserted
pcib10: (3) PCIEM_SLOT_STA_PFD
pcib10: card not inserted
Timecounter "TSC-low" frequency 1655996628 Hz quality 1000
Timecounters tick every 1.000 msec
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
...

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