diff mbox

bnx2x: link detected up at startup even when it should be down

Message ID CAL8zT=gp5uZ-Q36=vw--j35txrnLRhguoiMHi8a1kzX=VC3nJg@mail.gmail.com
State RFC, archived
Delegated to: David Miller
Headers show

Commit Message

Jean-Michel Hautbois Sept. 25, 2012, 8:11 a.m. UTC
2012/9/25 Dmitry Kravkov <dmitry@broadcom.com>:
>> -----Original Message-----
>> From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org]
>> On Behalf Of Dmitry Kravkov
>> Sent: Friday, September 21, 2012 10:23 PM
>> To: Jean-Michel Hautbois
>> Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net
>> Subject: RE: bnx2x: link detected up at startup even when it should be down
>>
>> Hi Jean,
>>
>> Thank you for the info
>>
>> > -----Original Message-----
>> > From: Jean-Michel Hautbois [mailto:jhautbois@gmail.com]
>> > Sent: Friday, September 21, 2012 9:04 AM
>> > To: Dmitry Kravkov
>> > Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net
>> > Subject: Re: bnx2x: link detected up at startup even when it should be down
>> >
>> > I already did it twice. I think this is FW related and not only the
>> > commit adding afex support. It may have solved a link issue (I am just
>> > guessing, based on experiments) ?
>>
>> FW replaced in this commit does not deal with link at all,
>>
>> One is involved in link management is displayed using 'ethtool -i' - it comes with
>> a card  and driver independent.
>>
>> Is device configured for MF by the switch?
>> Can you please share lspci output?
>>
>> Other thing that can help in analysis is msglvl 0x4 for both situations
>>
> We were unable to reproduce the issue on 3.2. Can you please provide logs from your setup?

Yes, I was off until today, I have a workaround, but here are some
informations :

$> lspci -vv -d 14e4:168e

