[Bug 274974] nvme: resetting controller after mounting a partition

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 12 Nov 2023 23:14:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274974

--- Comment #8 from Piotr Kubaj <pkubaj@FreeBSD.org> ---
Disks are on pci3 and pci4:
nvme0: <Generic NVMe Device> mem 0x80000000-0x80003fff irq 1044473 at device
0.0 numa-domain 0 on pci3
nvme1: <Generic NVMe Device> mem 0x80400000-0x80403fff irq 1044474 at device
0.0 numa-domain 0 on pci4

pci3 and pci4 are on respectively pcib3 and pcib4:
pci3: <OFW PCI bus> numa-domain 0 on pcib3
pci4: <OFW PCI bus> numa-domain 0 on pcib4

Indeed one of those has HotPlug, but the other does not.
pcib3@pci0:2:1:0:       class=0x060400 rev=0xca hdr=0x01 vendor=0x10b5
device=0x8724 subvendor=0x16b8 subdevice=0x7404
    vendor     = 'PLX Technology, Inc.'
    device     = 'PEX 8724 24-Lane, 6-Port PCI Express Gen 3 (8 GT/s) Switch,
19 x 19mm FCBGA'
    class      = bridge
    subclass   = PCI-PCI
    cap 01[40] = powerspec 3  supports D0 D3  current D0
    cap 05[48] = MSI supports 8 messages, 64 bit, vector masks
    cap 10[68] = PCI-Express 2 downstream port max data 256(1024) RO NS ARI
disabled
                 max read 128
                 link x4(x4) speed 8.0(8.0) ASPM disabled(L1)
                 slot 1 power limit 25000 mW HotPlug(present) Attn Button
PC(off) MRL(open)
    cap 0d[a4] = PCI Bridge subvendor=0x16b8 subdevice=0x7404
    ecap 0003[100] = Serial 1 ca870010b5df0e00
    ecap 0001[fb4] = AER 1 0 fatal 0 non-fatal 0 corrected
    ecap 0004[138] = Power Budgeting 1
    ecap 0019[10c] = PCIe Sec 1 lane errors 0
    ecap 0002[148] = VC 1 max VC0
    ecap 0012[e00] = Multicast 1
    ecap 000d[f24] = ACS 1 Source Validation disabled, Translation Blocking
disabled
                     P2P Req Redirect disabled, P2P Cmpl Redirect disabled
                     P2P Upstream Forwarding disabled, P2P Egress Control
disabled
                     P2P Direct Translated disabled, Enhanced Capability
unavailable
    ecap 000b[b70] = Vendor [1] ID 0001 Rev 0 Length 16
pcib4@pci0:2:2:0:       class=0x060400 rev=0xca hdr=0x01 vendor=0x10b5
device=0x8724 subvendor=0x16b8 subdevice=0x7404
    vendor     = 'PLX Technology, Inc.'
    device     = 'PEX 8724 24-Lane, 6-Port PCI Express Gen 3 (8 GT/s) Switch,
19 x 19mm FCBGA'
    class      = bridge
    subclass   = PCI-PCI
    cap 01[40] = powerspec 3  supports D0 D3  current D0
    cap 05[48] = MSI supports 8 messages, 64 bit, vector masks
    cap 10[68] = PCI-Express 2 downstream port max data 256(1024) RO NS ARI
disabled
                 max read 128
                 link x4(x4) speed 8.0(8.0) ASPM disabled(L1)
                 slot 2 power limit 25000 mW
    cap 0d[a4] = PCI Bridge subvendor=0x16b8 subdevice=0x7404
    ecap 0003[100] = Serial 1 ca870010b5df0e00
    ecap 0001[fb4] = AER 1 0 fatal 0 non-fatal 0 corrected
    ecap 0004[138] = Power Budgeting 1
    ecap 0019[10c] = PCIe Sec 1 lane errors 0
    ecap 0002[148] = VC 1 max VC0
    ecap 0012[e00] = Multicast 1
    ecap 000d[f24] = ACS 1 Source Validation disabled, Translation Blocking
disabled
                     P2P Req Redirect disabled, P2P Cmpl Redirect disabled
                     P2P Upstream Forwarding disabled, P2P Egress Control
disabled
                     P2P Direct Translated disabled, Enhanced Capability
unavailable
    ecap 000b[b70] = Vendor [1] ID 0001 Rev 0 Length 16


What's more strange, I can now mount the nvme0 drive on pci3 (which has HP),
even though it didn't work before. Attempting to mount nvme1 still doesn't
work.

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