[vortex] 3c905CX-TXM
Berkan Eskikaya
berkan@runtime-collective.com
Fri, 24 Nov 2000 11:37:59 +0000
On Fri, Nov 24, 2000 at 21:58, Andrew Morton wrote:
> Incidentally, we still don't know what's going on with Berkan's NIC.
> I can certainly understand it going wierd if the initialisation
> isn't waiting long enough for the RxReset to complete. But it should
> have worked with 3c90x.c because that driver uses a 1-second
> timeout.
>
> Berkan, could I suggest that you go back to the original driver (0.99Ra)
> and increase all the loop counts? Just do a search for 'CmdInProgress'
> and replace all the magical constants (2000, 200, 600) to 2000000 and see
> if it starts working.
OK, I've changed all the magical constants to 2000000. Still no link beat
until I did a 'mii-diag -p 24 eth1' as Bogdan suggested yesterday. And like
yesterday, it reports link beat afterwards, but I still cannot ping
anywhere.
Berkan
$ insmod pci-scan.o debug=7
$ insmod 3c59x.o debug=7
$ ifconfig eth1 11.0.0.1 netmask 255.255.255.0 up
$ dmesg
[...]
3c59x.c:v0.99Ra 8/7/2000 Donald Becker, becker@scyld.com
http://www.scyld.com/network/vortex.html
PCI ID 920010b7 subsystem ID is 100010b7.
Found 3c905C Tornado at PCI address 0xc001, mapped IRQ 10.
eth1: 3Com 3c905C Tornado at 0xc000, 00:01:03:23:f5:b7, IRQ 10
Internal config register is 1800000, transceivers 0xa.
8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
MII transceiver found at address 1, status 24.
MII transceiver found at address 2, status 24.
Enabling bus-master transmits and whole-frame receives.
PCI ID 12111113 subsystem ID is 92111113.
eth1: Initial media type Autonegotiate half-duplex.
eth1: MII #1 status 0024, link partner capability 40a1, setting half-duplex.
eth1: vortex_open() irq 10 media status 8000.
$ ping 11.0.0.2
PING 11.0.0.2 (11.0.0.2): 56 data bytes
--- 11.0.0.2 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
$ mii-diag eth1
Basic registers of MII PHY #1: 0000 0020 0000 0000 01e0 40a1 0003 0800.
Basic mode control register 0x0000: Auto-negotiation disabled, with
Speed fixed at 10 mbps, half-duplex.
Basic mode status register 0x0020 ... 0020.
Link status: not established.
Your link partner advertised 40a1: 100baseTx 10baseT.
$ mii-diag -p 24 eth1
Using the specified MII PHY index 24.
Basic registers of MII PHY #24: 3000 7829 0041 6800 05e1 40a1 0007 2801.
Basic mode control register 0x3000: Auto-negotiation enabled.
Basic mode status register 0x7829 ... 782d.
Link status: previously broken, but now reestablished.
Your link partner advertised 40a1: 100baseTx 10baseT.
$ mii-diag -p 24 eth1
Using the specified MII PHY index 24.
Basic registers of MII PHY #24: 3000 782d 0041 6800 05e1 40a1 0007 2801.
Basic mode control register 0x3000: Auto-negotiation enabled.
You have link beat, and everything is working OK.
Your link partner advertised 40a1: 100baseTx 10baseT.
$ ping 11.0.0.2
PING 11.0.0.2 (11.0.0.2): 56 data bytes
--- 11.0.0.2 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss