[Bug 245981] bnxt(4): BCM57414 / BCM57416 not initializing: bnxt0: Unable to allocate device TX queue / queue memory

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 19 May 2022 09:43:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245981

SJ <sandy@rbrd.io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandy@rbrd.io

--- Comment #24 from SJ <sandy@rbrd.io> ---
Experiencing issues with the BCM57416 on new hardware, with a fresh install of
FreeBSD 13.0.

Firmware version shipped with card: 22.00.07.60

% uname -a
FreeBSD foo 13.0-RELEASE-p11 FreeBSD 13.0-RELEASE-p11 

On running `kldload /boot/kernel/if_bnxt.ko`, the following appears in
/var/log/messages:

May 19 10:37:17 <kern.crit> foo kernel: bnxt0: <Broadcom BCM57416 NetXtreme-E
10GBase-T Ethernet> mem
0xb8a10000-0xb8a1ffff,0xb8900000-0xb89fffff,0xb8a22000-0xb8a23fff at device 0.0
numa-domain 0 on pci9
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Using 256 TX descriptors and 256
RX descriptors
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Using 0 RX queues 0 TX queues
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Using MSI-X interrupts with 1
vectors
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: iflib_dma_alloc_align:
bus_dma_tag_create failed: 22
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Unable to allocate device TX
queue
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Unable to allocate queue memory
May 19 10:37:17 <kern.crit> foo kernel: device_attach: bnxt0 attach returned 22
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: <Broadcom BCM57416 NetXtreme-E
10GBase-T Ethernet> mem
0xb8a00000-0xb8a0ffff,0xb8800000-0xb88fffff,0xb8a20000-0xb8a21fff at device 0.1
numa-domain 0 on pci9
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Using 256 TX descriptors and 256
RX descriptors
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Using 0 RX queues 0 TX queues
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Using MSI-X interrupts with 1
vectors
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: iflib_dma_alloc_align:
bus_dma_tag_create failed: 22
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Unable to allocate device TX
queue
May 19 10:37:17 <kern.crit> foo kernel: bnxt0: Unable to allocate queue memory
May 19 10:37:17 <kern.crit> foo kernel: device_attach: bnxt0 attach returned 22


% pciconf -l -BbcevV
...
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'BCM57416 NetXtreme-E Dual-Media 10G RDMA Ethernet Controller'
    class      = network
    subclass   = ethernet
    bar   [10] = type Prefetchable Memory, range 64, base 0xb8a10000, size
65536, enabled
    bar   [18] = type Prefetchable Memory, range 64, base 0xb8900000, size
1048576, enabled
    bar   [20] = type Prefetchable Memory, range 64, base 0xb8a22000, size
8192, enabled
    cap 01[48] = powerspec 3  supports D0 D3  current D0
    cap 03[50] = VPD
    cap 05[58] = MSI supports 8 messages, 64 bit 
    cap 11[a0] = MSI-X supports 74 messages
                 Table in map 0x20[0x0], PBA in map 0x20[0x4a0]
    cap 10[ac] = PCI-Express 2 endpoint max data 256(512) FLR RO NS
                 max read 512
                 link x8(x8) speed 8.0(8.0) ClockPM disabled
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
    ecap 0003[13c] = Serial 1 f4ee08fffe25fabd
    ecap 0004[150] = Power Budgeting 1
    ecap 0002[160] = VC 1 max VC0
    ecap 000b[180] = Vendor [1] ID 0000 Rev 0 Length 32
    ecap 0018[1b0] = LTR 1
    ecap 000e[1b8] = ARI 1
    ecap 0017[230] = TPH Requester 1
    ecap 0019[300] = PCIe Sec 1 lane errors 0
    ecap 001f[200] = Precision Time Measurement 1
  PCI-e errors = Correctable Error Detected
                 Unsupported Request Detected
     Corrected = Advisory Non-Fatal Error
    VPD ident  = 'Broadcom Adv. Dual 10GBASE-T Ethernet'
    VPD ro PN  = 'BCM957416'
    VPD ro MN  = '1028'
    VPD ro V0  = 'FFV22.00.07.60'
    VPD ro V1  = 'DSV1028VPDR.VER2.1'
    VPD ro V2  = 'NPY2'
    VPD ro V3  = 'PMT1'
    VPD ro V4  = 'NMVBroadcom Corp'
    VPD ro V5  = 'DTINIC'
    VPD ro V6  =
'DCM1001FFFFFF1202FFFFFF1403FFFFFF1604FFFFFF1805FFFFFF1A06FFFFFF1C07FFFFFF1E08FFFFFF2101FFFFFF2302FFFFFF2503FFFFFF2704FFFFFF2905FFFFFF2B06FFFFFF2D07FFFFFF2F08FFFFFF'
    VPD ro V7  = 'L1D0'
none89@pci0:94:0:1:     class=0x020000 rev=0x01 hdr=0x00 vendor=0x14e4
device=0x16d8 subvendor=0x1028 subdevice=0x1fea
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'BCM57416 NetXtreme-E Dual-Media 10G RDMA Ethernet Controller'
    class      = network
    subclass   = ethernet
    bar   [10] = type Prefetchable Memory, range 64, base 0xb8a00000, size
65536, enabled
    bar   [18] = type Prefetchable Memory, range 64, base 0xb8800000, size
1048576, enabled
    bar   [20] = type Prefetchable Memory, range 64, base 0xb8a20000, size
8192, enabled
    cap 01[48] = powerspec 3  supports D0 D3  current D0
    cap 03[50] = VPD
    cap 05[58] = MSI supports 8 messages, 64 bit 
    cap 11[a0] = MSI-X supports 74 messages
                 Table in map 0x20[0x0], PBA in map 0x20[0x4a0]
    cap 10[ac] = PCI-Express 2 endpoint max data 256(512) FLR RO NS
                 max read 512
                 link x8(x8) speed 8.0(8.0) ClockPM disabled
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
    ecap 0003[13c] = Serial 1 f4ee08fffe25fabd
    ecap 0004[150] = Power Budgeting 1
    ecap 000b[180] = Vendor [1] ID 0000 Rev 0 Length 32
    ecap 000e[1b8] = ARI 1
    ecap 0017[230] = TPH Requester 1
  PCI-e errors = Correctable Error Detected
                 Unsupported Request Detected
     Corrected = Advisory Non-Fatal Error
    VPD ident  = 'Broadcom Adv. Dual 10GBASE-T Ethernet'
    VPD ro PN  = 'BCM957416'
    VPD ro MN  = '1028'
    VPD ro V0  = 'FFV22.00.07.60'
    VPD ro V1  = 'DSV1028VPDR.VER2.1'
    VPD ro V2  = 'NPY2'
    VPD ro V3  = 'PMT1'
    VPD ro V4  = 'NMVBroadcom Corp'
    VPD ro V5  = 'DTINIC'
    VPD ro V6  =
'DCM1001FFFFFF1202FFFFFF1403FFFFFF1604FFFFFF1805FFFFFF1A06FFFFFF1C07FFFFFF1E08FFFFFF2101FFFFFF2302FFFFFF2503FFFFFF2704FFFFFF2905FFFFFF2B06FFFFFF2D07FFFFFF2F08FFFFFF'
    VPD ro V7  = 'L1D0'

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