[vortex] A 3c905B behaving strange

Antti T J Granqvist granqvis@cc.helsinki.fi
Wed Nov 13 07:08:01 2002


Hi

I am running a Linux RH7.3 on pc server 330 on my local subnet. On the
subnet is also an adsl connected Linux RH7.3 router and a windows NT4
workstation. Pc server has an on-board nic and a pci nic (3c905B, eth0),
which is currently active. Pc server also runs samba and acts as pdc.

Now, when I do filetransfers FROM nt4 to pcserver330, either through
filemanager or sftp2 those sessions hang. I found the following mailing
list thread, that fits exactly to my symptoms:
http://samba.cadcamlab.org/lists/samba/Feb2002/00411.html

I've tried following solutions without success:
- Setting parameters on 3c905B using vortex_diag and mii_diag from
http://www.scyld.com/network/vortex.html
- Enabling eth1 (on-board nic) and disabling eth0 on pcserver
- Switching pci slot for 3c905B on pcserver
- Switching pci slot for nic on the nt4 workstation

Mysteriously enough filetransfers work ok when doing between
a) the router and pcserver
b) the ntworkstation and router

Has anyone faced similar problems? Do I have to buy a ISA nic?

Btw. Any idea why the 3c905B floods ethernet at boot until Linux kernel
has initialized it?

Here is system information:
uname -a
Linux fisrv002.bittirasti.com 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT
2002 i686 unknown

parts of dmesg:
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
ahc_pci:1:4:0: Illegal cable configuration!!. Only two connectors on the
adapter may be used at a time!
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.5
        <Adaptec aic7880 Ultra SCSI adapter>
        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

scsi1 : IBM PCI ServeRAID 5.10.21  <ServeRAID>
  Vendor: IBM       Model: SERVERAID         Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: IBM       Model: SERVERAID         Rev: 1.00
  Type:   Processor                          ANSI SCSI revision: 02
  Vendor: IBM       Model: CDRM00203     !K  Rev: 8B08
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 35250176 512-byte hdwr sectors (18048 MB)
Partition check:
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 >
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 304k freed
Adding Swap: 648040k swap-space (priority -1)
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,6), internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,5), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
parport0: PC-style at 0x3bc [PCSPP,TRISTATE]
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:0e.0: 3Com PCI 3c905B Cyclone 100baseTx at 0xa000. Vers LK1.1.16
pcnet32.c:v1.27a 10.02.2002 tsbogend@alpha.franken.de
pcnet32: PCnet/PCI II 79C970A at 0x9200, warning: CSR address invalid,
    using instead PROM address of 00 60 94 0a c8 bc assigned IRQ 10.
eth1: registered as PCnet/PCI II 79C970A
pcnet32: 1 cards_found.

[root@fisrv002 root]# ./vortex-diag -aemf
vortex-diag.c:v2.09 9/18/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a 3c905B Cyclone 100baseTx adapter at 0xa000.
Initial window 4, registers values by window:
  Window 0: 0000 0000 0000 0000 0000 00bf 0000 0000.
  Window 1: 0000 0000 0000 0000 0000 0000 0000 2000.
  Window 2: 1000 985a a327 0000 0000 0000 000a 4000.
  Window 3: 0000 0200 05ea 0020 000a 0800 0728 6000.
  Window 4: 0000 0000 0000 0ed8 0001 98c0 1000 8000.
  Window 5: 1ffc 0000 0000 0600 0807 06ce 06c6 a000.
  Window 6: 0000 0000 0000 5a00 1000 1f9c 1b77 c000.
  Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.
Vortex chip registers at 0xa000
  0xA010: 00000000 00000000 00000034 00000000
  0xA020: 00000020 00000000 00080000 00000004
  0xA030: 00000000 bffe4002 122931d0 00080004
 Indication enable is 06c6, interrupt enable is 06ce.
 No interrupt sources are pending.
 Transceiver/media interfaces available:  100baseTx 10baseT.
Transceiver type in use:  10baseT.
 MAC settings: full-duplex.
 Station address set to 00:10:5a:98:27:a3.
 Configuration options 000a.
Saved EEPROM settings of a 3Com Vortex/Boomerang:
 3Com Node Address 00:10:5A:98:27:A3 (used as a unique ID only).
 OEM Station address 00:10:5A:98:27:A3 (used as the ethernet address).
  Device ID 9055,  Manufacturer ID 6d50.
  Manufacture date (MM/DD/YYYY) 9/19/1998, division 6, product QZ.
  No BIOS ROM is present.
 Options: force full duplex, link beat required.
  Vortex format checksum is incorrect (3e vs. 10b7).
  Cyclone format checksum is correct (0x56 vs. 0x56).
  Hurricane format checksum is correct (0x56 vs. 0x56).
 MII PHY found at address 24, status 784d.
 MII PHY found at address 0, status 784d.
 MII PHY 0 at #24 transceiver registers:
   3000 784d 0000 0000 01e1 0000 0004 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0080 0090 0000 0000 0005 2001 0000
   0000 2040 07cf 1c11 0111 1000 0000 0000.
 MII PHY 1 at #0 transceiver registers:
   3000 784d 0000 0000 01e1 0000 0004 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0080 0090 0000 0000 0005 2001 0000
   0000 2040 07cf 1c11 0011 1000 0000 0000.

[root@fisrv002 root]# ./mii-diag -sf
Using the default interface 'eth0'.
Basic registers of MII PHY #0:  0000 0000 0000 0000 0000 0000 0000 0000.
  No MII transceiver present!.
 Basic mode control register 0x0000: Auto-negotiation disabled, with
 Speed fixed at 10 mbps, half-duplex.
 Basic mode status register 0x0000 ... 0000.
   Link status: not established.
 Link partner information is not exchanged when in fixed speed mode.
   End of basic transceiver information.

[root@fisrv002 root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:10:5A:98:27:A3
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:45507 errors:519 dropped:0 overruns:0 frame:792
          TX packets:46697 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:32140403 (30.6 Mb)  TX bytes:7404278 (7.0 Mb)
          Interrupt:15 Base address:0xa000

eth1      Link encap:Ethernet  HWaddr 00:60:94:0A:C8:BC
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0x9200

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1456 (1.4 Kb)  TX bytes:1456 (1.4 Kb)


Regards,

Antti