DPDK patches and discussions
 help / color / Atom feed
* [dpdk-dev] bnx2x pmd crash when launching testpmd using BCM57840 Nic.
@ 2020-06-28 16:36 Anil Kumar Koli
  2020-06-30  7:39 ` Rasesh Mody
  0 siblings, 1 reply; 3+ messages in thread
From: Anil Kumar Koli @ 2020-06-28 16:36 UTC (permalink / raw)
  To: dev

Hi DPDK team,

 

1. I am trying to run testpmd with BCM57840 NIC using DPDK 20.02.1, the
process is crashing at bnx2x_write_dmae(). Had any one seen this kind of
issue earlier.

 

root@gic-mps-104-173:~/bnx2x# ./testpmd.new -l 0-3 -n 4 -w 0000:37:00.4 -w
0000:37:00.5 --log-level="pmd.net.bnx2x.driver",8 -- -i --portmask=0x3
--nb-cores=2

EAL: Detected 48 lcore(s)

EAL: Detected 2 NUMA nodes

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode 'PA'

EAL: Debug dataplane logs available - lower performance

EAL: Probing VFIO support...

EAL: VFIO support initialized

EAL: PCI device 0000:37:00.4 on NUMA socket 0

EAL:   probe driver: 14e4:16a2 net_bnx2x

[bnx2x_load_firmware:9689(37:00.4:dpdk-port-0)] fw_len = 320936

[bnx2x_attach:9756(37:00.4:dpdk-port-0)] Starting attach...

[bnx2x_probe_pci_caps:7645(37:00.4:dpdk-port-0)] Found PM capability:
id=0x0001 type=0x0001 addr=0x00000048

[bnx2x_pcie_capability_read:7611(37:00.4:dpdk-port-0)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

[bnx2x_probe_pci_caps:7658(37:00.4:dpdk-port-0)] PCIe link speed=3 width=8

[bnx2x_probe_pci_caps:7674(37:00.4:dpdk-port-0)] Found MSI-X capability at
0x0000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x00009430 val=0x00000001

...

[bnx2x_get_device_info:8316(37:00.4:dpdk-port-0)] chip_id=0x168d1010
(num=0x168d rev=0x1 metal=0x01 bond=0x0)

...

[bnx2x_get_device_info:8345(37:00.4:dpdk-port-0)] Port mode = 2

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00450000 val=0x00040204

[bnx2x_get_function_num:7574(37:00.4:dpdk-port-0)] Relative function 4,
Absolute function 4, Path 0

...

[bnx2x_get_device_info:8382(37:00.4:dpdk-port-0)] Bootcode version: 7.14.63

...

[bnx2x_get_shmem_info:8178(37:00.4:dpdk-port-0)] Ethernet address:
20:67:7c:0d:d0:a2

...

[bnx2x_get_device_info:8448(37:00.4:dpdk-port-0)] IGU Normal Mode

...

[elink_phy_probe:13507(37:00.4:dpdk-port-0)] Begin phy probe

[elink_phy_probe:13526(37:00.4:dpdk-port-0)] phy_config_swapped 0, phy_index
0, actual_phy_idx 0

...

[elink_populate_int_phy:13118(37:00.4:dpdk-port-0)] :chip_id = 0x168d1000

...

[elink_populate_int_phy:13209(37:00.4:dpdk-port-0)] media_type = f0, flags =
1400, supported = a0f00

[elink_populate_int_phy:13239(37:00.4:dpdk-port-0)] Internal phy port=0,
addr=0x1, mdio_ctl=0x8000

...

[elink_populate_preemphasis:13078(37:00.4:dpdk-port-0)] phy->rx_preemphasis.
= 0, phy->tx_preemphasis = 0

...

[elink_populate_preemphasis:13078(37:00.4:dpdk-port-0)] phy->rx_preemphasis
= 0, phy->tx_preemphasis = 0

...

[elink_phy_def_cfg:13413(37:00.4:dpdk-port-0)] Default config phy idx 0 cfg
0x0 speed_cap_mask 0x500050

[elink_phy_def_cfg:13444(37:00.4:dpdk-port-0)] Default config phy idx 0,
req_duplex config 1

[elink_phy_def_cfg:13465(37:00.4:dpdk-port-0)] Requested Duplex = 1,
line_speed = 0, flow_ctrl = 0

[elink_phy_probe:13526(37:00.4:dpdk-port-0)] phy_config_swapped 0, phy_index
1, actual_phy_idx 1

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c6e34 val=0x00000000

[elink_phy_probe:13574(37:00.4:dpdk-port-0)] End phy probe. #phys found 1

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a9cc val=0x00000001

[bnx2x_link_settings_supported:8556(37:00.4:dpdk-port-0)] PHY addr
0x00000001

[bnx2x_link_settings_supported:8610(37:00.4:dpdk-port-0)] PHY supported
0=0x000a0f00 1=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7008 val=0x00000000

[bnx2x_media_detect:8193(37:00.4:dpdk-port-0)] Found 10GBase-CX4 media.

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x2100001a

[bnx2x_attach:9824(37:00.4:dpdk-port-0)] prev unload fw_seq 0x001a

....

[bnx2x_nic_load_analyze_req:2785(37:00.4:dpdk-port-0)] loaded FW 0x00010d07
/ my FW 0x00010d07

[bnx2x_pcie_capability_read:7611(37:00.4:dpdk-port-0)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c7360 val=0x00000000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x0200001c

[elink_cb_fw_command:836(37:00.4:dpdk-port-0)] wrote command 0x0200001c to
FW MB param 0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x2012001b

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x0200001c

[bnx2x_dcbx_set_state:9546(37:00.4:dpdk-port-0)] DCB state [OFF:user-mode]

[bnx2x_print_adapter_info:11819(37:00.4:dpdk-port-0)]
========================================

[bnx2x_print_adapter_info:11822(37:00.4:dpdk-port-0)]         DPDK : DPDK
20.02.1

[bnx2x_print_adapter_info:11824(37:00.4:dpdk-port-0)]       Driver : BNX2X
PMD 1.78.18_1.1.0.1

[bnx2x_print_adapter_info:11830(37:00.4:dpdk-port-0)]     Firmware : 7.13.1

[bnx2x_print_adapter_info:11832(37:00.4:dpdk-port-0)]     Bootcode : 7.14.63

[bnx2x_print_adapter_info:11834(37:00.4:dpdk-port-0)]         ASIC :
0x168d1010

[bnx2x_print_adapter_info:11836(37:00.4:dpdk-port-0)]          Rev : B1

[bnx2x_print_adapter_info:11839(37:00.4:dpdk-port-0)]    Vendor Id : 0x14e4

[bnx2x_print_adapter_info:11841(37:00.4:dpdk-port-0)]    Device Id : 0x16a2

[bnx2x_print_adapter_info:11843(37:00.4:dpdk-port-0)]     Bus PCIe : width
x8,

[bnx2x_print_adapter_info:11855(37:00.4:dpdk-port-0)]                Unknown
link speed

[bnx2x_print_adapter_info:11858(37:00.4:dpdk-port-0)]        Flags :

[bnx2x_print_adapter_info:11867(37:00.4:dpdk-port-0)]                MSI-X

[bnx2x_print_adapter_info:11870(37:00.4:dpdk-port-0)]        OVLAN : YES

[bnx2x_print_adapter_info:11871(37:00.4:dpdk-port-0)]           MF : YES

[bnx2x_print_adapter_info:11872(37:00.4:dpdk-port-0)]
========================================

[bnx2x_common_dev_init:658(37:00.4:dpdk-port-0)] Scheduling periodic poll
for slowpath link events

EAL: PCI device 0000:37:00.5 on NUMA socket 0

EAL:   probe driver: 14e4:16a2 net_bnx2x

[bnx2x_load_firmware:9689(37:00.5:dpdk-port-1)] fw_len = 320936

[bnx2x_attach:9756(37:00.5:dpdk-port-1)] Starting attach...

[bnx2x_probe_pci_caps:7645(37:00.5:dpdk-port-1)] Found PM capability:
id=0x0001 type=0x0001 addr=0x00000048

[bnx2x_pcie_capability_read:7611(37:00.5:dpdk-port-1)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

[bnx2x_probe_pci_caps:7658(37:00.5:dpdk-port-1)] PCIe link speed=3 width=8

[bnx2x_probe_pci_caps:7674(37:00.5:dpdk-port-1)] Found MSI-X capability at
0x0000

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x00009430 val=0x00000001

...

[bnx2x_get_device_info:8316(37:00.5:dpdk-port-1)] chip_id=0x168d1010
(num=0x168d rev=0x1 metal=0x01 bond=0x0)

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x00002874 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a720 val=0x00000001

[bnx2x_get_device_info:8345(37:00.5:dpdk-port-1)] Port mode = 2

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x00450000 val=0x00050204

[bnx2x_get_function_num:7574(37:00.5:dpdk-port-1)] Relative function 4,
Absolute function 5, Path 1

...

[bnx2x_get_device_info:8382(37:00.5:dpdk-port-1)] Bootcode version: 7.14.63

...

[bnx2x_get_shmem_info:8178(37:00.5:dpdk-port-1)] Ethernet address:
20:67:7c:0d:d0:aa

...

[bnx2x_get_device_info:8448(37:00.5:dpdk-port-1)] IGU Normal Mode

...

[elink_phy_probe:13507(37:00.5:dpdk-port-1)] Begin phy probe

[elink_phy_probe:13526(37:00.5:dpdk-port-1)] phy_config_swapped 0, phy_index
0, actual_phy_idx 0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c79b8 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a408 val=0x0000168d

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a40c val=0x00000001

[elink_populate_int_phy:13118(37:00.5:dpdk-port-1)] :chip_id = 0x168d1000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a9cc val=0x00000001

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a720 val=0x00000001

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c77d0 val=0x03000000

[elink_populate_int_phy:13209(37:00.5:dpdk-port-1)] media_type = f0, flags =
1400, supported = a0f00

[elink_populate_int_phy:13239(37:00.5:dpdk-port-1)] Internal phy port=0,
addr=0x1, mdio_ctl=0x8000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76e0 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76e8 val=0x00000000

[elink_populate_preemphasis:13078(37:00.5:dpdk-port-1)] phy->rx_preemphasis
= 0, phy->tx_preemphasis = 0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76e4 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76ec val=0x00000000

[elink_populate_preemphasis:13078(37:00.5:dpdk-port-1)] phy->rx_preemphasis
= 0, phy->tx_preemphasis = 0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76dc val=0x000000f0

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x003c76dc val=0x000000f0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c79b8 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c77f8 val=0x00500050

[elink_phy_def_cfg:13413(37:00.5:dpdk-port-1)] Default config phy idx 0 cfg
0x0 speed_cap_mask 0x500050

[elink_phy_def_cfg:13444(37:00.5:dpdk-port-1)] Default config phy idx 0,
req_duplex config 1

[elink_phy_def_cfg:13465(37:00.5:dpdk-port-1)] Requested Duplex = 1,
line_speed = 0, flow_ctrl = 0

[elink_phy_probe:13526(37:00.5:dpdk-port-1)] phy_config_swapped 0, phy_index
1, actual_phy_idx 1

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c77f4 val=0x00000000

[elink_phy_probe:13574(37:00.5:dpdk-port-1)] End phy probe. #phys found 1

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a9cc val=0x00000001

[bnx2x_link_settings_supported:8556(37:00.5:dpdk-port-1)] PHY addr
0x00000001

[bnx2x_link_settings_supported:8610(37:00.5:dpdk-port-1)] PHY supported
0=0x000a0f00 1=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c79c8 val=0x00000000

[bnx2x_media_detect:8193(37:00.5:dpdk-port-1)] Found 10GBase-CX4 media.

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7d1c val=0x2100001a

[bnx2x_attach:9824(37:00.5:dpdk-port-1)] prev unload fw_seq 0x001a

...

[elink_cb_fw_command:836(37:00.5:dpdk-port-1)] wrote command 0x2001001b to
FW MB param 0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7d24 val=0x2012001b

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x002c0000 val=0x00010d07

[bnx2x_nic_load_analyze_req:2785(37:00.5:dpdk-port-1)] loaded FW 0x00010d07
/ my FW 0x00010d07

[bnx2x_pcie_capability_read:7611(37:00.5:dpdk-port-1)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x003c7d20 val=0x00000000

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x003c7d1c val=0x0200001c

[elink_cb_fw_command:836(37:00.5:dpdk-port-1)] wrote command 0x0200001c to
FW MB param 0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7d24 val=0x0200001c

[bnx2x_dcbx_set_state:9546(37:00.5:dpdk-port-1)] DCB state [OFF:user-mode]

[bnx2x_common_dev_init:658(37:00.5:dpdk-port-1)] Scheduling periodic poll
for slowpath link events

Interactive-mode selected

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00442d20 val=0x00000000

[bnx2x_periodic_callout:7159(37:00.4:dpdk-port-0)] periodic callout exit
(state=0x0)

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c72e4 val=0x40970275

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x00442d20 val=0x00000000

[bnx2x_periodic_callout:7159(37:00.5:dpdk-port-1)] periodic callout exit
(state=0x0)

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7ca4 val=0x40970275

testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176,
socket=0

testpmd: preferred mempool ops selected: ring_mp_mc

Configuring Port 0 (socket 0)

[bnx2x_dev_configure:200(37:00.4:dpdk-port-0)] num_queues=1, mtu=1500

[bnx2x_dev_tx_queue_setup:271(37:00.4:dpdk-port-0)] fp[00] req_bd=512,
thresh=64, usable_bd=1020, total_bd=1024, tx_pages=4

[bnx2x_dev_rx_queue_setup:88(37:00.4:dpdk-port-0)] fp[00] req_bd=512,
usable_bd=1020, total_bd=1024, rx_pages=2, cq_pages=16

...

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] cdu_0: virt=0x4300267000
phys=138e67000

...

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] def_sb: virt=0x43002781c0
phys=138e781c0

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] ev_queue: virt=0x4300253f00
phys=138e53f00

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] sp: virt=0x4300252c00
phys=138e52c00

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] sp_queue: virt=0x4300251b80
phys=138e51b80

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] fw_buf: virt=0x4300211b00
phys=138e11b00

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] fp_0_sb: virt=0x4300278100
phys=138e78100

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] fw_stats: virt=0x430027dd00
phys=138e7dd00

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000a534 val=0x00000800

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000800

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a474 val=0x00008a45

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000a474 val=0x00008a55

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000800

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000800

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x0200001c

[bnx2x_nic_load_request:2732(37:00.4:dpdk-port-0)] initial fw_seq 0x001c

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c736c val=0x00008000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c7360 val=0x0000100a

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x1000001d

[elink_cb_fw_command:836(37:00.4:dpdk-port-0)] wrote command 0x1000001d to
FW MB param 0x0000100a

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x0200001c

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x1012001d

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x002c0000 val=0x00010d07

[bnx2x_nic_load_analyze_req:2785(37:00.4:dpdk-port-0)] loaded FW 0x00010d07
/ my FW 0x00010d07

[bnx2x_nic_load_pmf:2819(37:00.4:dpdk-port-0)] pmf 0

[ecore_func_chk_transition:4841(37:00.4:dpdk-port-0)] Good function state
transition: 0(0)->1

[ecore_func_hw_init:4938(37:00.4:dpdk-port-0)] function 4  load_code
10120000

[bnx2x_init_hw_func:11159(37:00.4:dpdk-port-0)] starting func init for func
4

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x00009430 val=0x00000001

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00104120 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001701d0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0016e050 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00164128 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001640a0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001020a0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x001664c4 val=0x00010449

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000001

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001403ac val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140390 val=0x000008dd

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001403b0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140394 val=0x000000a0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001403a8 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0014038c val=0x00020535

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140358 val=0x000002bf

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0014033c val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0015c230 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0014035c val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140340 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0015c234 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140354 val=0x00006ff4

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140338 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0015c248 val=0x0000065e

[bnx2x_pcie_capability_read:7611(37:00.4:dpdk-port-0)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00104124 val=0x00000000

[bnx2x_hw_enable_status:11065(37:00.4:dpdk-port-0)] CFC_REG_WEAK_ENABLE_PF
is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001402e8 val=0x00000001

[bnx2x_hw_enable_status:11068(37:00.4:dpdk-port-0)] PBF_REG_DISABLE_PF is
0x1

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00130140 val=0x00000000

[bnx2x_hw_enable_status:11071(37:00.4:dpdk-port-0)] IGU_REG_PCI_PF_MSI_EN is
0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00130144 val=0x00000000

[bnx2x_hw_enable_status:11074(37:00.4:dpdk-port-0)] IGU_REG_PCI_PF_MSIX_EN
is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00130148 val=0x00000000

[bnx2x_hw_enable_status:11077(37:00.4:dpdk-port-0)]
IGU_REG_PCI_PF_MSIX_FUNC_MASK is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00009458 val=0x00000000

[bnx2x_hw_enable_status:11081(37:00.4:dpdk-port-0)]
PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00009418 val=0x00000000

[bnx2x_hw_enable_status:11085(37:00.4:dpdk-port-0)]
PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000942c val=0x00000000

[bnx2x_hw_enable_status:11089(37:00.4:dpdk-port-0)]
PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER is 0x0

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000942c val=0x00000001

....

[bnx2x_issue_dmae_with_comp:409(37:00.4:dpdk-port-0)] DMAE timeout!

PANIC in bnx2x_write_dmae():

DMAE failed (-1)15: [./testpmd.new(_start+0x29) [0x6a5f19]]

14: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
[0x7fe46f31a830]]

13: [./testpmd.new(main+0x6b4) [0x4d7b64]]

12: [./testpmd.new(start_port+0x535) [0x6aa2f5]]

11: [./testpmd.new(rte_eth_dev_start+0xae) [0x7bfb2e]]

10: [./testpmd.new() [0x8b0597]]

9: [./testpmd.new(bnx2x_init+0x62e) [0x89f39e]]

8: [./testpmd.new() [0x89d9c5]]

7: [./testpmd.new(ecore_func_state_change+0x15e) [0x8bacfe]]

6: [./testpmd.new() [0x8b7462]]

5: [./testpmd.new() [0x8952a4]]

4: [./testpmd.new() [0x88f6d2]]

3: [./testpmd.new() [0x88e2ea]]

2: [./testpmd.new(__rte_panic+0xc3) [0x4c5092]]

1: [./testpmd.new(rte_dump_stack+0x2b) [0x8030fb]]

Aborted

 

2. Baseboard information:

Base Board Information

        Manufacturer: HPE

        Product Name: ProLiant BL460c Gen10

        Version: Not Specified

        Serial Number: PVZBFAFLMB61WF

        Asset Tag:

        Features:

                Board is a hosting board

                Board is removable

                Board is replaceable

        Location In Chassis: Chassis Bay Number: 5

        Chassis Handle: 0x0067

        Type: Motherboard

        Contained Object Handles: 0

                                

3. dpdk driver used: uio_pci_generic

   linux kernel driver: bnx2x 

 

root@gic-mps-104-175:~# ethtool -i eth4

driver: bnx2x

version: 1.712.30-0

firmware-version: bc 7.14.63

expansion-rom-version:

bus-info: 0000:37:00.1

supports-statistics: yes

supports-test: yes

supports-eeprom-access: yes

supports-register-dump: yes

supports-priv-flags: yes

 

root@gic-mps-104-175:~# modinfo bnx2x

filename:
/lib/modules/4.15.0-88-generic/kernel/drivers/net/ethernet/broadcom/bnx2x/bn
x2x.ko

firmware:       bnx2x/bnx2x-e2-7.13.1.0.fw

firmware:       bnx2x/bnx2x-e1h-7.13.1.0.fw

firmware:       bnx2x/bnx2x-e1-7.13.1.0.fw

version:        1.712.30-0

license:        GPL

description:    QLogic
BCM57710/57711/57711E/57712/57712_MF/57800/57800_MF/57810/57810_MF/57840/578
40_MF Driver

author:         Eliezer Tamir

srcversion:     B7F3A2C30DB8FB387F0D2A9

alias:          pci:v000014E4d0000163Fsv*sd*bc*sc*i*

alias:          pci:v000014E4d0000163Esv*sd*bc*sc*i*

alias:          pci:v000014E4d0000163Dsv*sd*bc*sc*i*

alias:          pci:v00001077d000016ADsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016ADsv*sd*bc*sc*i*

alias:          pci:v00001077d000016A4sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A4sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016ABsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016AFsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A2sv*sd*bc*sc*i*

alias:          pci:v00001077d000016A1sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A1sv*sd*bc*sc*i*

alias:          pci:v000014E4d0000168Dsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016AEsv*sd*bc*sc*i*

alias:          pci:v000014E4d0000168Esv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A9sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A5sv*sd*bc*sc*i*

alias:          pci:v000014E4d0000168Asv*sd*bc*sc*i*

alias:          pci:v000014E4d0000166Fsv*sd*bc*sc*i*

alias:          pci:v000014E4d00001663sv*sd*bc*sc*i*

alias:          pci:v000014E4d00001662sv*sd*bc*sc*i*

alias:          pci:v000014E4d00001650sv*sd*bc*sc*i*

alias:          pci:v000014E4d0000164Fsv*sd*bc*sc*i*

alias:          pci:v000014E4d0000164Esv*sd*bc*sc*i*

depends:        mdio,libcrc32c,ptp

retpoline:      Y

intree:         Y

name:           bnx2x

vermagic:       4.15.0-88-generic SMP mod_unload

parm:           num_queues: Set number of queues (default is as a number of
CPUs) (int)

parm:           disable_tpa: Disable the TPA (LRO) feature (int)

parm:           int_mode: Force interrupt mode other than MSI-X (1 INT#x; 2
MSI) (int)

parm:           dropless_fc: Pause on exhausted host ring (int)

parm:           mrrs: Force Max Read Req Size (0..3) (for debug) (int)

parm:           debug: Default debug msglevel (int)

 

4. NIC card: BCM57840 NetXtreme II 10/20-Gigabit Ethernet (rev 11)

root@gic-mps-104-175:~# lspci | grep -i ethernet

37:00.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.1 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.2 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.3 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.4 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.5 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.6 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.7 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

 

Please let me know if any one has a work around or fix to this issue?

 

Thanks & Regards,

Anil Kumar

 


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [dpdk-dev] bnx2x pmd crash when launching testpmd using BCM57840 Nic.
@ 2020-06-28 16:32 Anil Kumar Koli
  0 siblings, 0 replies; 3+ messages in thread
From: Anil Kumar Koli @ 2020-06-28 16:32 UTC (permalink / raw)
  To: users, dev

Hi DPDK team,

 

1. I am trying to run testpmd with BCM57840 NIC using DPDK 20.02.1, the
process is crashing at bnx2x_write_dmae(). Had any one seen this kind of
issue earlier.

 

root@gic-mps-104-173:~/bnx2x# ./testpmd.new -l 0-3 -n 4 -w 0000:37:00.4 -w
0000:37:00.5 --log-level="pmd.net.bnx2x.driver",8 -- -i --portmask=0x3
--nb-cores=2

EAL: Detected 48 lcore(s)

EAL: Detected 2 NUMA nodes

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode 'PA'

EAL: Debug dataplane logs available - lower performance

EAL: Probing VFIO support...

EAL: VFIO support initialized

EAL: PCI device 0000:37:00.4 on NUMA socket 0

EAL:   probe driver: 14e4:16a2 net_bnx2x

[bnx2x_load_firmware:9689(37:00.4:dpdk-port-0)] fw_len = 320936

[bnx2x_attach:9756(37:00.4:dpdk-port-0)] Starting attach...

[bnx2x_probe_pci_caps:7645(37:00.4:dpdk-port-0)] Found PM capability:
id=0x0001 type=0x0001 addr=0x00000048

[bnx2x_pcie_capability_read:7611(37:00.4:dpdk-port-0)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

[bnx2x_probe_pci_caps:7658(37:00.4:dpdk-port-0)] PCIe link speed=3 width=8

[bnx2x_probe_pci_caps:7674(37:00.4:dpdk-port-0)] Found MSI-X capability at
0x0000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x00009430 val=0x00000001

...

[bnx2x_get_device_info:8316(37:00.4:dpdk-port-0)] chip_id=0x168d1010
(num=0x168d rev=0x1 metal=0x01 bond=0x0)

...

[bnx2x_get_device_info:8345(37:00.4:dpdk-port-0)] Port mode = 2

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00450000 val=0x00040204

[bnx2x_get_function_num:7574(37:00.4:dpdk-port-0)] Relative function 4,
Absolute function 4, Path 0

...

[bnx2x_get_device_info:8382(37:00.4:dpdk-port-0)] Bootcode version: 7.14.63

...

[bnx2x_get_shmem_info:8178(37:00.4:dpdk-port-0)] Ethernet address:
20:67:7c:0d:d0:a2

...

[bnx2x_get_device_info:8448(37:00.4:dpdk-port-0)] IGU Normal Mode

...

[elink_phy_probe:13507(37:00.4:dpdk-port-0)] Begin phy probe

[elink_phy_probe:13526(37:00.4:dpdk-port-0)] phy_config_swapped 0, phy_index
0, actual_phy_idx 0

...

[elink_populate_int_phy:13118(37:00.4:dpdk-port-0)] :chip_id = 0x168d1000

...

[elink_populate_int_phy:13209(37:00.4:dpdk-port-0)] media_type = f0, flags =
1400, supported = a0f00

[elink_populate_int_phy:13239(37:00.4:dpdk-port-0)] Internal phy port=0,
addr=0x1, mdio_ctl=0x8000

...

[elink_populate_preemphasis:13078(37:00.4:dpdk-port-0)] phy->rx_preemphasis.
= 0, phy->tx_preemphasis = 0

...

[elink_populate_preemphasis:13078(37:00.4:dpdk-port-0)] phy->rx_preemphasis
= 0, phy->tx_preemphasis = 0

...

[elink_phy_def_cfg:13413(37:00.4:dpdk-port-0)] Default config phy idx 0 cfg
0x0 speed_cap_mask 0x500050

[elink_phy_def_cfg:13444(37:00.4:dpdk-port-0)] Default config phy idx 0,
req_duplex config 1

[elink_phy_def_cfg:13465(37:00.4:dpdk-port-0)] Requested Duplex = 1,
line_speed = 0, flow_ctrl = 0

[elink_phy_probe:13526(37:00.4:dpdk-port-0)] phy_config_swapped 0, phy_index
1, actual_phy_idx 1

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c6e34 val=0x00000000

[elink_phy_probe:13574(37:00.4:dpdk-port-0)] End phy probe. #phys found 1

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a9cc val=0x00000001

[bnx2x_link_settings_supported:8556(37:00.4:dpdk-port-0)] PHY addr
0x00000001

[bnx2x_link_settings_supported:8610(37:00.4:dpdk-port-0)] PHY supported
0=0x000a0f00 1=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7008 val=0x00000000

[bnx2x_media_detect:8193(37:00.4:dpdk-port-0)] Found 10GBase-CX4 media.

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x2100001a

[bnx2x_attach:9824(37:00.4:dpdk-port-0)] prev unload fw_seq 0x001a

....

[bnx2x_nic_load_analyze_req:2785(37:00.4:dpdk-port-0)] loaded FW 0x00010d07
/ my FW 0x00010d07

[bnx2x_pcie_capability_read:7611(37:00.4:dpdk-port-0)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c7360 val=0x00000000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x0200001c

[elink_cb_fw_command:836(37:00.4:dpdk-port-0)] wrote command 0x0200001c to
FW MB param 0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x2012001b

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x0200001c

[bnx2x_dcbx_set_state:9546(37:00.4:dpdk-port-0)] DCB state [OFF:user-mode]

[bnx2x_print_adapter_info:11819(37:00.4:dpdk-port-0)]
========================================

[bnx2x_print_adapter_info:11822(37:00.4:dpdk-port-0)]         DPDK : DPDK
20.02.1

[bnx2x_print_adapter_info:11824(37:00.4:dpdk-port-0)]       Driver : BNX2X
PMD 1.78.18_1.1.0.1

[bnx2x_print_adapter_info:11830(37:00.4:dpdk-port-0)]     Firmware : 7.13.1

[bnx2x_print_adapter_info:11832(37:00.4:dpdk-port-0)]     Bootcode : 7.14.63

[bnx2x_print_adapter_info:11834(37:00.4:dpdk-port-0)]         ASIC :
0x168d1010

[bnx2x_print_adapter_info:11836(37:00.4:dpdk-port-0)]          Rev : B1

[bnx2x_print_adapter_info:11839(37:00.4:dpdk-port-0)]    Vendor Id : 0x14e4

[bnx2x_print_adapter_info:11841(37:00.4:dpdk-port-0)]    Device Id : 0x16a2

[bnx2x_print_adapter_info:11843(37:00.4:dpdk-port-0)]     Bus PCIe : width
x8,

[bnx2x_print_adapter_info:11855(37:00.4:dpdk-port-0)]                Unknown
link speed

[bnx2x_print_adapter_info:11858(37:00.4:dpdk-port-0)]        Flags :

[bnx2x_print_adapter_info:11867(37:00.4:dpdk-port-0)]                MSI-X

[bnx2x_print_adapter_info:11870(37:00.4:dpdk-port-0)]        OVLAN : YES

[bnx2x_print_adapter_info:11871(37:00.4:dpdk-port-0)]           MF : YES

[bnx2x_print_adapter_info:11872(37:00.4:dpdk-port-0)]
========================================

[bnx2x_common_dev_init:658(37:00.4:dpdk-port-0)] Scheduling periodic poll
for slowpath link events

EAL: PCI device 0000:37:00.5 on NUMA socket 0

EAL:   probe driver: 14e4:16a2 net_bnx2x

[bnx2x_load_firmware:9689(37:00.5:dpdk-port-1)] fw_len = 320936

[bnx2x_attach:9756(37:00.5:dpdk-port-1)] Starting attach...

[bnx2x_probe_pci_caps:7645(37:00.5:dpdk-port-1)] Found PM capability:
id=0x0001 type=0x0001 addr=0x00000048

[bnx2x_pcie_capability_read:7611(37:00.5:dpdk-port-1)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

[bnx2x_probe_pci_caps:7658(37:00.5:dpdk-port-1)] PCIe link speed=3 width=8

[bnx2x_probe_pci_caps:7674(37:00.5:dpdk-port-1)] Found MSI-X capability at
0x0000

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x00009430 val=0x00000001

...

[bnx2x_get_device_info:8316(37:00.5:dpdk-port-1)] chip_id=0x168d1010
(num=0x168d rev=0x1 metal=0x01 bond=0x0)

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x00002874 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a720 val=0x00000001

[bnx2x_get_device_info:8345(37:00.5:dpdk-port-1)] Port mode = 2

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x00450000 val=0x00050204

[bnx2x_get_function_num:7574(37:00.5:dpdk-port-1)] Relative function 4,
Absolute function 5, Path 1

...

[bnx2x_get_device_info:8382(37:00.5:dpdk-port-1)] Bootcode version: 7.14.63

...

[bnx2x_get_shmem_info:8178(37:00.5:dpdk-port-1)] Ethernet address:
20:67:7c:0d:d0:aa

...

[bnx2x_get_device_info:8448(37:00.5:dpdk-port-1)] IGU Normal Mode

...

[elink_phy_probe:13507(37:00.5:dpdk-port-1)] Begin phy probe

[elink_phy_probe:13526(37:00.5:dpdk-port-1)] phy_config_swapped 0, phy_index
0, actual_phy_idx 0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c79b8 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a408 val=0x0000168d

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a40c val=0x00000001

[elink_populate_int_phy:13118(37:00.5:dpdk-port-1)] :chip_id = 0x168d1000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a9cc val=0x00000001

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a720 val=0x00000001

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c77d0 val=0x03000000

[elink_populate_int_phy:13209(37:00.5:dpdk-port-1)] media_type = f0, flags =
1400, supported = a0f00

[elink_populate_int_phy:13239(37:00.5:dpdk-port-1)] Internal phy port=0,
addr=0x1, mdio_ctl=0x8000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76e0 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76e8 val=0x00000000

[elink_populate_preemphasis:13078(37:00.5:dpdk-port-1)] phy->rx_preemphasis
= 0, phy->tx_preemphasis = 0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76e4 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76ec val=0x00000000

[elink_populate_preemphasis:13078(37:00.5:dpdk-port-1)] phy->rx_preemphasis
= 0, phy->tx_preemphasis = 0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c76dc val=0x000000f0

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x003c76dc val=0x000000f0

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c79b8 val=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c77f8 val=0x00500050

[elink_phy_def_cfg:13413(37:00.5:dpdk-port-1)] Default config phy idx 0 cfg
0x0 speed_cap_mask 0x500050

[elink_phy_def_cfg:13444(37:00.5:dpdk-port-1)] Default config phy idx 0,
req_duplex config 1

[elink_phy_def_cfg:13465(37:00.5:dpdk-port-1)] Requested Duplex = 1,
line_speed = 0, flow_ctrl = 0

[elink_phy_probe:13526(37:00.5:dpdk-port-1)] phy_config_swapped 0, phy_index
1, actual_phy_idx 1

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c77f4 val=0x00000000

[elink_phy_probe:13574(37:00.5:dpdk-port-1)] End phy probe. #phys found 1

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x0000a9cc val=0x00000001

[bnx2x_link_settings_supported:8556(37:00.5:dpdk-port-1)] PHY addr
0x00000001

[bnx2x_link_settings_supported:8610(37:00.5:dpdk-port-1)] PHY supported
0=0x000a0f00 1=0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c79c8 val=0x00000000

[bnx2x_media_detect:8193(37:00.5:dpdk-port-1)] Found 10GBase-CX4 media.

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7d1c val=0x2100001a

[bnx2x_attach:9824(37:00.5:dpdk-port-1)] prev unload fw_seq 0x001a

...

[elink_cb_fw_command:836(37:00.5:dpdk-port-1)] wrote command 0x2001001b to
FW MB param 0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7d24 val=0x2012001b

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x002c0000 val=0x00010d07

[bnx2x_nic_load_analyze_req:2785(37:00.5:dpdk-port-1)] loaded FW 0x00010d07
/ my FW 0x00010d07

[bnx2x_pcie_capability_read:7611(37:00.5:dpdk-port-1)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x003c7d20 val=0x00000000

bnx2x_reg_write32(37:00.5:dpdk-port-1): offset=0x003c7d1c val=0x0200001c

[elink_cb_fw_command:836(37:00.5:dpdk-port-1)] wrote command 0x0200001c to
FW MB param 0x00000000

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7d24 val=0x0200001c

[bnx2x_dcbx_set_state:9546(37:00.5:dpdk-port-1)] DCB state [OFF:user-mode]

[bnx2x_common_dev_init:658(37:00.5:dpdk-port-1)] Scheduling periodic poll
for slowpath link events

Interactive-mode selected

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00442d20 val=0x00000000

[bnx2x_periodic_callout:7159(37:00.4:dpdk-port-0)] periodic callout exit
(state=0x0)

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c72e4 val=0x40970275

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x00442d20 val=0x00000000

[bnx2x_periodic_callout:7159(37:00.5:dpdk-port-1)] periodic callout exit
(state=0x0)

bnx2x_reg_read32(37:00.5:dpdk-port-1): offset=0x003c7ca4 val=0x40970275

testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176,
socket=0

testpmd: preferred mempool ops selected: ring_mp_mc

Configuring Port 0 (socket 0)

[bnx2x_dev_configure:200(37:00.4:dpdk-port-0)] num_queues=1, mtu=1500

[bnx2x_dev_tx_queue_setup:271(37:00.4:dpdk-port-0)] fp[00] req_bd=512,
thresh=64, usable_bd=1020, total_bd=1024, tx_pages=4

[bnx2x_dev_rx_queue_setup:88(37:00.4:dpdk-port-0)] fp[00] req_bd=512,
usable_bd=1020, total_bd=1024, rx_pages=2, cq_pages=16

...

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] cdu_0: virt=0x4300267000
phys=138e67000

...

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] def_sb: virt=0x43002781c0
phys=138e781c0

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] ev_queue: virt=0x4300253f00
phys=138e53f00

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] sp: virt=0x4300252c00
phys=138e52c00

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] sp_queue: virt=0x4300251b80
phys=138e51b80

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] fw_buf: virt=0x4300211b00
phys=138e11b00

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] fp_0_sb: virt=0x4300278100
phys=138e78100

[bnx2x_dma_alloc:191(37:00.4:dpdk-port-0)] fw_stats: virt=0x430027dd00
phys=138e7dd00

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000a534 val=0x00000800

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000800

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a474 val=0x00008a45

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000a474 val=0x00008a55

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000800

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000a530 val=0x00000800

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x0200001c

[bnx2x_nic_load_request:2732(37:00.4:dpdk-port-0)] initial fw_seq 0x001c

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c736c val=0x00008000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c7360 val=0x0000100a

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x003c735c val=0x1000001d

[elink_cb_fw_command:836(37:00.4:dpdk-port-0)] wrote command 0x1000001d to
FW MB param 0x0000100a

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x0200001c

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x003c7364 val=0x1012001d

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x002c0000 val=0x00010d07

[bnx2x_nic_load_analyze_req:2785(37:00.4:dpdk-port-0)] loaded FW 0x00010d07
/ my FW 0x00010d07

[bnx2x_nic_load_pmf:2819(37:00.4:dpdk-port-0)] pmf 0

[ecore_func_chk_transition:4841(37:00.4:dpdk-port-0)] Good function state
transition: 0(0)->1

[ecore_func_hw_init:4938(37:00.4:dpdk-port-0)] function 4  load_code
10120000

[bnx2x_init_hw_func:11159(37:00.4:dpdk-port-0)] starting func init for func
4

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x00009430 val=0x00000001

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00104120 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001701d0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0016e050 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00164128 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001640a0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001020a0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000000

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x001664c4 val=0x00010449

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000001

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x004111cc val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001403ac val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140390 val=0x000008dd

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001403b0 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140394 val=0x000000a0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001403a8 val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0014038c val=0x00020535

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140358 val=0x000002bf

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0014033c val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0015c230 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0014035c val=0x00000000

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140340 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0015c234 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140354 val=0x00006ff4

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00140338 val=0x0000065e

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0015c248 val=0x0000065e

[bnx2x_pcie_capability_read:7611(37:00.4:dpdk-port-0)] Found PCIe
capability: id=0x0010 type=0x0001 addr=0x000000AC

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00104124 val=0x00000000

[bnx2x_hw_enable_status:11065(37:00.4:dpdk-port-0)] CFC_REG_WEAK_ENABLE_PF
is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x001402e8 val=0x00000001

[bnx2x_hw_enable_status:11068(37:00.4:dpdk-port-0)] PBF_REG_DISABLE_PF is
0x1

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00130140 val=0x00000000

[bnx2x_hw_enable_status:11071(37:00.4:dpdk-port-0)] IGU_REG_PCI_PF_MSI_EN is
0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00130144 val=0x00000000

[bnx2x_hw_enable_status:11074(37:00.4:dpdk-port-0)] IGU_REG_PCI_PF_MSIX_EN
is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00130148 val=0x00000000

[bnx2x_hw_enable_status:11077(37:00.4:dpdk-port-0)]
IGU_REG_PCI_PF_MSIX_FUNC_MASK is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00009458 val=0x00000000

[bnx2x_hw_enable_status:11081(37:00.4:dpdk-port-0)]
PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x00009418 val=0x00000000

[bnx2x_hw_enable_status:11085(37:00.4:dpdk-port-0)]
PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR is 0x0

bnx2x_reg_read32(37:00.4:dpdk-port-0): offset=0x0000942c val=0x00000000

[bnx2x_hw_enable_status:11089(37:00.4:dpdk-port-0)]
PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER is 0x0

bnx2x_reg_write32(37:00.4:dpdk-port-0): offset=0x0000942c val=0x00000001

....

[bnx2x_issue_dmae_with_comp:409(37:00.4:dpdk-port-0)] DMAE timeout!

PANIC in bnx2x_write_dmae():

DMAE failed (-1)15: [./testpmd.new(_start+0x29) [0x6a5f19]]

14: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
[0x7fe46f31a830]]

13: [./testpmd.new(main+0x6b4) [0x4d7b64]]

12: [./testpmd.new(start_port+0x535) [0x6aa2f5]]

11: [./testpmd.new(rte_eth_dev_start+0xae) [0x7bfb2e]]

10: [./testpmd.new() [0x8b0597]]

9: [./testpmd.new(bnx2x_init+0x62e) [0x89f39e]]

8: [./testpmd.new() [0x89d9c5]]

7: [./testpmd.new(ecore_func_state_change+0x15e) [0x8bacfe]]

6: [./testpmd.new() [0x8b7462]]

5: [./testpmd.new() [0x8952a4]]

4: [./testpmd.new() [0x88f6d2]]

3: [./testpmd.new() [0x88e2ea]]

2: [./testpmd.new(__rte_panic+0xc3) [0x4c5092]]

1: [./testpmd.new(rte_dump_stack+0x2b) [0x8030fb]]

Aborted

 

2. Baseboard information:

Base Board Information

        Manufacturer: HPE

        Product Name: ProLiant BL460c Gen10

        Version: Not Specified

        Serial Number: PVZBFAFLMB61WF

        Asset Tag:

        Features:

                Board is a hosting board

                Board is removable

                Board is replaceable

        Location In Chassis: Chassis Bay Number: 5

        Chassis Handle: 0x0067

        Type: Motherboard

        Contained Object Handles: 0

                                

3. dpdk driver used: uio_pci_generic

   linux kernel driver: bnx2x 

 

root@gic-mps-104-175:~# ethtool -i eth4

driver: bnx2x

version: 1.712.30-0

firmware-version: bc 7.14.63

expansion-rom-version:

bus-info: 0000:37:00.1

supports-statistics: yes

supports-test: yes

supports-eeprom-access: yes

supports-register-dump: yes

supports-priv-flags: yes

 

root@gic-mps-104-175:~# modinfo bnx2x

filename:
/lib/modules/4.15.0-88-generic/kernel/drivers/net/ethernet/broadcom/bnx2x/bn
x2x.ko

firmware:       bnx2x/bnx2x-e2-7.13.1.0.fw

firmware:       bnx2x/bnx2x-e1h-7.13.1.0.fw

firmware:       bnx2x/bnx2x-e1-7.13.1.0.fw

version:        1.712.30-0

license:        GPL

description:    QLogic
BCM57710/57711/57711E/57712/57712_MF/57800/57800_MF/57810/57810_MF/57840/578
40_MF Driver

author:         Eliezer Tamir

srcversion:     B7F3A2C30DB8FB387F0D2A9

alias:          pci:v000014E4d0000163Fsv*sd*bc*sc*i*

alias:          pci:v000014E4d0000163Esv*sd*bc*sc*i*

alias:          pci:v000014E4d0000163Dsv*sd*bc*sc*i*

alias:          pci:v00001077d000016ADsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016ADsv*sd*bc*sc*i*

alias:          pci:v00001077d000016A4sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A4sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016ABsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016AFsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A2sv*sd*bc*sc*i*

alias:          pci:v00001077d000016A1sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A1sv*sd*bc*sc*i*

alias:          pci:v000014E4d0000168Dsv*sd*bc*sc*i*

alias:          pci:v000014E4d000016AEsv*sd*bc*sc*i*

alias:          pci:v000014E4d0000168Esv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A9sv*sd*bc*sc*i*

alias:          pci:v000014E4d000016A5sv*sd*bc*sc*i*

alias:          pci:v000014E4d0000168Asv*sd*bc*sc*i*

alias:          pci:v000014E4d0000166Fsv*sd*bc*sc*i*

alias:          pci:v000014E4d00001663sv*sd*bc*sc*i*

alias:          pci:v000014E4d00001662sv*sd*bc*sc*i*

alias:          pci:v000014E4d00001650sv*sd*bc*sc*i*

alias:          pci:v000014E4d0000164Fsv*sd*bc*sc*i*

alias:          pci:v000014E4d0000164Esv*sd*bc*sc*i*

depends:        mdio,libcrc32c,ptp

retpoline:      Y

intree:         Y

name:           bnx2x

vermagic:       4.15.0-88-generic SMP mod_unload

parm:           num_queues: Set number of queues (default is as a number of
CPUs) (int)

parm:           disable_tpa: Disable the TPA (LRO) feature (int)

parm:           int_mode: Force interrupt mode other than MSI-X (1 INT#x; 2
MSI) (int)

parm:           dropless_fc: Pause on exhausted host ring (int)

parm:           mrrs: Force Max Read Req Size (0..3) (for debug) (int)

parm:           debug: Default debug msglevel (int)

 

4. NIC card: BCM57840 NetXtreme II 10/20-Gigabit Ethernet (rev 11)

root@gic-mps-104-175:~# lspci | grep -i ethernet

37:00.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.1 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.2 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.3 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.4 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.5 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.6 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

37:00.7 Ethernet controller: Broadcom Inc. and subsidiaries BCM57840
NetXtreme II 10/20-Gigabit Ethernet (rev 11)

 

Please let me know if any one has a work around or fix to this issue?

 

Thanks & Regards,

Anil Kumar

 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28 16:36 [dpdk-dev] bnx2x pmd crash when launching testpmd using BCM57840 Nic Anil Kumar Koli
2020-06-30  7:39 ` Rasesh Mody
  -- strict thread matches above, loose matches on Subject: below --
2020-06-28 16:32 Anil Kumar Koli

DPDK patches and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/ public-inbox