04:00.0 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 32
        Region 0: Memory at ea000000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at e9800000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at e97f0000 (64-bit, prefetchable) [size=64K]
        [virtual] Expansion ROM at def00000 [disabled] [size=256K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 48-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Capabilities: [300] #19
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

04:00.1 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 36
        Region 0: Memory at e8800000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at e8000000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at e7ff0000 (64-bit, prefetchable) [size=64K]
        [virtual] Expansion ROM at def40000 [disabled] [size=256K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 4c-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

04:00.2 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 36
        Region 0: Memory at e7000000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at e6800000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at e67f0000 (64-bit, prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 48-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

04:00.3 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin C routed to IRQ 37
        Region 0: Memory at e5800000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at e5000000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at e4ff0000 (64-bit, prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 4c-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

04:00.4 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin C routed to IRQ 37
        Region 0: Memory at e4000000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at e3800000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at e37f0000 (64-bit, prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 48-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

04:00.5 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin D routed to IRQ 38
        Region 0: Memory at e2800000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at e2000000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at e1ff0000 (64-bit, prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 4c-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

04:00.6 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin D routed to IRQ 38
        Region 0: Memory at e1000000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at e0800000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at e07f0000 (64-bit, prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 48-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

04:00.7 Ethernet controller: Broadcom Corporation Device 168e (rev 10)
        Subsystem: Hewlett-Packard Company Device 1798
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 32
        Region 0: Memory at df800000 (64-bit, prefetchable) [size=8M]
        Region 2: Memory at df000000 (64-bit, prefetchable) [size=8M]
        Region 4: Memory at deff0000 (64-bit, prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D3 PME-Enable+ DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+
Queue=0/3 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=17
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s
<4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+
Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr+ NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s L1,
Latency L0 <2us, L1 <4us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [13c] Device Serial Number 4c-49-7a-fe-ff-6e-c1-80
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel <?>
        Capabilities: [1b8] #0e
        Capabilities: [220] #15
        Kernel driver in use: bnx2x
        Kernel modules: bnx2x

I have tested several things, and I added some traces in order to get
information.
For instance, I trace the load_code in the function named "bnx2x_nic_load".

[   25.693677] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load load_code=0x10130000
[   25.693679] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load start period
[  102.748934] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load load_code=0x10100000
[  102.749065] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load start period
[  104.007074] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load load_code=0x10120000
[  104.007197] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load NOT start period
[  104.423789] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load load_code=0x10120000
[  104.423914] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load NOT start period
[  104.836505] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load load_code=0x10120000
[  104.836632] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load NOT start period
[  105.254220] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load load_code=0x10120000
[  105.254350] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load NOT start period
[  105.667935] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load load_code=0x10120000
[  105.668066] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load NOT start period
[  106.081652] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load load_code=0x10120000
[  106.081779] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load NOT start period

This is a FlexNIC use.
Here is my (quick and dirty) patch which makes the link detection
working and adds the traces shown above :

                        rc = -EBUSY;
@@ -1785,22 +1786,31 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
                DP(NETIF_MSG_IFUP, "NO MCP - load counts[%d]      %d, %d, %d\n",
                   path, load_count[path][0], load_count[path][1],
                   load_count[path][2]);
+netdev_info(bp->dev, "bnx2x_nic_load NO MCP - load counts[%d]
%d, %d, %d\n",
+                  path, load_count[path][0], load_count[path][1],
+                  load_count[path][2]);
                load_count[path][0]++;
                load_count[path][1 + port]++;
                DP(NETIF_MSG_IFUP, "NO MCP - new load counts[%d]  %d, %d, %d\n",
                   path, load_count[path][0], load_count[path][1],
                   load_count[path][2]);
+netdev_info(bp->dev, "bnx2x_nic_load NO MCP - new load counts[%d]
%d, %d, %d\n",
+                  path, load_count[path][0], load_count[path][1],
+                  load_count[path][2]);
                if (load_count[path][0] == 1)
                        load_code = FW_MSG_CODE_DRV_LOAD_COMMON;
                else if (load_count[path][1 + port] == 1)
                        load_code = FW_MSG_CODE_DRV_LOAD_PORT;
                else
                        load_code = FW_MSG_CODE_DRV_LOAD_FUNCTION;
+netdev_info(bp->dev, "bnx2x_nic_load autre load_code=0x%08X\n",load_code);
        }

+netdev_info(bp->dev, "bnx2x_nic_load load_code=0x%08X\n",load_code);
        if ((load_code == FW_MSG_CODE_DRV_LOAD_COMMON) ||
            (load_code == FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) ||
-           (load_code == FW_MSG_CODE_DRV_LOAD_PORT)) {
+           (load_code == FW_MSG_CODE_DRV_LOAD_PORT) ||
+                (load_code == FW_MSG_CODE_DRV_LOAD_FUNCTION)) {
                bp->port.pmf = 1;
                /*
                 * We need the barrier to ensure the ordering between the
@@ -1808,9 +1818,13 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
                 * bnx2x_periodic_task().
                 */
                smp_mb();
+netdev_info(bp->dev, "bnx2x_nic_load start period\n");
                queue_delayed_work(bnx2x_wq, &bp->period_task, 0);
        } else
+{
+netdev_info(bp->dev, "bnx2x_nic_load NOT start period\n");
                bp->port.pmf = 0;
+}

        DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf);


Hope it can help...
Regards,
JM
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Dmitry Kravkov Sept. 25, 2012, 10:42 a.m. UTC | #1
> -----Original Message-----

> From: Jean-Michel Hautbois [mailto:jhautbois@gmail.com]

> Sent: Tuesday, September 25, 2012 10:11 AM

> To: Dmitry Kravkov

> Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net

> Subject: Re: bnx2x: link detected up at startup even when it should be down

> 

> 

> I have tested several things, and I added some traces in order to get

> information.

> For instance, I trace the load_code in the function named "bnx2x_nic_load".

> 

> [   25.693677] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load load_code=0x10130000

> [   25.693679] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load start period

> [  102.748934] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load load_code=0x10100000

> [  102.749065] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load start period

> [  104.007074] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load load_code=0x10120000

> [  104.007197] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load NOT start period

> [  104.423789] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load load_code=0x10120000

> [  104.423914] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load NOT start period

> [  104.836505] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load load_code=0x10120000

> [  104.836632] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load NOT start period

> [  105.254220] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load load_code=0x10120000

> [  105.254350] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load NOT start period

> [  105.667935] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load load_code=0x10120000

> [  105.668066] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load NOT start period

> [  106.081652] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load load_code=0x10120000

> [  106.081779] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load NOT start period

> 

> This is a FlexNIC use.

> Here is my (quick and dirty) patch which makes the link detection

> working and adds the traces shown above :

> 

> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

> b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

> index 580b44e..dedd810 100644

> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

> @@ -1769,6 +1769,7 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)

>          */

>         if (!BP_NOMCP(bp)) {

>                 load_code = bnx2x_fw_command(bp, DRV_MSG_CODE_LOAD_REQ, 0);

> +netdev_info(bp->dev, "bnx2x_nic_load bnx2x_fw_command

> load_code=0x%08X\n",load_code);

>                 if (!load_code) {

>                         BNX2X_ERR("MCP response failure, aborting\n");

>                         rc = -EBUSY;

> @@ -1785,22 +1786,31 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)

>                 DP(NETIF_MSG_IFUP, "NO MCP - load counts[%d]      %d, %d, %d\n",

>                    path, load_count[path][0], load_count[path][1],

>                    load_count[path][2]);

> +netdev_info(bp->dev, "bnx2x_nic_load NO MCP - load counts[%d]

> %d, %d, %d\n",

> +                  path, load_count[path][0], load_count[path][1],

> +                  load_count[path][2]);

>                 load_count[path][0]++;

>                 load_count[path][1 + port]++;

>                 DP(NETIF_MSG_IFUP, "NO MCP - new load counts[%d]  %d, %d, %d\n",

>                    path, load_count[path][0], load_count[path][1],

>                    load_count[path][2]);

> +netdev_info(bp->dev, "bnx2x_nic_load NO MCP - new load counts[%d]

> %d, %d, %d\n",

> +                  path, load_count[path][0], load_count[path][1],

> +                  load_count[path][2]);

>                 if (load_count[path][0] == 1)

>                         load_code = FW_MSG_CODE_DRV_LOAD_COMMON;

>                 else if (load_count[path][1 + port] == 1)

>                         load_code = FW_MSG_CODE_DRV_LOAD_PORT;

>                 else

>                         load_code = FW_MSG_CODE_DRV_LOAD_FUNCTION;

> +netdev_info(bp->dev, "bnx2x_nic_load autre

> load_code=0x%08X\n",load_code);

>         }

> 

> +netdev_info(bp->dev, "bnx2x_nic_load load_code=0x%08X\n",load_code);

>         if ((load_code == FW_MSG_CODE_DRV_LOAD_COMMON) ||

>             (load_code == FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) ||

> -           (load_code == FW_MSG_CODE_DRV_LOAD_PORT)) {

> +           (load_code == FW_MSG_CODE_DRV_LOAD_PORT) ||

> +                (load_code == FW_MSG_CODE_DRV_LOAD_FUNCTION)) {

>                 bp->port.pmf = 1;

>                 /*

>                  * We need the barrier to ensure the ordering between the

> @@ -1808,9 +1818,13 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)

>                  * bnx2x_periodic_task().

>                  */

>                 smp_mb();

> +netdev_info(bp->dev, "bnx2x_nic_load start period\n");

>                 queue_delayed_work(bnx2x_wq, &bp->period_task, 0);

>         } else

> +{

> +netdev_info(bp->dev, "bnx2x_nic_load NOT start period\n");

>                 bp->port.pmf = 0;

> +}

> 

>         DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf);

> 

Thanks Jean,
But your output does not suit the patch.
Your patch will start periodic for every instance, but printout show that it's started for PMF only (which is correct).
Generally if all functions are marked as PMF (port management function) you will get into the problem accessing shared port resources, like phys and internal data structures, then configuration/data will be corrupted.

Is it feasible to provide ethtool -i output and syslog when driver is loaded debug=0x4?

Thanks
Jean-Michel Hautbois Sept. 25, 2012, 12:22 p.m. UTC | #2
2012/9/25 Dmitry Kravkov <dmitry@broadcom.com>:
>> -----Original Message-----
>> From: Jean-Michel Hautbois [mailto:jhautbois@gmail.com]
>> Sent: Tuesday, September 25, 2012 10:11 AM
>> To: Dmitry Kravkov
>> Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net
>> Subject: Re: bnx2x: link detected up at startup even when it should be down
>>
>>
>> I have tested several things, and I added some traces in order to get
>> information.
>> For instance, I trace the load_code in the function named "bnx2x_nic_load".
>>
>> [   25.693677] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load load_code=0x10130000
>> [   25.693679] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load start period
>> [  102.748934] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load load_code=0x10100000
>> [  102.749065] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load start period
>> [  104.007074] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load load_code=0x10120000
>> [  104.007197] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load NOT start period
>> [  104.423789] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load load_code=0x10120000
>> [  104.423914] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load NOT start period
>> [  104.836505] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load load_code=0x10120000
>> [  104.836632] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load NOT start period
>> [  105.254220] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load load_code=0x10120000
>> [  105.254350] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load NOT start period
>> [  105.667935] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load load_code=0x10120000
>> [  105.668066] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load NOT start period
>> [  106.081652] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load load_code=0x10120000
>> [  106.081779] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load NOT start period
>>
>> This is a FlexNIC use.
>> Here is my (quick and dirty) patch which makes the link detection
>> working and adds the traces shown above :
>>
>> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>> b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>> index 580b44e..dedd810 100644
>> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>> @@ -1769,6 +1769,7 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
>>          */
>>         if (!BP_NOMCP(bp)) {
>>                 load_code = bnx2x_fw_command(bp, DRV_MSG_CODE_LOAD_REQ, 0);
>> +netdev_info(bp->dev, "bnx2x_nic_load bnx2x_fw_command
>> load_code=0x%08X\n",load_code);
>>                 if (!load_code) {
>>                         BNX2X_ERR("MCP response failure, aborting\n");
>>                         rc = -EBUSY;
>> @@ -1785,22 +1786,31 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
>>                 DP(NETIF_MSG_IFUP, "NO MCP - load counts[%d]      %d, %d, %d\n",
>>                    path, load_count[path][0], load_count[path][1],
>>                    load_count[path][2]);
>> +netdev_info(bp->dev, "bnx2x_nic_load NO MCP - load counts[%d]
>> %d, %d, %d\n",
>> +                  path, load_count[path][0], load_count[path][1],
>> +                  load_count[path][2]);
>>                 load_count[path][0]++;
>>                 load_count[path][1 + port]++;
>>                 DP(NETIF_MSG_IFUP, "NO MCP - new load counts[%d]  %d, %d, %d\n",
>>                    path, load_count[path][0], load_count[path][1],
>>                    load_count[path][2]);
>> +netdev_info(bp->dev, "bnx2x_nic_load NO MCP - new load counts[%d]
>> %d, %d, %d\n",
>> +                  path, load_count[path][0], load_count[path][1],
>> +                  load_count[path][2]);
>>                 if (load_count[path][0] == 1)
>>                         load_code = FW_MSG_CODE_DRV_LOAD_COMMON;
>>                 else if (load_count[path][1 + port] == 1)
>>                         load_code = FW_MSG_CODE_DRV_LOAD_PORT;
>>                 else
>>                         load_code = FW_MSG_CODE_DRV_LOAD_FUNCTION;
>> +netdev_info(bp->dev, "bnx2x_nic_load autre
>> load_code=0x%08X\n",load_code);
>>         }
>>
>> +netdev_info(bp->dev, "bnx2x_nic_load load_code=0x%08X\n",load_code);
>>         if ((load_code == FW_MSG_CODE_DRV_LOAD_COMMON) ||
>>             (load_code == FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) ||
>> -           (load_code == FW_MSG_CODE_DRV_LOAD_PORT)) {
>> +           (load_code == FW_MSG_CODE_DRV_LOAD_PORT) ||
>> +                (load_code == FW_MSG_CODE_DRV_LOAD_FUNCTION)) {
>>                 bp->port.pmf = 1;
>>                 /*
>>                  * We need the barrier to ensure the ordering between the
>> @@ -1808,9 +1818,13 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
>>                  * bnx2x_periodic_task().
>>                  */
>>                 smp_mb();
>> +netdev_info(bp->dev, "bnx2x_nic_load start period\n");
>>                 queue_delayed_work(bnx2x_wq, &bp->period_task, 0);
>>         } else
>> +{
>> +netdev_info(bp->dev, "bnx2x_nic_load NOT start period\n");
>>                 bp->port.pmf = 0;
>> +}
>>
>>         DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf);
>>
> Thanks Jean,
> But your output does not suit the patch.

Yes, you are right, here it is :
Sep 25 07:56:08 debian kernel: [   26.607197] bnx2x 0000:04:00.0:
eth0: bnx2x_nic_load bnx2x_fw_command load_code=0x10130000
Sep 25 07:56:08 debian kernel: [   26.608642] bnx2x 0000:04:00.0:
eth0: bnx2x_nic_load load_code=0x10130000
Sep 25 07:56:08 debian kernel: [   26.608644] bnx2x 0000:04:00.0:
eth0: bnx2x_nic_load start period
Sep 25 07:57:20 debian kernel: [  101.068231] bnx2x 0000:04:00.1:
eth1: bnx2x_nic_load bnx2x_fw_command load_code=0x10100000
Sep 25 07:57:20 debian kernel: [  101.068416] bnx2x 0000:04:00.1:
eth1: bnx2x_nic_load load_code=0x10100000
Sep 25 07:57:20 debian kernel: [  101.068533] bnx2x 0000:04:00.1:
eth1: bnx2x_nic_load start period
Sep 25 07:57:21 debian kernel: [  102.294393] bnx2x 0000:04:00.2:
eth2: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
Sep 25 07:57:21 debian kernel: [  102.294585] bnx2x 0000:04:00.2:
eth2: bnx2x_nic_load load_code=0x10120000
Sep 25 07:57:21 debian kernel: [  102.294711] bnx2x 0000:04:00.2:
eth2: bnx2x_nic_load start period
Sep 25 07:57:22 debian kernel: [  102.782057] bnx2x 0000:04:00.3:
eth3: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
Sep 25 07:57:22 debian kernel: [  102.782240] bnx2x 0000:04:00.3:
eth3: bnx2x_nic_load load_code=0x10120000
Sep 25 07:57:22 debian kernel: [  102.782359] bnx2x 0000:04:00.3:
eth3: bnx2x_nic_load start period
Sep 25 07:57:22 debian kernel: [  103.265731] bnx2x 0000:04:00.4:
eth4: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
Sep 25 07:57:22 debian kernel: [  103.265924] bnx2x 0000:04:00.4:
eth4: bnx2x_nic_load load_code=0x10120000
Sep 25 07:57:22 debian kernel: [  103.266051] bnx2x 0000:04:00.4:
eth4: bnx2x_nic_load start period
Sep 25 07:57:23 debian kernel: [  103.758390] bnx2x 0000:04:00.5:
eth5: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
Sep 25 07:57:23 debian kernel: [  103.758583] bnx2x 0000:04:00.5:
eth5: bnx2x_nic_load load_code=0x10120000
Sep 25 07:57:23 debian kernel: [  103.758711] bnx2x 0000:04:00.5:
eth5: bnx2x_nic_load start period
Sep 25 07:57:23 debian kernel: [  104.252053] bnx2x 0000:04:00.6:
eth6: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
Sep 25 07:57:23 debian kernel: [  104.252247] bnx2x 0000:04:00.6:
eth6: bnx2x_nic_load load_code=0x10120000
Sep 25 07:57:23 debian kernel: [  104.252373] bnx2x 0000:04:00.6:
eth6: bnx2x_nic_load start period
Sep 25 07:57:24 debian kernel: [  104.836655] bnx2x 0000:04:00.7:
eth7: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
Sep 25 07:57:24 debian kernel: [  104.836849] bnx2x 0000:04:00.7:
eth7: bnx2x_nic_load load_code=0x10120000
Sep 25 07:57:24 debian kernel: [  104.836976] bnx2x 0000:04:00.7:
eth7: bnx2x_nic_load start period
Sep 25 07:57:25 debian kernel: [  106.145755] bnx2x 0000:04:00.1:
eth1: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
Sep 25 07:57:25 debian kernel: [  106.145940] bnx2x 0000:04:00.1:
eth1: bnx2x_nic_load load_code=0x10120000
Sep 25 07:57:25 debian kernel: [  106.146056] bnx2x 0000:04:00.1:
eth1: bnx2x_nic_load start period

> Your patch will start periodic for every instance, but printout show that it's started for PMF only (which is correct).
> Generally if all functions are marked as PMF (port management function) you will get into the problem accessing shared port resources, like phys and internal data structures, then configuration/data will be corrupted.
>
> Is it feasible to provide ethtool -i output and syslog when driver is loaded debug=0x4?
$> ethtool -i eth0
driver: bnx2x
version: 1.70.30-1
firmware-version: bc 7.0.49
bus-info: 0000:04:00.0

And msglvl set to 4 says this :
Sep 25 12:29:20 debian kernel: [16410.336897] bnx2x:
[bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
Sep 25 12:29:20 debian kernel: [16410.337215] bnx2x:
[bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
Sep 25 12:29:20 debian kernel: [16410.337511] bnx2x:
[bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
Sep 25 12:29:21 debian kernel: [16410.395363] bnx2x:
[bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
Sep 25 12:29:21 debian kernel: [16410.633207] bnx2x:
[bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
Sep 25 12:29:21 debian kernel: [16411.174842] bnx2x:
[bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
Sep 25 12:29:22 debian kernel: [16411.396739] bnx2x:
[bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
Sep 25 12:29:22 debian kernel: [16411.432249] bnx2x:
[bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
Sep 25 12:29:22 debian kernel: [16411.432566] bnx2x:
[bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
Sep 25 12:29:22 debian kernel: [16411.433348] bnx2x:
[bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
Sep 25 12:29:22 debian kernel: [16411.634797] bnx2x:
[bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
Sep 25 12:29:22 debian kernel: [16412.176170] bnx2x:
[bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
Sep 25 12:29:23 debian kernel: [16412.408747] bnx2x:
[bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
Sep 25 12:29:23 debian kernel: [16412.489861] bnx2x:
[bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
Sep 25 12:29:23 debian kernel: [16412.490182] bnx2x:
[bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
Sep 25 12:29:23 debian kernel: [16412.490505] bnx2x:
[bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
Sep 25 12:29:23 debian kernel: [16412.635849] bnx2x:
[bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
Sep 25 12:29:23 debian kernel: [16413.177496] bnx2x:
[bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
Sep 25 12:29:24 debian kernel: [16413.411329] bnx2x:
[bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

JM
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jean-Michel Hautbois Sept. 25, 2012, 12:54 p.m. UTC | #3
2012/9/25 Jean-Michel Hautbois <jhautbois@gmail.com>:
> 2012/9/25 Dmitry Kravkov <dmitry@broadcom.com>:
>>> -----Original Message-----
>>> From: Jean-Michel Hautbois [mailto:jhautbois@gmail.com]
>>> Sent: Tuesday, September 25, 2012 10:11 AM
>>> To: Dmitry Kravkov
>>> Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net
>>> Subject: Re: bnx2x: link detected up at startup even when it should be down
>>>
>>>
>>> I have tested several things, and I added some traces in order to get
>>> information.
>>> For instance, I trace the load_code in the function named "bnx2x_nic_load".
>>>
>>> [   25.693677] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load load_code=0x10130000
>>> [   25.693679] bnx2x 0000:04:00.0: eth0: bnx2x_nic_load start period
>>> [  102.748934] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load load_code=0x10100000
>>> [  102.749065] bnx2x 0000:04:00.1: eth1: bnx2x_nic_load start period
>>> [  104.007074] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load load_code=0x10120000
>>> [  104.007197] bnx2x 0000:04:00.2: eth2: bnx2x_nic_load NOT start period
>>> [  104.423789] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load load_code=0x10120000
>>> [  104.423914] bnx2x 0000:04:00.3: eth3: bnx2x_nic_load NOT start period
>>> [  104.836505] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load load_code=0x10120000
>>> [  104.836632] bnx2x 0000:04:00.4: eth4: bnx2x_nic_load NOT start period
>>> [  105.254220] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load load_code=0x10120000
>>> [  105.254350] bnx2x 0000:04:00.5: eth5: bnx2x_nic_load NOT start period
>>> [  105.667935] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load load_code=0x10120000
>>> [  105.668066] bnx2x 0000:04:00.6: eth6: bnx2x_nic_load NOT start period
>>> [  106.081652] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load load_code=0x10120000
>>> [  106.081779] bnx2x 0000:04:00.7: eth7: bnx2x_nic_load NOT start period
>>>
>>> This is a FlexNIC use.
>>> Here is my (quick and dirty) patch which makes the link detection
>>> working and adds the traces shown above :
>>>
>>> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>>> b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>>> index 580b44e..dedd810 100644
>>> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>>> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
>>> @@ -1769,6 +1769,7 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
>>>          */
>>>         if (!BP_NOMCP(bp)) {
>>>                 load_code = bnx2x_fw_command(bp, DRV_MSG_CODE_LOAD_REQ, 0);
>>> +netdev_info(bp->dev, "bnx2x_nic_load bnx2x_fw_command
>>> load_code=0x%08X\n",load_code);
>>>                 if (!load_code) {
>>>                         BNX2X_ERR("MCP response failure, aborting\n");
>>>                         rc = -EBUSY;
>>> @@ -1785,22 +1786,31 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
>>>                 DP(NETIF_MSG_IFUP, "NO MCP - load counts[%d]      %d, %d, %d\n",
>>>                    path, load_count[path][0], load_count[path][1],
>>>                    load_count[path][2]);
>>> +netdev_info(bp->dev, "bnx2x_nic_load NO MCP - load counts[%d]
>>> %d, %d, %d\n",
>>> +                  path, load_count[path][0], load_count[path][1],
>>> +                  load_count[path][2]);
>>>                 load_count[path][0]++;
>>>                 load_count[path][1 + port]++;
>>>                 DP(NETIF_MSG_IFUP, "NO MCP - new load counts[%d]  %d, %d, %d\n",
>>>                    path, load_count[path][0], load_count[path][1],
>>>                    load_count[path][2]);
>>> +netdev_info(bp->dev, "bnx2x_nic_load NO MCP - new load counts[%d]
>>> %d, %d, %d\n",
>>> +                  path, load_count[path][0], load_count[path][1],
>>> +                  load_count[path][2]);
>>>                 if (load_count[path][0] == 1)
>>>                         load_code = FW_MSG_CODE_DRV_LOAD_COMMON;
>>>                 else if (load_count[path][1 + port] == 1)
>>>                         load_code = FW_MSG_CODE_DRV_LOAD_PORT;
>>>                 else
>>>                         load_code = FW_MSG_CODE_DRV_LOAD_FUNCTION;
>>> +netdev_info(bp->dev, "bnx2x_nic_load autre
>>> load_code=0x%08X\n",load_code);
>>>         }
>>>
>>> +netdev_info(bp->dev, "bnx2x_nic_load load_code=0x%08X\n",load_code);
>>>         if ((load_code == FW_MSG_CODE_DRV_LOAD_COMMON) ||
>>>             (load_code == FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) ||
>>> -           (load_code == FW_MSG_CODE_DRV_LOAD_PORT)) {
>>> +           (load_code == FW_MSG_CODE_DRV_LOAD_PORT) ||
>>> +                (load_code == FW_MSG_CODE_DRV_LOAD_FUNCTION)) {
>>>                 bp->port.pmf = 1;
>>>                 /*
>>>                  * We need the barrier to ensure the ordering between the
>>> @@ -1808,9 +1818,13 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
>>>                  * bnx2x_periodic_task().
>>>                  */
>>>                 smp_mb();
>>> +netdev_info(bp->dev, "bnx2x_nic_load start period\n");
>>>                 queue_delayed_work(bnx2x_wq, &bp->period_task, 0);
>>>         } else
>>> +{
>>> +netdev_info(bp->dev, "bnx2x_nic_load NOT start period\n");
>>>                 bp->port.pmf = 0;
>>> +}
>>>
>>>         DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf);
>>>
>> Thanks Jean,
>> But your output does not suit the patch.
>
> Yes, you are right, here it is :
> Sep 25 07:56:08 debian kernel: [   26.607197] bnx2x 0000:04:00.0:
> eth0: bnx2x_nic_load bnx2x_fw_command load_code=0x10130000
> Sep 25 07:56:08 debian kernel: [   26.608642] bnx2x 0000:04:00.0:
> eth0: bnx2x_nic_load load_code=0x10130000
> Sep 25 07:56:08 debian kernel: [   26.608644] bnx2x 0000:04:00.0:
> eth0: bnx2x_nic_load start period
> Sep 25 07:57:20 debian kernel: [  101.068231] bnx2x 0000:04:00.1:
> eth1: bnx2x_nic_load bnx2x_fw_command load_code=0x10100000
> Sep 25 07:57:20 debian kernel: [  101.068416] bnx2x 0000:04:00.1:
> eth1: bnx2x_nic_load load_code=0x10100000
> Sep 25 07:57:20 debian kernel: [  101.068533] bnx2x 0000:04:00.1:
> eth1: bnx2x_nic_load start period
> Sep 25 07:57:21 debian kernel: [  102.294393] bnx2x 0000:04:00.2:
> eth2: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
> Sep 25 07:57:21 debian kernel: [  102.294585] bnx2x 0000:04:00.2:
> eth2: bnx2x_nic_load load_code=0x10120000
> Sep 25 07:57:21 debian kernel: [  102.294711] bnx2x 0000:04:00.2:
> eth2: bnx2x_nic_load start period
> Sep 25 07:57:22 debian kernel: [  102.782057] bnx2x 0000:04:00.3:
> eth3: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
> Sep 25 07:57:22 debian kernel: [  102.782240] bnx2x 0000:04:00.3:
> eth3: bnx2x_nic_load load_code=0x10120000
> Sep 25 07:57:22 debian kernel: [  102.782359] bnx2x 0000:04:00.3:
> eth3: bnx2x_nic_load start period
> Sep 25 07:57:22 debian kernel: [  103.265731] bnx2x 0000:04:00.4:
> eth4: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
> Sep 25 07:57:22 debian kernel: [  103.265924] bnx2x 0000:04:00.4:
> eth4: bnx2x_nic_load load_code=0x10120000
> Sep 25 07:57:22 debian kernel: [  103.266051] bnx2x 0000:04:00.4:
> eth4: bnx2x_nic_load start period
> Sep 25 07:57:23 debian kernel: [  103.758390] bnx2x 0000:04:00.5:
> eth5: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
> Sep 25 07:57:23 debian kernel: [  103.758583] bnx2x 0000:04:00.5:
> eth5: bnx2x_nic_load load_code=0x10120000
> Sep 25 07:57:23 debian kernel: [  103.758711] bnx2x 0000:04:00.5:
> eth5: bnx2x_nic_load start period
> Sep 25 07:57:23 debian kernel: [  104.252053] bnx2x 0000:04:00.6:
> eth6: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
> Sep 25 07:57:23 debian kernel: [  104.252247] bnx2x 0000:04:00.6:
> eth6: bnx2x_nic_load load_code=0x10120000
> Sep 25 07:57:23 debian kernel: [  104.252373] bnx2x 0000:04:00.6:
> eth6: bnx2x_nic_load start period
> Sep 25 07:57:24 debian kernel: [  104.836655] bnx2x 0000:04:00.7:
> eth7: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
> Sep 25 07:57:24 debian kernel: [  104.836849] bnx2x 0000:04:00.7:
> eth7: bnx2x_nic_load load_code=0x10120000
> Sep 25 07:57:24 debian kernel: [  104.836976] bnx2x 0000:04:00.7:
> eth7: bnx2x_nic_load start period
> Sep 25 07:57:25 debian kernel: [  106.145755] bnx2x 0000:04:00.1:
> eth1: bnx2x_nic_load bnx2x_fw_command load_code=0x10120000
> Sep 25 07:57:25 debian kernel: [  106.145940] bnx2x 0000:04:00.1:
> eth1: bnx2x_nic_load load_code=0x10120000
> Sep 25 07:57:25 debian kernel: [  106.146056] bnx2x 0000:04:00.1:
> eth1: bnx2x_nic_load start period
>
>> Your patch will start periodic for every instance, but printout show that it's started for PMF only (which is correct).
>> Generally if all functions are marked as PMF (port management function) you will get into the problem accessing shared port resources, like phys and internal data structures, then configuration/data will be corrupted.
>>
>> Is it feasible to provide ethtool -i output and syslog when driver is loaded debug=0x4?
> $> ethtool -i eth0
> driver: bnx2x
> version: 1.70.30-1
> firmware-version: bc 7.0.49
> bus-info: 0000:04:00.0
>
> And msglvl set to 4 says this :
> Sep 25 12:29:20 debian kernel: [16410.336897] bnx2x:
> [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
> Sep 25 12:29:20 debian kernel: [16410.337215] bnx2x:
> [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
> Sep 25 12:29:20 debian kernel: [16410.337511] bnx2x:
> [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
> Sep 25 12:29:21 debian kernel: [16410.395363] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
> Sep 25 12:29:21 debian kernel: [16410.633207] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
> Sep 25 12:29:21 debian kernel: [16411.174842] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
> Sep 25 12:29:22 debian kernel: [16411.396739] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
> Sep 25 12:29:22 debian kernel: [16411.432249] bnx2x:
> [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
> Sep 25 12:29:22 debian kernel: [16411.432566] bnx2x:
> [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
> Sep 25 12:29:22 debian kernel: [16411.433348] bnx2x:
> [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
> Sep 25 12:29:22 debian kernel: [16411.634797] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
> Sep 25 12:29:22 debian kernel: [16412.176170] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
> Sep 25 12:29:23 debian kernel: [16412.408747] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
> Sep 25 12:29:23 debian kernel: [16412.489861] bnx2x:
> [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
> Sep 25 12:29:23 debian kernel: [16412.490182] bnx2x:
> [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
> Sep 25 12:29:23 debian kernel: [16412.490505] bnx2x:
> [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
> Sep 25 12:29:23 debian kernel: [16412.635849] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
> Sep 25 12:29:23 debian kernel: [16413.177496] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
> Sep 25 12:29:24 debian kernel: [16413.411329] bnx2x:
> [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
>
> JM

After a reboot (with the added if but no netif_msg) :

[  998.244250] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[  998.244251]   supported 0x7460  advertising 0x7460  speed 2500
[  998.244252]   duplex 1  port 3  phy_address 1  transceiver 0
[  998.244252]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  998.244551] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[  998.244552]   supported 0x7460  advertising 0x7460  speed 8000
[  998.244552]   duplex 1  port 3  phy_address 1  transceiver 0
[  998.244553]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  998.244851] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[  998.244852]   supported 0x7460  advertising 0x7460  speed 2500
[  998.244852]   duplex 1  port 3  phy_address 1  transceiver 0
[  998.244853]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  998.246453] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[  998.246454]   supported 0x7460  advertising 0x7460  speed 1000
[  998.246454]   duplex 1  port 3  phy_address 1  transceiver 0
[  998.246455]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  998.255995] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[  998.643647] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[  998.723597] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[  998.735816] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[  999.255050] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[  999.255051]   supported 0x7460  advertising 0x7460  speed 2500
[  999.255052]   duplex 1  port 3  phy_address 1  transceiver 0
[  999.255052]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  999.255356] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[  999.255356]   supported 0x7460  advertising 0x7460  speed 8000
[  999.255357]   duplex 1  port 3  phy_address 1  transceiver 0
[  999.255358]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  999.255651] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[  999.255652]   supported 0x7460  advertising 0x7460  speed 2500
[  999.255653]   duplex 1  port 3  phy_address 1  transceiver 0
[  999.255653]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  999.255943] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[  999.255944]   supported 0x7460  advertising 0x7460  speed 1000
[  999.255944]   duplex 1  port 3  phy_address 1  transceiver 0
[  999.255945]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[  999.257380] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[  999.644969] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[  999.724909] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[  999.737130] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[ 1000.258622] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[ 1000.263951] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[ 1000.263952]   supported 0x7460  advertising 0x7460  speed 2500
[ 1000.263952]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1000.263953]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1000.264240] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[ 1000.264241]   supported 0x7460  advertising 0x7460  speed 8000
[ 1000.264241]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1000.264242]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1000.264525] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[ 1000.264525]   supported 0x7460  advertising 0x7460  speed 2500
[ 1000.264526]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1000.264527]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1000.264815] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[ 1000.264816]   supported 0x7460  advertising 0x7460  speed 1000
[ 1000.264816]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1000.264817]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1000.646283] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[ 1000.726224] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[ 1000.738445] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[ 1001.260013] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[ 1001.272929] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[ 1001.272930]   supported 0x7460  advertising 0x7460  speed 2500
[ 1001.272931]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1001.272931]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1001.273221] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[ 1001.273222]   supported 0x7460  advertising 0x7460  speed 8000
[ 1001.273222]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1001.273223]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1001.273503] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[ 1001.273504]   supported 0x7460  advertising 0x7460  speed 2500
[ 1001.273505]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1001.273505]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1001.273790] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[ 1001.273790]   supported 0x7460  advertising 0x7460  speed 1000
[ 1001.273791]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1001.273791]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1001.647598] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[ 1001.727540] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[ 1001.739762] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[ 1002.261261] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[ 1002.281715] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[ 1002.281715]   supported 0x7460  advertising 0x7460  speed 2500
[ 1002.281716]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1002.281717]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1002.282002] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[ 1002.282003]   supported 0x7460  advertising 0x7460  speed 8000
[ 1002.282003]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1002.282004]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1002.282294] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[ 1002.282295]   supported 0x7460  advertising 0x7460  speed 2500
[ 1002.282296]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1002.282296]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1002.282583] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[ 1002.282584]   supported 0x7460  advertising 0x7460  speed 1000
[ 1002.282584]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1002.282585]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1002.648914] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[ 1002.728852] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[ 1002.741076] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[ 1003.262650] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[ 1003.290582] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[ 1003.290583]   supported 0x7460  advertising 0x7460  speed 2500
[ 1003.290584]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1003.290584]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1003.290886] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[ 1003.290887]   supported 0x7460  advertising 0x7460  speed 8000
[ 1003.290887]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1003.290888]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1003.291188] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[ 1003.291188]   supported 0x7460  advertising 0x7460  speed 2500
[ 1003.291189]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1003.291190]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1003.291493] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[ 1003.291494]   supported 0x7460  advertising 0x7460  speed 1000
[ 1003.291494]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1003.291495]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1003.650229] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[ 1003.730167] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[ 1003.742391] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[ 1004.263895] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[ 1004.299670] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[ 1004.299671]   supported 0x7460  advertising 0x7460  speed 2500
[ 1004.299672]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1004.299673]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1004.299986] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[ 1004.299987]   supported 0x7460  advertising 0x7460  speed 8000
[ 1004.299987]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1004.299988]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1004.300293] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[ 1004.300293]   supported 0x7460  advertising 0x7460  speed 2500
[ 1004.300294]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1004.300295]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1004.300600] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[ 1004.300600]   supported 0x7460  advertising 0x7460  speed 1000
[ 1004.300601]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1004.300601]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1004.651587] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[ 1004.731481] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[ 1004.743705] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[ 1005.265285] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[ 1005.308537] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[ 1005.308538]   supported 0x7460  advertising 0x7460  speed 2500
[ 1005.308538]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1005.308539]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1005.308840] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[ 1005.308841]   supported 0x7460  advertising 0x7460  speed 8000
[ 1005.308841]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1005.308842]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1005.309147] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[ 1005.309147]   supported 0x7460  advertising 0x7460  speed 2500
[ 1005.309148]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1005.309149]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1005.309448] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[ 1005.309448]   supported 0x7460  advertising 0x7460  speed 1000
[ 1005.309449]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1005.309450]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1005.652906] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[ 1005.732798] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[ 1005.745020] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
[ 1006.266543] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2
[ 1006.317428] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1
[ 1006.317429]   supported 0x7460  advertising 0x7460  speed 2500
[ 1006.317430]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1006.317431]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1006.317731] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1
[ 1006.317732]   supported 0x7460  advertising 0x7460  speed 8000
[ 1006.317733]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1006.317733]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1006.318031] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1
[ 1006.318031]   supported 0x7460  advertising 0x7460  speed 2500
[ 1006.318032]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1006.318033]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1006.318329] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1
[ 1006.318330]   supported 0x7460  advertising 0x7460  speed 1000
[ 1006.318331]   duplex 1  port 3  phy_address 1  transceiver 0
[ 1006.318331]   autoneg 1  maxtxpkt 0  maxrxpkt 0
[ 1006.654172] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2
[ 1006.734109] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0
[ 1006.746331] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Dmitry Kravkov Sept. 25, 2012, 1:11 p.m. UTC | #4
> -----Original Message-----

