[vortex-bug] Need help with the 3c59x driver with kernel 2.4.
0 - 2
Amit Chaudhary
amitc@brocade.com
Fri, 2 Feb 2001 13:52:10 -0800
Hello Andrew and others,
Thansk for the pointer. I compiled and installed the 2.4.1 kernel with the default 3c59x.c replaced by the one mentioned below. The earlier error is gone, but I cannot ping the gateway and beyond. Also, note the same settings work for others linux PCs(none has the same card on linux) on the same floor and have been confirmed by our IT.
Incase you believe the card is now ok, please confirm and I will work on the configs. The usual file outputs are below. Do email, if more inputs are required
Thanks and Regards
Amit
---------------------------------------------------------------
The various outputs after the following sequence of commands
$ifconfig eth0 down
$rmmod 3c59x
$insmod 3c59x debug=7
output from insmod
Using /lib/modules/2.4.1/kernel/drivers/net/3c59x.o
PCI: Found IRQ 11 for device 00:0f.0
PCI: The same IRQ used for device 00:05.2
PCI: The same IRQ used for device 00:0c.0
#/etc/init.d/network restart
$ping 192.168.198.1
PING 192.168.198.1 (192.168.198.1) from 192.168.198.232 : 56(84) bytes of data.
>From amitc-linux.brocade.com (192.168.198.232): Destination Host Unreachable
>From amitc-linux.brocade.com (192.168.198.232): Destination Host Unreachable
>From amitc-linux.brocade.com (192.168.198.232): Destination Host Unreachable
--- 192.168.198.1 ping statistics ---
4 packets transmitted, 0 packets received, +3 errors, 100% packet loss
---------------------------------------------------------------
dmesg contains a lot of following:
eth0: interrupt, status e401, latency 3 ticks.
eth0: In interrupt loop, status e401.
boomerang_interrupt->boomerang_rx
boomerang_rx(): status e001
Receiving packet size 60 status 803c.
eth0: exiting interrupt, status e000.
boomerang_interrupt. status=0xe401
eth0: interrupt, status e401, latency 3 ticks.
eth0: In interrupt loop, status e401.
boomerang_interrupt->boomerang_rx
boomerang_rx(): status e001
Receiving packet size 60 status 803c.
eth0: exiting interrupt, status e000.
---------------------------------------------------------------
vortex-diag.c:v2.04 1/8/2001 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a 3c905C Tornado 100baseTx adapter at 0xfd80.
The Vortex chip may be active, so FIFO registers will not be read.
To see all register values use the '-f' flag.
Initial window 7, registers values by window:
Window 0: 0000 0000 0000 0000 fdfd 00bf ffff 0000.
Window 1: FIFO FIFO 0700 0000 0000 003f 0000 2000.
Window 2: 0000 8239 2d43 0000 0000 0000 0002 4000.
Window 3: 0000 0180 05ea 0020 000a 0800 0800 6000.
Window 4: 0000 0000 0000 0cf6 0001 8880 0000 8000.
Window 5: 1ffc 0000 0000 0600 0807 06ce 06c6 a000.
Window 6: 0000 0000 0000 2f00 0000 11d6 0000 c000.
Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.
Vortex chip registers at 0xfd80
0xFD90: **FIFO** 00000000 0000000a *STATUS*
0xFDA0: 00000020 00000000 00080000 00000004
0xFDB0: 00000000 29a6d65a 077c1020 00080004
Indication enable is 06c6, interrupt enable is 06ce.
No interrupt sources are pending.
Transceiver/media interfaces available: 100baseTx 10baseT.
Transceiver type in use: Autonegotiate.
MAC settings: full-duplex.
Station address set to 00:00:39:82:43:2d.
Configuration options 0002.
EEPROM contents (64 words, offset 0):
0x000: 0000 3982 432d 9200 0000 0000 0000 0000
0x008: 2940 0000 0000 3982 432d 8010 0000 00aa
0x010: 72a2 0000 0000 0180 0000 0000 0000 1179
0x018: 0001 000a 0000 2900 ff6b 6b6b 0000 0000
0x020: 0000 ffff fff0 0000 0000 0000 0000 0000
0x028: 0000 0000 0000 0000 0000 0000 0000 0000
0x030: ffff ffff ffff ffff ffff ffff ffff ffff
0x038: ffff ffff ffff ffff ffff ffff ffff ffff
The word-wide EEPROM checksum is 0x4eb3.
Parsing the EEPROM of a 3Com Vortex/Boomerang:
3Com Node Address 00:00:39:82:43:2D (used as a unique ID only).
OEM Station address 00:00:39:82:43:2D (used as the ethernet address).
Manufacture date (MM/DD/YYYY) 0/0/2000, division
---------------------------------------------------------------
mii-diag.c:v2.00 4/19/2000 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
MII PHY #24 transceiver registers:
3000 782d 0040 6174 05e1 41e1 0003 0000
0000 0000 0000 0000 0000 0000 0000 0000
1000 0301 0000 0000 0000 0f17 0100 0000
003f f53e 0f00 ff40 002f 0000 80a0 000b.
Basic mode control register 0x3000: Auto-negotiation enabled.
You have link beat, and everything is working OK.
This transceiver is capable of 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Able to perform Auto-negotiation, negotiation complete.
Your link partner advertised 41e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
MII PHY #24 transceiver registers:
3000 782d 0040 6174 05e1 41e1 0003 0000
0000 0000 0000 0000 0000 0000 0000 0000
1000 0300 0000 0000 0000 0229 0200 0000
003f 853e 0f00 ff40 002f 0000 80a0 000b.
Basic mode control register 0x3000: Auto-negotiation enabled.
Basic mode status register 0x782d ... 782d.
Link status: established.
Capable of 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Able to perform Auto-negotiation, negotiation complete.
Vendor ID is 00:10:18:--:--:--, model 23 rev. 4.
No specific information is known about this transceiver type.
I'm advertising 05e1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD 10baseT
Advertising no additional info pages.
IEEE 802.3 CSMA/CD protocol.
Link partner capability is 41e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Negotiation completed.
---------------------------------------------------------------
/var/log/messages
Feb 2 13:16:54 amitc-linux kernel: PCI: Found IRQ 11 for device 00:0f.0
Feb 2 13:16:54 amitc-linux kernel: PCI: The same IRQ used for device 00:05.2
Feb 2 13:16:54 amitc-linux kernel: PCI: The same IRQ used for device 00:0c.0
Feb 2 13:16:54 amitc-linux kernel: 3c59x.c:LK1.1.13 27 Jan 2001 Donald Becker and others. http://www.scyld.com/network/vortex.html
Feb 2 13:16:54 amitc-linux kernel: See Documentation/networking/vortex.txt
Feb 2 13:16:54 amitc-linux kernel: eth0: 3Com PCI 3c905C Tornado at 0xfd80, 00:00:39:82:43:2d, IRQ 11
Feb 2 13:16:54 amitc-linux kernel: product code 0000 rev 00.11 date 00-00-00
Feb 2 13:16:54 amitc-linux kernel: Full duplex capable
Feb 2 13:16:54 amitc-linux kernel: 8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
Feb 2 13:16:54 amitc-linux kernel: MII transceiver found at address 24, status 782d.
Feb 2 13:16:54 amitc-linux kernel: 3c59x: Wake-on-LAN functions disabled
Feb 2 13:16:54 amitc-linux kernel: Enabling bus-master transmits and whole-frame receives.
Feb 2 13:16:54 amitc-linux kernel: eth0: scatter/gather enabled. h/w checksums enabled
Feb 2 13:19:03 amitc-linux sysctl: net.ipv4.ip_forward = 0
Feb 2 13:19:03 amitc-linux sysctl: net.ipv4.conf.all.rp_filter = 1
Feb 2 13:19:03 amitc-linux sysctl: kernel.sysrq = 0
Feb 2 13:19:03 amitc-linux sysctl: error: 'net.ipv4.ip_always_defrag' is an unknown key
Feb 2 13:19:03 amitc-linux network: Setting network parameters: succeeded
Feb 2 13:19:03 amitc-linux network: Bringing up interface lo: succeeded
Feb 2 13:19:03 amitc-linux kernel: eth0: using NWAY autonegotiation
Feb 2 13:19:03 amitc-linux kernel: eth0: MII #24 status 782d, link partner capability 41e1, setting full-duplex.
Feb 2 13:19:03 amitc-linux network: Bringing up interface eth0: succeeded
---------------------------------------------------------------
lspci -v
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 03)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Flags: bus master, medium devsel, latency 64
Memory at e0000000 (32-bit, prefetchable) [size=128M]
Capabilities: [a0] AGP version 1.0
00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
Memory behind bridge: f0000000-f7ffffff
00:03.0 ISA bridge: Toshiba America Info Systems: Unknown device 0611 (rev 51)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Flags: slow devsel
00:05.0 Bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0
00:05.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 64
I/O ports at fff0 [size=16]
00:05.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at ff80 [size=32]
00:05.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 03)
Flags: medium devsel
00:07.0 Communication controller: Lucent Microelectronics 56k WinModem (rev 01)
Subsystem: Toshiba America Info Systems Internal V.90 Modem
Flags: bus master, medium devsel, latency 0, IRQ 3
Memory at ffefff00 (32-bit, non-prefetchable) [size=256]
I/O ports at 02f8 [size=8]
I/O ports at 1c00 [size=256]
Capabilities: [f8] Power Management version 2
00:09.0 IRDA controller: Toshiba America Info Systems FIR Port Type-DO
Subsystem: Toshiba America Info Systems FIR Port Type-DO
Flags: bus master, slow devsel, latency 64, IRQ 11
I/O ports at ff60 [size=32]
Capabilities: [80] Power Management version 2
00:0c.0 Multimedia audio controller: Yamaha Corporation YMF-744B [DS-1S Audio Controller] (rev 02)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at efff8000 (32-bit, non-prefetchable) [size=32K]
I/O ports at ff00 [size=64]
I/O ports at fefc [size=4]
Capabilities: [50] Power Management version 1
00:0f.0 Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (rev 6c)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at fd80 [size=128]
Memory at efff7f80 (32-bit, non-prefetchable) [size=128]
Expansion ROM at effc0000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
01:00.0 VGA compatible controller: S3 Inc. 86C270-294 Savage/MX-/IX (rev 11) (prog-if 00 [VGA])
Subsystem: Toshiba America Info Systems: Unknown device 0001
Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 11
Memory at f0000000 (32-bit, non-prefetchable) [size=128M]
Expansion ROM at 000c0000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 1
Capabilities: [80] AGP version 1.0
---------------------------------------------------------------
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:00:39:82:43:2D
inet addr:192.168.198.232 Bcast:192.168.198.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1598 errors:0 dropped:0 overruns:1 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xfd80
---------------------------------------------------------------
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME="amitc-linux"
GATEWAY="192.168.198.1"
GATEWAYDEV="eth0"
NISDOMAIN="brocade.com"
YPSERVER="nisslave1"
FORWARD_IPV4="no"
---------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
ONBOOT="yes"
IPADDR="192.168.198.232"
NETMASK=""
BOOTPROTO="none"
---------------------------------------------------------------
/etc/resolve.conf
domain brocade.com
search brocade.com
nameserver 192.168.126.60
nameserver 192.168.126.61
---------------------------------------------------------------
/etc/hosts
127.0.0.1 localhost
192.168.198.232 amitc-linux.brocade.com amitc-linux
192.168.1.10 mail01
192.168.126.100 nisslave1
---------------------------------------------------------------
lsmod
Module Size Used by
3c59x 24600 1
vfat 11396 1 (autoclean)
fat 32728 0 (autoclean) [vfat]
-----Original Message-----
From: Andrew Morton [mailto:andrewm@uow.edu.au]
Sent: Friday, February 02, 2001 3:01 AM
To: Amit Chaudhary
Cc: vortex-bug@scyld.com
Subject: Re: [vortex-bug] Need help with the 3c59x driver with kernel
2.4.0 - 2
Amit Chaudhary wrote:
>
> Feb 1 18:56:50 amitc-linux kernel: ***WARNING*** No MII transceivers found!
That will be a 3c905CX.
Fixes were made in the 2.4.1-pre3 driver. I suggest you go
to kernel 2.4.1, or replace your existing 3c59x.c with
http://www.uow.edu.au/~andrewm/linux/3c59x.c-2.4.1-1.gz
Please let us know how it goes.
Thanks.