tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bnx(4) lockups?



On Sat, 23 Mar 2019, Masanobu SAITOH wrote:
  From my experience in bge(4), I suspect the bnx(4)'s hard hang might
come from access conflict between the driver(CPU) and the embedded
controller.

One question.

bnx0 at pci1 dev 0 function 0: Broadcom NetXtreme II BCM5709 1000Base-T
bnx0: Ethernet address 5c:f3:fc:e4:e6:78
bnx0: interrupting at ioapic1 pin 4
bnx0: ASIC BCM5709 C0 (0x57092003)
bnx0: PCIe x2 5Gbps
bnx0: Coal (RX:6,6,18,18; TX:20,20,80,80)
bnx1 at pci1 dev 0 function 1: Broadcom NetXtreme II BCM5709 1000Base-T
bnx1: Ethernet address 5c:f3:fc:e4:e6:7a
bnx1: interrupting at ioapic1 pin 16
bnx1: ASIC BCM5709 C0 (0x57092003)
bnx1: PCIe x2 5Gbps
bnx1: Coal (RX:6,6,18,18; TX:20,20,80,80)
bnx2 at pci2 dev 0 function 0: Broadcom NetXtreme II BCM5709 1000Base-T
bnx2: Ethernet address 5c:f3:fc:6b:c6:b4
bnx2: interrupting at ioapic1 pin 5
bnx2: ASIC BCM5709 C0 (0x57092003)
bnx2: PCIe x2 5Gbps
bnx2: Coal (RX:6,6,18,18; TX:20,20,80,80)
bnx3 at pci2 dev 0 function 1: Broadcom NetXtreme II BCM5709 1000Base-T
bnx3: Ethernet address 5c:f3:fc:6b:c6:b6
bnx3: interrupting at ioapic1 pin 17
bnx3: ASIC BCM5709 C0 (0x57092003)
bnx3: PCIe x2 5Gbps
bnx3: Coal (RX:6,6,18,18; TX:20,20,80,80)

No MII PHYs?

Sorry, missed them out.

Could you show me:

	0) the dmesg output of the PHYs if available.

All 4 are like this:

bnx0 at pci1 dev 0 function 0: Broadcom NetXtreme II BCM5709 1000Base-T
bnx0: Ethernet address 5c:f3:fc:e4:e6:78
bnx0: interrupting at ioapic1 pin 4
bnx0: ASIC BCM5709 C0 (0x57092003)
bnx0: PCIe x2 5Gbps
bnx0: Coal (RX:6,6,18,18; TX:20,20,80,80)
brgphy0 at bnx0 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8

	1) ifconfig -m

bnx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
        capabilities=3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
        enabled=0
        ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
        ec_enabled=0
        address: 5c:f3:fc:e4:e6:78
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        supported Ethernet media:
                media none
                media 10baseT
                media 10baseT mediaopt full-duplex
                media 100baseTX
                media 100baseTX mediaopt full-duplex
                media 1000baseT
                media 1000baseT mediaopt full-duplex
                media autoselect
        inet 10.4.0.11 netmask 0xffff0000 broadcast 10.4.255.255
        inet6 fe80::5ef3:fcff:fee4:e678%bnx0 prefixlen 64 scopeid 0x1

	2) pcictl pci0 dump -b [12] -d 0 -f [01]

I only get output for -b 1 -d 0 -f 0:

