Project

General

Profile

Actions

Bug #14291

closed

cxgbe: asserts when requesting more queues than available

Added by Rahul Lakkireddy 10 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Following assert is seen when trying to request more queues than available for the underlying Physical Function (PF). Need to query firmware on how many queues are actually available and restrict max queue allocation, accordingly.

# mdb vmcore.0

> ::msgbuf

[...]

PCIE-device: pci1425,0@0,4, t4nex3
PCI Express-device: pci1425,0@0,4, t4nex3
t4nex3 is /pci@0,0/pci8086,2f08@3/pci1425,0@0,4
NOTICE: t4nex3: Chelsio T540-LP-CR rev 1

NOTICE: t4nex3: S/N: PT11190200, P/N: 110123750A0

NOTICE: t4nex3: Firmware version: 1.26.3.0

NOTICE: t4nex3: Bootstrap version: 1.1.0.0

NOTICE: t4nex3: TP Microcode version: 0.1.4.9

NOTICE: t4nex3: No Expansion ROM loaded

NOTICE: t4nex3: Serial Configuration version: e101000

NOTICE: t4nex3: VPD version: 82

NOTICE: t4nex3: (28 rxq, 160 txq total) 30 MSI-X interrupts.

[...]

NOTICE: cxgbe10: Multiple Rings Enabled
NOTICE: cxgbe10 registered
cxgbe10 is port 2 on t4nex3
cxgbe10 is /pci@0,0/pci8086,2f08@3/pci1425,0@0,4/cxgbe@2
NOTICE: cxgbe11: Multiple Rings Enabled
NOTICE: cxgbe11 registered
cxgbe11 is port 3 on t4nex3
cxgbe11 is /pci@0,0/pci8086,2f08@3/pci1425,0@0,4/cxgbe@3
NOTICE: cxgbe6: Multiple Rings Enabled
NOTICE: cxgbe6 registered
cxgbe6 is port 0 on t4nex3
cxgbe6 is /pci@0,0/pci8086,2f08@3/pci1425,0@0,4/cxgbe@0
NOTICE: cxgbe7: Multiple Rings Enabled
NOTICE: cxgbe7 registered
cxgbe7 is port 1 on t4nex3
cxgbe7 is /pci@0,0/pci8086,2f08@3/pci1425,0@0,4/cxgbe@1

[...]

WARNING: cxgbe6: failed to create Ethernet egress queue: 12
WARNING: t4nex3: failed to allocate egress queue(2): 12

[...]

panic[cpu24]/thread=fffffeb313104420: 
assertion failed: pi->flags & PORT_INIT_DONE, file: ../../../common/io/cxgbe/t4nex/t4_nexus.c, line: 2584

fffffe00f6115540 fffffffffbdcd415 ()
fffffe00f6115570 t4nex:port_full_uninit+2f ()
fffffe00f61155c0 t4nex:port_full_init+51 ()
fffffe00f6115620 t4nex:t4_init_synchronized+7a ()
fffffe00f6115660 t4nex:t4_mc_start+29 ()
fffffe00f61156b0 mac:mac_start+65 ()
fffffe00f6115710 dls:dls_open+fc ()
fffffe00f6115780 dld:dld_str_attach+150 ()
fffffe00f61157f0 dld:dld_str_open+dc ()
fffffe00f6115830 dld:dld_open+27 ()
fffffe00f61158e0 genunix:qattach+10e ()
fffffe00f6115a00 genunix:stropen+32c ()
fffffe00f6115ad0 specfs:spec_open+4d0 ()
fffffe00f6115b40 genunix:fop_open+a4 ()
fffffe00f6115ce0 genunix:vn_openat+208 ()
fffffe00f6115e50 genunix:copen+431 ()
fffffe00f6115e80 genunix:openat32+1a ()
fffffe00f6115eb0 genunix:open32+1c ()
fffffe00f6115f00 unix:brand_sys_sysenter+2d2 ()
Actions

Also available in: Atom PDF