> From: Jean-Michel Hautbois [mailto:jhautbois@gmail.com]

> Sent: Tuesday, September 25, 2012 2:54 PM

> To: Dmitry Kravkov

> Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net

> Subject: Re: bnx2x: link detected up at startup even when it should be down



> After a reboot (with the added if but no netif_msg) :


I'm looking for link messages during device load.
These (get_setting/set_settings) appear at the later stages.
Will you able to load driver with module param debug=0x4 instead? So we can catch all link related messages
(This can be done via /etc/modprobe.conf)

> 

> [  998.244250] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [  998.244251]   supported 0x7460  advertising 0x7460  speed 2500

> [  998.244252]   duplex 1  port 3  phy_address 1  transceiver 0

> [  998.244252]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  998.244551] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [  998.244552]   supported 0x7460  advertising 0x7460  speed 8000

> [  998.244552]   duplex 1  port 3  phy_address 1  transceiver 0

> [  998.244553]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  998.244851] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [  998.244852]   supported 0x7460  advertising 0x7460  speed 2500

> [  998.244852]   duplex 1  port 3  phy_address 1  transceiver 0

> [  998.244853]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  998.246453] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [  998.246454]   supported 0x7460  advertising 0x7460  speed 1000

> [  998.246454]   duplex 1  port 3  phy_address 1  transceiver 0