PCI configuration registers:
  Common header:
    0x00: 0x00791000 0x00100047 0x01040005 0x00000010

    Vendor Name: Symbios Logic (0x1000)
    Device Name: MegaRAID SAS2108 GEN2 (0x0079)
    Command register: 0x0047
      I/O space accesses: on
      Memory space accesses: on
      Bus mastering: on
      Special cycles: off
      MWI transactions: off
      Palette snooping: off
      Parity error checking: on
      Address/data stepping: off
      System error (SERR): off
      Fast back-to-back transactions: off
      Interrupt disable: off
    Status register: 0x0010
      Interrupt status: inactive
      Capability List support: on
      66 MHz capable: off
      User Definable Features (UDF) support: off
      Fast back-to-back capable: off
      Data parity error detected: off
      DEVSEL timing: fast (0x0)
      Slave signaled Target Abort: off
      Master received Target Abort: off
      Master received Master Abort: off
      Asserted System Error (SERR): off
      Parity error detected: off
    Class Name: mass storage (0x01)
    Subclass Name: RAID (0x04)
    Interface: 0x00
    Revision ID: 0x05
    BIST: 0x00
    Header Type: 0x00 (0x00)
    Latency Timer: 0x00
    Cache Line Size: 64bytes (0x10)

  Type 0 ("normal" device) header:
    0x10: 0x00001001 0x9b940004 0x00000000 0x9b900004
    0x20: 0x00000000 0x00000000 0x00000000 0x03b21014
    0x30: 0xfffe0000 0x00000050 0x00000000 0x0000010b

    Base address register at 0x10
      type: i/o
      base: 0x00001000, not sized
    Base address register at 0x14
      type: 64-bit nonprefetchable memory
      base: 0x000000009b940000, not sized
    Base address register at 0x1c
      type: 64-bit nonprefetchable memory
      base: 0x000000009b900000, not sized
    Base address register at 0x24
      not implemented(?)
    Cardbus CIS Pointer: 0x00000000
    Subsystem vendor ID: 0x1014
    Subsystem ID: 0x03b2
    Expansion ROM Base Address: 0xfffe0000
    Capability list pointer: 0x50
    Reserved @ 0x38: 0x00000000
    Maximum Latency: 0x00
    Minimum Grant: 0x00
    Interrupt pin: 0x01 (pin A)
    Interrupt line: 0x0b

  Capability register at 0x50
    type: 0x01 (Power Management)
  Capability register at 0x68
    type: 0x10 (PCI Express)
  Capability register at 0xd0
    type: 0x03 (VPD)
  Capability register at 0xa8
    type: 0x05 (MSI)
  Capability register at 0xc0
    type: 0x11 (MSI-X)

  PCI Power Management Capabilities Register
    Capabilities register: 0x0603
      Version: 1.2
      PME# clock: off
      Device specific initialization: off
      3.3V auxiliary current: self-powered
      D1 power management state support: on
      D2 power management state support: on
      PME# support D0: off
      PME# support D1: off
      PME# support D2: off
      PME# support D3 hot: off
      PME# support D3 cold: off
    Control/status register: 0x0008
      Power state: D0
      PCI Express reserved: off
      No soft reset: on
      PME# assertion: disabled
      PME# status: off
    Bridge Support Extensions register: 0x00
      B2/B3 support: off
      Bus Power/Clock Control Enable: off
    Data register: 0x00

  PCI Message Signaled Interrupt
    Message Control register: 0x0080
      MSI Enabled: off
      Multiple Message Capable: no (1 vector)
      Multiple Message Enabled: off (1 vector)
      64 Bit Address Capable: on
      Per-Vector Masking Capable: off
    Message Address (lower) register: 0x00000000
    Message Address (upper) register: 0x00000000
    Message Data register: 0x00000000

  PCI Express Capabilities Register
    Capability register: 0002
      Capability version: 2
      Device type: PCI Express Endpoint device
      Slot implemented: off
      Interrupt Message Number: 0
    Device Capabilities Register: 0x10008025
      Max Payload Size Supported: 4096 bytes max
      Phantom Functions Supported: not available
      Extended Tag Field Supported: 8bit
      Endpoint L0 Acceptable Latency: Less than 64ns
      Endpoint L1 Acceptable Latency: Less than 1us
      Attention Button Present: off
      Attention Indicator Present: off
      Power Indicator Present: off
      Role-Based Error Report: on
      Captured Slot Power Limit Value: 0
      Captured Slot Power Limit Scale: 0
      Function-Level Reset Capability: on
    Device Control Register: 0x5916
      Correctable Error Reporting Enable: off
      Non Fatal Error Reporting Enable: on
      Fatal Error Reporting Enable: on
      Unsupported Request Reporting Enable: off
      Enable Relaxed Ordering: on
      Max Payload Size: 128 byte
      Extended Tag Field Enable: on
      Phantom Functions Enable: off
      Aux Power PM Enable: off
      Enable No Snoop: on
      Max Read Request Size: 4096 byte
    Device Status Register: 0x0009
      Correctable Error Detected: on
      Non Fatal Error Detected: off
      Fatal Error Detected: off
      Unsupported Request Detected: on
      Aux Power Detected: off
      Transaction Pending: off
    Link Capabilities Register: 0x00000482
      Maximum Link Speed: 5.0GT/s
      Maximum Link Width: x8 lanes
      Active State PM Support: L0s Entry supported
      L0 Exit Latency: Less than 64ns
      L1 Exit Latency: Less than 1us
      Port Number: 0
      Clock Power Management: off
      Surprise Down Error Report: off
      Data Link Layer Link Active: off
      Link BW Notification Capable: off
      ASPM Optionally Compliance: off
    Link Control Register: 0x0040
      Active State PM Control: disabled
      Read Completion Boundary Control: 64bytes
      Link Disable: off
      Retrain Link: off
      Common Clock Configuration: on
      Extended Synch: off
      Enable Clock Power Management: off
      Hardware Autonomous Width Disable: off
      Link Bandwidth Management Interrupt Enable: off
      Link Autonomous Bandwidth Interrupt Enable: off
    Link Status Register: 0x1041
      Negotiated Link Speed: 2.5GT/s
      Negotiated Link Width: x4 lanes
      Training Error: off
      Link Training: off
      Slot Clock Configuration: on
      Data Link Layer Link Active: off
      Link Bandwidth Management Status: off
      Link Autonomous Bandwidth Status: off
    Device Capabilities 2: 0x00000016
      Completion Timeout Ranges Supported: 6
      Completion Timeout Disable Supported: on
      ARI Forwarding Supported: off
      AtomicOp Routing Supported: off
      32bit AtomicOp Completer Supported: off
      64bit AtomicOp Completer Supported: off
      128-bit CAS Completer Supported: off
      No RO-enabled PR-PR passing: off
      LTR Mechanism Supported: off
      TPH Completer Supported: 0
      OBFF Supported: Not supported
      Extended Fmt Field Supported: off
      End-End TLP Prefix Supported: off
      Max End-End TLP Prefixes: 0
    Device Control 2: 0x0009
      Completion Timeout Value: 260ms to 900ms
      Completion Timeout Disabled: off
      ARI Forwarding Enabled: off
      AtomicOp Rquester Enabled: off
      AtomicOp Egress Blocking: off
      IDO Request Enabled: off
      IDO Completion Enabled: off
      LTR Mechanism Enabled: off
      OBFF: Disabled
      End-End TLP Prefix Blocking on: off
    Link Capabilities 2: 0x00000000
      Supported Link Speed Vector:
      Crosslink Supported: off
    Link Control 2: 0x0002
      Target Link Speed: 5.0GT/s
      Enter Compliance Enabled: off
      HW Autonomous Speed Disabled: off
      Selectable De-emphasis: off
      Transmit Margin: 0
      Enter Modified Compliance: off
      Compliance SOS: off
      Compliance Present/De-emphasis: 0
    Link Status 2: 0x0000
      Current De-emphasis Level: off
      Equalization Complete: off
      Equalization Phase 1 Successful: off
      Equalization Phase 2 Successful: off
      Equalization Phase 3 Successful: off
      Link Equalization Request: off

  MSI-X Capability Register
    Message Control register: 0x000e
      Table Size: 15
      Function Mask: off
      MSI-X Enable: off
    Table offset register: 0x00002001
      Table offset: 00002000
      BIR: 0x1
    Pending bit array register: 0x00003801
      Pending bit array offset: 00003800
      BIR: 0x1

  Device-dependent header:
    0x40: 0x00000000 0x00000000 0x00000000 0x00000000
    0x50: 0x06036801 0x00000008 0x00000000 0x00000000
    0x60: 0x00000000 0x00000100 0x0002d010 0x10008025
    0x70: 0x00095916 0x00000482 0x10410040 0x00000000
    0x80: 0x00000000 0x00000000 0x00000000 0x00000016
    0x90: 0x00000009 0x00000000 0x00000002 0x00000000
    0xa0: 0x00000000 0x00000000 0x0080c005 0x00000000
    0xb0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xc0: 0x000e0011 0x00002001 0x00003801 0x00000000
    0xd0: 0x0000a803 0x00000000 0x00000000 0x00000000
    0xe0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xf0: 0x00000000 0x00000000 0x00000000 0x00000000

--
Stephen


Home | Main Index | Thread Index | Old Index