[tg3] failing to detect NIC when built statically...

Daniel J Blueman
2005-09-22T08:59:59Z

I have a PCI express BCM5751 NIC using the tg3 driver. If I build the
driver statically, it fails to identify the network card - no kernel
log messages or anything. It works as expected when built modular.
Platform is x86_64 running native 64bit code.

# lspci -vvxs 2:0.0
0000:02:00.0 Ethernet controller: Broadcom Corporation NetXtreme
BCM5751 Gigabit Ethernet PCI Express (rev 01)
Subsystem: Broadcom Corporation NetXtreme BCM5751 Gigabit
Ethernet PCI Express
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0, Cache Line Size: 0x08 (32 bytes)
Interrupt: pin A routed to IRQ 201
Region 0: Memory at d0000000 (64-bit, non-prefetchable) [size=64K]
Expansion ROM at 40100000 [disabled] [size=64K]
Capabilities: [48] Power Management version 2
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: 64bit+
Queue=0/3 Enable-
Address: d258788c36d7592c Data: f7f6
Capabilities: [d0] #10 [0001]
00: e4 14 77 16 06 00 10 00 01 00 00 02 08 00 00 00
10: 04 00 00 d0 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 07 00 00 00 e4 14 77 16
30: 00 00 00 00 48 00 00 00 00 00 00 00 0c 01 00 00

Any ideas? Please CC.
___
Daniel J Blueman