> [  998.246455]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  998.255995] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [  998.643647] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [  998.723597] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [  998.735816] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [  999.255050] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [  999.255051]   supported 0x7460  advertising 0x7460  speed 2500

> [  999.255052]   duplex 1  port 3  phy_address 1  transceiver 0

> [  999.255052]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  999.255356] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [  999.255356]   supported 0x7460  advertising 0x7460  speed 8000

> [  999.255357]   duplex 1  port 3  phy_address 1  transceiver 0

> [  999.255358]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  999.255651] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [  999.255652]   supported 0x7460  advertising 0x7460  speed 2500

> [  999.255653]   duplex 1  port 3  phy_address 1  transceiver 0

> [  999.255653]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  999.255943] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [  999.255944]   supported 0x7460  advertising 0x7460  speed 1000

> [  999.255944]   duplex 1  port 3  phy_address 1  transceiver 0

> [  999.255945]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [  999.257380] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [  999.644969] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [  999.724909] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [  999.737130] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [ 1000.258622] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [ 1000.263951] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [ 1000.263952]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1000.263952]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1000.263953]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1000.264240] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [ 1000.264241]   supported 0x7460  advertising 0x7460  speed 8000

> [ 1000.264241]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1000.264242]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1000.264525] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [ 1000.264525]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1000.264526]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1000.264527]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1000.264815] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [ 1000.264816]   supported 0x7460  advertising 0x7460  speed 1000

> [ 1000.264816]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1000.264817]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1000.646283] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [ 1000.726224] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [ 1000.738445] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [ 1001.260013] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [ 1001.272929] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [ 1001.272930]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1001.272931]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1001.272931]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1001.273221] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [ 1001.273222]   supported 0x7460  advertising 0x7460  speed 8000

> [ 1001.273222]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1001.273223]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1001.273503] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [ 1001.273504]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1001.273505]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1001.273505]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1001.273790] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [ 1001.273790]   supported 0x7460  advertising 0x7460  speed 1000

> [ 1001.273791]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1001.273791]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1001.647598] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [ 1001.727540] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [ 1001.739762] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [ 1002.261261] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [ 1002.281715] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [ 1002.281715]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1002.281716]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1002.281717]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1002.282002] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [ 1002.282003]   supported 0x7460  advertising 0x7460  speed 8000

> [ 1002.282003]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1002.282004]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1002.282294] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [ 1002.282295]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1002.282296]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1002.282296]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1002.282583] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [ 1002.282584]   supported 0x7460  advertising 0x7460  speed 1000

> [ 1002.282584]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1002.282585]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1002.648914] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [ 1002.728852] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [ 1002.741076] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [ 1003.262650] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [ 1003.290582] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [ 1003.290583]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1003.290584]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1003.290584]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1003.290886] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [ 1003.290887]   supported 0x7460  advertising 0x7460  speed 8000

> [ 1003.290887]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1003.290888]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1003.291188] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [ 1003.291188]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1003.291189]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1003.291190]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1003.291493] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [ 1003.291494]   supported 0x7460  advertising 0x7460  speed 1000

> [ 1003.291494]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1003.291495]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1003.650229] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [ 1003.730167] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [ 1003.742391] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [ 1004.263895] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [ 1004.299670] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [ 1004.299671]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1004.299672]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1004.299673]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1004.299986] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [ 1004.299987]   supported 0x7460  advertising 0x7460  speed 8000

> [ 1004.299987]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1004.299988]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1004.300293] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [ 1004.300293]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1004.300294]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1004.300295]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1004.300600] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [ 1004.300600]   supported 0x7460  advertising 0x7460  speed 1000

> [ 1004.300601]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1004.300601]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1004.651587] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [ 1004.731481] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [ 1004.743705] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [ 1005.265285] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [ 1005.308537] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [ 1005.308538]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1005.308538]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1005.308539]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1005.308840] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [ 1005.308841]   supported 0x7460  advertising 0x7460  speed 8000

> [ 1005.308841]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1005.308842]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1005.309147] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [ 1005.309147]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1005.309148]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1005.309149]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1005.309448] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [ 1005.309448]   supported 0x7460  advertising 0x7460  speed 1000

> [ 1005.309449]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1005.309450]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1005.652906] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [ 1005.732798] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [ 1005.745020] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0

> [ 1006.266543] bnx2x: [bnx2x_set_aer_mmd:3342(eth3)]Set AER to 0x2

> [ 1006.317428] bnx2x: [bnx2x_get_settings:251(eth0)]ethtool_cmd: cmd 1

> [ 1006.317429]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1006.317430]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1006.317431]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1006.317731] bnx2x: [bnx2x_get_settings:251(eth1)]ethtool_cmd: cmd 1

> [ 1006.317732]   supported 0x7460  advertising 0x7460  speed 8000

> [ 1006.317733]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1006.317733]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1006.318031] bnx2x: [bnx2x_get_settings:251(eth2)]ethtool_cmd: cmd 1

> [ 1006.318031]   supported 0x7460  advertising 0x7460  speed 2500

> [ 1006.318032]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1006.318033]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1006.318329] bnx2x: [bnx2x_get_settings:251(eth3)]ethtool_cmd: cmd 1

> [ 1006.318330]   supported 0x7460  advertising 0x7460  speed 1000

> [ 1006.318331]   duplex 1  port 3  phy_address 1  transceiver 0

> [ 1006.318331]   autoneg 1  maxtxpkt 0  maxrxpkt 0

> [ 1006.654172] bnx2x: [bnx2x_set_aer_mmd:3342(eth1)]Set AER to 0x2

> [ 1006.734109] bnx2x: [bnx2x_set_aer_mmd:3342(eth0)]Set AER to 0x0

> [ 1006.746331] bnx2x: [bnx2x_set_aer_mmd:3342(eth2)]Set AER to 0x0
Jean-Michel Hautbois Sept. 25, 2012, 1:16 p.m. UTC | #5
2012/9/25 Dmitry Kravkov <dmitry@broadcom.com>:
>> -----Original Message-----
>> From: Jean-Michel Hautbois [mailto:jhautbois@gmail.com]
>> Sent: Tuesday, September 25, 2012 2:54 PM
>> To: Dmitry Kravkov
>> Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net
>> Subject: Re: bnx2x: link detected up at startup even when it should be down
>
>
>> After a reboot (with the added if but no netif_msg) :
>
> I'm looking for link messages during device load.
> These (get_setting/set_settings) appear at the later stages.
> Will you able to load driver with module param debug=0x4 instead? So we can catch all link related messages
> (This can be done via /etc/modprobe.conf)
>

Sorry, you said after a reboot, so I used ethtool, I tried to set
bnx2x.debug=4 in cmdline but does not seem to work...
Looking at it...
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jean-Michel Hautbois Sept. 25, 2012, 2 p.m. UTC | #6
2012/9/25 Jean-Michel Hautbois <jhautbois@gmail.com>:
> 2012/9/25 Dmitry Kravkov <dmitry@broadcom.com>:
>>> -----Original Message-----
>>> From: Jean-Michel Hautbois [mailto:jhautbois@gmail.com]
>>> Sent: Tuesday, September 25, 2012 2:54 PM
>>> To: Dmitry Kravkov
>>> Cc: netdev; Barak Witkowski; Eilon Greenstein; davem@davemloft.net
>>> Subject: Re: bnx2x: link detected up at startup even when it should be down
>>
>>
>>> After a reboot (with the added if but no netif_msg) :
>>
>> I'm looking for link messages during device load.
>> These (get_setting/set_settings) appear at the later stages.
>> Will you able to load driver with module param debug=0x4 instead? So we can catch all link related messages
>> (This can be done via /etc/modprobe.conf)
>>
>
> Sorry, you said after a reboot, so I used ethtool, I tried to set
> bnx2x.debug=4 in cmdline but does not seem to work...
> Looking at it...

Here is what I get when starting with cmdline and bnx2x.debug=4 :

[    0.000000] Command line: initrd=initrd_Diskless_full.img rw
root=/dev/ram0 ip=dhcp bnx2x.poll=1 bnx2x.debug=4 BOOT_IMAGE=vmlinuz
BOOTIF=01-80-c1-6e-7a-49-48
[    0.000000] Kernel command line: initrd=initrd_Diskless_full.img rw
root=/dev/ram0 ip=dhcp bnx2x.poll=1 bnx2x.debug=4 BOOT_IMAGE=vmlinuz
BOOTIF=01-80-c1-6e-7a-49-48
[   18.858801] bnx2x: Broadcom NetXtreme II 5771x/578xx 10/20-Gigabit
Ethernet Driver bnx2x 1.70.30-1 (2012/08/17)
[   18.858875] bnx2x 0000:04:00.0: PCI INT A -> GSI 32 (level, low) -> IRQ 32
[   18.858884] bnx2x 0000:04:00.0: setting latency timer to 64
[   18.859838] bnx2x 0000:04:00.0: part number
394D4342-31383735-31543030-47303030
[   18.860409] bnx2x 0000:04:00.0: irq 90 for MSI/MSI-X
[   18.860418] bnx2x 0000:04:00.0: irq 91 for MSI/MSI-X
[   18.860732] bnx2x 0000:04:00.0: eth0: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
ea000000, IRQ 32, node addr 80:c1:6e:7a:49:48
[   18.861031] bnx2x 0000:04:00.1: PCI INT B -> GSI 36 (level, low) -> IRQ 36
[   18.861035] bnx2x 0000:04:00.1: setting latency timer to 64
[   18.861968] bnx2x 0000:04:00.1: part number
394D4342-31383735-31543030-47303030
[   18.862540] bnx2x 0000:04:00.1: irq 92 for MSI/MSI-X
[   18.862548] bnx2x 0000:04:00.1: irq 93 for MSI/MSI-X
[   18.862816] bnx2x 0000:04:00.1: eth1: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
e8800000, IRQ 36, node addr 80:c1:6e:7a:49:4c
[   18.862848] bnx2x 0000:04:00.2: PCI INT B -> GSI 36 (level, low) -> IRQ 36
[   18.862852] bnx2x 0000:04:00.2: setting latency timer to 64
[   18.863784] bnx2x 0000:04:00.2: part number
394D4342-31383735-31543030-47303030
[   18.864347] bnx2x 0000:04:00.2: irq 94 for MSI/MSI-X
[   18.864355] bnx2x 0000:04:00.2: irq 95 for MSI/MSI-X
[   18.864628] bnx2x 0000:04:00.2: eth2: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
e7000000, IRQ 36, node addr 80:c1:6e:7a:49:49
[   18.864662] bnx2x 0000:04:00.3: PCI INT C -> GSI 37 (level, low) -> IRQ 37
[   18.864666] bnx2x 0000:04:00.3: setting latency timer to 64
[   18.865598] bnx2x 0000:04:00.3: part number
394D4342-31383735-31543030-47303030
[   18.866360] bnx2x 0000:04:00.3: irq 96 for MSI/MSI-X
[   18.866369] bnx2x 0000:04:00.3: irq 97 for MSI/MSI-X
[   18.866646] bnx2x 0000:04:00.3: eth3: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
e5800000, IRQ 37, node addr 80:c1:6e:7a:49:4d
[   18.866677] bnx2x 0000:04:00.4: PCI INT C -> GSI 37 (level, low) -> IRQ 37
[   18.866682] bnx2x 0000:04:00.4: setting latency timer to 64
[   18.867615] bnx2x 0000:04:00.4: part number
394D4342-31383735-31543030-47303030
[   18.868177] bnx2x 0000:04:00.4: irq 98 for MSI/MSI-X
[   18.868185] bnx2x 0000:04:00.4: irq 99 for MSI/MSI-X
[   18.868458] bnx2x 0000:04:00.4: eth4: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
e4000000, IRQ 37, node addr 80:c1:6e:7a:49:4a
[   18.868492] bnx2x 0000:04:00.5: PCI INT D -> GSI 38 (level, low) -> IRQ 38
[   18.868496] bnx2x 0000:04:00.5: setting latency timer to 64
[   18.869431] bnx2x 0000:04:00.5: part number
394D4342-31383735-31543030-47303030
[   18.870187] bnx2x 0000:04:00.5: irq 100 for MSI/MSI-X
[   18.870196] bnx2x 0000:04:00.5: irq 101 for MSI/MSI-X
[   18.870474] bnx2x 0000:04:00.5: eth5: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
e2800000, IRQ 38, node addr 80:c1:6e:7a:49:4e
[   18.870500] bnx2x 0000:04:00.6: PCI INT D -> GSI 38 (level, low) -> IRQ 38
[   18.870504] bnx2x 0000:04:00.6: setting latency timer to 64
[   18.871436] bnx2x 0000:04:00.6: part number
394D4342-31383735-31543030-47303030
[   18.872188] bnx2x 0000:04:00.6: irq 102 for MSI/MSI-X
[   18.872197] bnx2x 0000:04:00.6: irq 103 for MSI/MSI-X
[   18.872499] bnx2x 0000:04:00.6: eth6: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
e1000000, IRQ 38, node addr 80:c1:6e:7a:49:4b
[   18.872527] bnx2x 0000:04:00.7: PCI INT A -> GSI 32 (level, low) -> IRQ 32
[   18.872530] bnx2x 0000:04:00.7: setting latency timer to 64
[   18.873465] bnx2x 0000:04:00.7: part number
394D4342-31383735-31543030-47303030
[   18.874227] bnx2x 0000:04:00.7: irq 104 for MSI/MSI-X
[   18.874236] bnx2x 0000:04:00.7: irq 105 for MSI/MSI-X
[   18.874514] bnx2x 0000:04:00.7: eth7: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
df800000, IRQ 32, node addr 80:c1:6e:7a:49:4f
[   18.874550] bnx2x 0000:05:00.0: PCI INT A -> GSI 40 (level, low) -> IRQ 40
[   18.874554] bnx2x 0000:05:00.0: setting latency timer to 64
[   18.875488] bnx2x 0000:05:00.0: part number 0-0-0-0
[   18.876060] bnx2x 0000:05:00.0: irq 106 for MSI/MSI-X
[   18.876073] bnx2x 0000:05:00.0: irq 107 for MSI/MSI-X
[   18.876344] bnx2x 0000:05:00.0: eth8: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
f6000000, IRQ 40, node addr 2c:76:8a:59:b3:90
[   18.876377] bnx2x 0000:05:00.1: PCI INT B -> GSI 44 (level, low) -> IRQ 44
[   18.876381] bnx2x 0000:05:00.1: setting latency timer to 64
[   18.877314] bnx2x 0000:05:00.1: part number 0-0-0-0
[   18.877876] bnx2x 0000:05:00.1: irq 108 for MSI/MSI-X
[   18.877884] bnx2x 0000:05:00.1: irq 109 for MSI/MSI-X
[   18.878155] bnx2x 0000:05:00.1: eth9: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
f4800000, IRQ 44, node addr 2c:76:8a:59:b3:94
[   18.878180] bnx2x 0000:05:00.2: PCI INT B -> GSI 44 (level, low) -> IRQ 44
[   18.878184] bnx2x 0000:05:00.2: setting latency timer to 64
[   18.879121] bnx2x 0000:05:00.2: part number 0-0-0-0
[   18.879682] bnx2x 0000:05:00.2: irq 110 for MSI/MSI-X
[   18.879690] bnx2x 0000:05:00.2: irq 111 for MSI/MSI-X
[   18.879966] bnx2x 0000:05:00.2: eth10: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
f3000000, IRQ 44, node addr 2c:76:8a:59:b3:91
[   18.879991] bnx2x 0000:05:00.3: PCI INT C -> GSI 45 (level, low) -> IRQ 45
[   18.879995] bnx2x 0000:05:00.3: setting latency timer to 64
[   18.880927] bnx2x 0000:05:00.3: part number 0-0-0-0
[   18.881492] bnx2x 0000:05:00.3: irq 112 for MSI/MSI-X
[   18.881500] bnx2x 0000:05:00.3: irq 113 for MSI/MSI-X
[   18.881780] bnx2x 0000:05:00.3: eth11: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
f1800000, IRQ 45, node addr 2c:76:8a:59:b3:95
[   18.881806] bnx2x 0000:05:00.4: PCI INT C -> GSI 45 (level, low) -> IRQ 45
[   18.881810] bnx2x 0000:05:00.4: setting latency timer to 64
[   18.882743] bnx2x 0000:05:00.4: part number 0-0-0-0
[   18.883309] bnx2x 0000:05:00.4: irq 114 for MSI/MSI-X
[   18.883318] bnx2x 0000:05:00.4: irq 115 for MSI/MSI-X
[   18.883592] bnx2x 0000:05:00.4: eth12: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
f0000000, IRQ 45, node addr 2c:76:8a:59:b3:92
[   18.883628] bnx2x 0000:05:00.5: PCI INT D -> GSI 46 (level, low) -> IRQ 46
[   18.883632] bnx2x 0000:05:00.5: setting latency timer to 64
[   18.884796] bnx2x 0000:05:00.5: part number 0-0-0-0
[   18.885488] bnx2x 0000:05:00.5: irq 116 for MSI/MSI-X
[   18.885496] bnx2x 0000:05:00.5: irq 117 for MSI/MSI-X
[   18.885784] bnx2x 0000:05:00.5: eth13: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
ee800000, IRQ 46, node addr 2c:76:8a:59:b3:96
[   18.885809] bnx2x 0000:05:00.6: PCI INT D -> GSI 46 (level, low) -> IRQ 46
[   18.885813] bnx2x 0000:05:00.6: setting latency timer to 64
[   18.886747] bnx2x 0000:05:00.6: part number 0-0-0-0
[   18.887440] bnx2x 0000:05:00.6: irq 118 for MSI/MSI-X
[   18.887448] bnx2x 0000:05:00.6: irq 119 for MSI/MSI-X
[   18.887736] bnx2x 0000:05:00.6: eth14: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
ed000000, IRQ 46, node addr 2c:76:8a:59:b3:93
[   18.887761] bnx2x 0000:05:00.7: PCI INT A -> GSI 40 (level, low) -> IRQ 40
[   18.887765] bnx2x 0000:05:00.7: setting latency timer to 64
[   18.888701] bnx2x 0000:05:00.7: part number 0-0-0-0
[   18.889269] bnx2x 0000:05:00.7: irq 124 for MSI/MSI-X
[   18.889278] bnx2x 0000:05:00.7: irq 125 for MSI/MSI-X
[   18.889558] bnx2x 0000:05:00.7: eth15: Broadcom NetXtreme II
BCM57810 10 Gigabit Ethernet (B0) PCI-E x8 5GHz (Gen2) found at mem
eb800000, IRQ 40, node addr 2c:76:8a:59:b3:97
[   26.315404] bnx2x 0000:04:00.0: eth0: using MSI-X  IRQs: sp 90
fp[0] 91 ... fp[0] 91
[   26.767893] bnx2x 0000:04:00.0: eth0: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[   26.902940] bnx2x 0000:05:00.0: eth8: using MSI-X  IRQs: sp 106
fp[0] 107 ... fp[0] 107
[   27.497395] bnx2x 0000:05:00.0: eth8: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[  107.683651] bnx2x 0000:04:00.1: eth1: using MSI-X  IRQs: sp 92
fp[0] 93 ... fp[0] 93
[  108.138200] bnx2x 0000:04:00.1: eth1: NIC Link is Up, 8000 Mbps
full duplex, Flow control: ON - receive & transmit
[  108.267249] bnx2x 0000:05:00.1: eth9: using MSI-X  IRQs: sp 108
fp[0] 109 ... fp[0] 109
[  108.546115] bnx2x 0000:04:00.2: eth2: using MSI-X  IRQs: sp 94
fp[0] 95 ... fp[0] 95
[  108.563938] bnx2x 0000:04:00.2: eth2: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[  108.715802] bnx2x 0000:05:00.1: eth9: NIC Link is Up, 8000 Mbps
full duplex, Flow control: ON - receive & transmit
[  108.717056] bnx2x 0000:05:00.2: eth10: using MSI-X  IRQs: sp 110
fp[0] 111 ... fp[0] 111
[  108.742813] bnx2x 0000:05:00.2: eth10: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[  108.967781] bnx2x 0000:04:00.3: eth3: using MSI-X  IRQs: sp 96
fp[0] 97 ... fp[0] 97
[  108.985640] bnx2x 0000:04:00.3: eth3: NIC Link is Up, 1000 Mbps
full duplex, Flow control: ON - receive & transmit
[  109.138763] bnx2x 0000:05:00.3: eth11: using MSI-X  IRQs: sp 112
fp[0] 113 ... fp[0] 113
[  109.156525] bnx2x 0000:05:00.3: eth11: NIC Link is Up, 1000 Mbps
full duplex, Flow control: ON - receive & transmit
[  109.301397] bnx2x 0000:05:00.3: eth11: NIC Link is Down
[  109.378543] bnx2x 0000:04:00.4: eth4: using MSI-X  IRQs: sp 98
fp[0] 99 ... fp[0] 99
[  109.396368] bnx2x 0000:04:00.4: eth4: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[  109.553369] bnx2x 0000:05:00.4: eth12: using MSI-X  IRQs: sp 114
fp[0] 115 ... fp[0] 115
[  109.571232] bnx2x 0000:05:00.4: eth12: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[  109.795207] bnx2x 0000:04:00.5: eth5: using MSI-X  IRQs: sp 100
fp[0] 101 ... fp[0] 101
[  109.813079] bnx2x 0000:04:00.5: eth5: NIC Link is Up, 1000 Mbps
full duplex, Flow control: ON - receive & transmit
[  109.966199] bnx2x 0000:05:00.5: eth13: using MSI-X  IRQs: sp 116
fp[0] 117 ... fp[0] 117
[  109.983964] bnx2x 0000:05:00.5: eth13: NIC Link is Up, 1000 Mbps
full duplex, Flow control: ON - receive & transmit
[  110.205039] bnx2x 0000:04:00.6: eth6: using MSI-X  IRQs: sp 102
fp[0] 103 ... fp[0] 103
[  110.222802] bnx2x 0000:04:00.6: eth6: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[  110.375810] bnx2x 0000:05:00.6: eth14: using MSI-X  IRQs: sp 118
fp[0] 119 ... fp[0] 119
[  110.393678] bnx2x 0000:05:00.6: eth14: NIC Link is Up, 2500 Mbps
full duplex, Flow control: ON - receive & transmit
[  110.614756] bnx2x 0000:04:00.7: eth7: using MSI-X  IRQs: sp 104
fp[0] 105 ... fp[0] 105
[  110.632521] bnx2x 0000:04:00.7: eth7: NIC Link is Up, 10000 Mbps
full duplex, Flow control: ON - receive & transmit
[  110.785633] bnx2x 0000:05:00.7: eth15: using MSI-X  IRQs: sp 124
fp[0] 125 ... fp[0] 125
[  110.803399] bnx2x 0000:05:00.7: eth15: NIC Link is Up, 10000 Mbps
full duplex, Flow control: ON - receive & transmit
[  111.632943] bnx2x 0000:04:00.1: eth1: using MSI-X  IRQs: sp 92
fp[0] 93 ... fp[0] 93
[  111.651829] bnx2x 0000:04:00.1: eth1: NIC Link is Up, 8000 Mbps
full duplex, Flow control: ON - receive & transmit
[  111.859779] bnx2x 0000:05:00.1: eth9: using MSI-X  IRQs: sp 108
fp[0] 109 ... fp[0] 109
[  111.877664] bnx2x 0000:05:00.1: eth9: NIC Link is Up, 8000 Mbps
full duplex, Flow control: ON - receive & transmit

FYI, eth4 and eth5 are seen UP and they should be down.
JM
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
index 580b44e..dedd810 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
@@ -1769,6 +1769,7 @@  int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
         */
        if (!BP_NOMCP(bp)) {
                load_code = bnx2x_fw_command(bp, DRV_MSG_CODE_LOAD_REQ, 0);
+netdev_info(bp->dev, "bnx2x_nic_load bnx2x_fw_command
load_code=0x%08X\n",load_code);
                if (!load_code) {
                        BNX2X_ERR("MCP response failure, aborting\n");