Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 1999 20:18:21 +0200
From:      "D. Rock" <rock@dead-end.net>
To:        current@freebsd.org
Subject:   RealTek 8139 problems
Message-ID:  <37C827ED.2CD4CE5@dead-end.net>

next in thread | raw e-mail | index | archive | help
Hi,

I get some strange networking results with my RealTek 8139 card. I
don't know how long these problems exist in the kernel, because they
only showed up after some change in my network setup.

I got a third PC for testing and now needed a hub to connect all my
PCs together. I used to have an UTP x-over cable and this setup worked
Ok. Now I hooked the 3 PCs together with an 10/100 MBit Hub.
This is now my configuration:
PC 1: 	RealTek 8139
PC 2:	Intel EtherEpress Pro 100B
PC 3: 	RealTek 8029			(the new machine)

PC 1 and PC 3 are running FreeBSD, PC 2 usually runs Windows 98, but
I could also boot Solaris for testing.

Under normal Circumstances, the communication is Ok between all three
machines, but sometimes the ethernet interface in the main machine
(the 8139) wedges up. I cannot ping any other host. The only solution
is taking the interface down and up again:
ifconfig rl0 down; ifconfig rl0 up
Enabling/disabling promiscuous mode also seems to help.

I first thought it was a faulty hub, so I hooked up two PCs (RealTek
8139 + RealTek 8029) with the Xover cable again. But the problem
persists. So the Hub seems to be Ok.

There seem also to be plenty of mbufs available. netstat -m:
64/3808 mbufs in use:
	56 mbufs allocated to data
	8 mbufs allocated to packet headers
1/48/512 mbuf clusters in use (current/peak/max)
572 Kbytes allocated to network (1% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

I finally managed to easily reproduce the behaviour. Just run two
flood pings to the same machine at once.

Interesting, that I have to flood ping PC 3 (10BaseT) to wedge up
the machine. If I ping PC 2, nothing spectacular happens.

The Driver does proper autonegotiation, but also changing the media
manually to the correct values (media 100baseTX mediaopt half-duplex)
doesn't help.

Thanks for any hints.

Daniel


Some comments to the dmesg output below:
I have disabled the secondary serial port, so every device should
get its own IRQ.

Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #316: Tue Aug 24 23:58:54 CEST 1999
    root@server:/usr/src/sys/compile/ROCK
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x580  Stepping = 0
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
  AMD Features=0x80000800<SYSCALL,3DNow!>
real memory  = 134152192 (131008K bytes)
avail memory = 126906368 (123932K bytes)
Preloaded elf kernel "kernel" at 0xc0316000.
VESA: v2.0, 8192k memory, flags:0x1, mode table:0xc02bed22 (1000022)
VESA: Matrox Graphics Inc.
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: <AcerLabs M1541 (Aladdin-V) PCI host bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <AcerLabs M5243 PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vga-pci0: <Matrox model 1001 graphics accelerator> irq 11 at device 0.0
on pci1
isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
ncr0: <ncr 53c815 fast10 scsi> irq 11 at device 8.0 on pci0
pci0: unknown card DPZ0002 (vendor=0x121a, dev=0x0002) at 9.0
rl0: <RealTek 8139 10/100BaseTX> irq 3 at device 10.0 on pci0
rl0: Ethernet address: 00:e0:7d:02:8b:39
rl0: autoneg complete, link status good (half-duplex, 100Mbps)
ata-pci0: <AcerLabs Aladdin IDE controller> irq 0 at device 15.0 on pci0
ata-pci0: Busmastering DMA supported
ata0 at 0x01f0 irq 14 on ata-pci0
ata1 at 0x0170 irq 15 on ata-pci0
Probing for PnP devices:
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on
isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sb0 at port 0x220 irq 5 drq 1 on isa0
snd0: <SoundBlaster 16 4.13> 
sbxvi0 at port 0xffffffff drq 5 on isa0
isa_compat: didn't get ports for sbxvi
snd0: <SoundBlaster 16 4.13> 
WARNING: "snd" is usurping "snd"'s cdevsw[]
sbmidi0 at port 0x330 on isa0
snd0: <SoundBlaster MPU-401> 
WARNING: "snd" is usurping "snd"'s cdevsw[]
awe0 at port 0x620 on isa0
awe0: <SoundBlaster EMU8000 MIDI (RAM2048k)>
WARNING: "snd" is usurping "snd"'s cdevsw[]
opl0 at port 0x388 on isa0
snd0: <Yamaha OPL3 FM> 
WARNING: "snd" is usurping "snd"'s cdevsw[]
isic0 at port 0x340 irq 10 flags 0x4 on isa0
isic0: AVM A1 or AVM Fritz!Card
isic0: ISAC 2085 Version A1/A2 or 2086/2186 Version 1.1 (IOM-2)
(Addr=0x1720)
isic0: HSCX 82525 or 21525 Version 2.1 (AddrA=0x720, AddrB=0xf20)
ppc0 at port 0x378-0x37f irq 7 drq 3 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/1 bytes threshold
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
IP packet filtering initialized, divert enabled, rule-based forwarding
disabled, default to accept, unlimited logging
DUMMYNET initialized (990811)
i4b: ISDN call control device attached
i4bisppp: 1 ISDN SyncPPP device(s) attached
i4bctl: ISDN system control port attached
i4btel: 1 ISDN telephony interface device(s) attached
i4brbch: 1 raw B channel access device(s) attached
i4btrc: 1 ISDN trace device(s) attached
ata0: master: setting up UDMA2 mode on Aladdin chip OK
ad0: <ST34321A/3.29> ATA-4 disk at ata0 as master
ad0: 4103MB (8404830 sectors), 8894 cyls, 15 heads, 63 S/T, 512 B/S
ad0: piomode=4, dmamode=2, udmamode=2
ad0: 16 secs/int, 0 depth queue, DMA mode
ata1: master: setting up UDMA2 mode on Aladdin chip OK
ad1: <IBM-DTTA-351010/T56OA73A> ATA-4 disk at ata1 as master
ad1: 9671MB (19807200 sectors), 19650 cyls, 16 heads, 63 S/T, 512 B/S
ad1: piomode=4, dmamode=2, udmamode=2
ad1: 16 secs/int, 31 depth queue, DMA mode
Waiting 2 seconds for SCSI devices to settle
sa0 at ncr0 bus 0 target 4 lun 0
sa0: <ARCHIVE VIPER 150  21247 -005> Removable Sequential Access
SCSI-CCS device 
sa0: 3.300MB/s transfers
changing root device to wd0s1a
cd0 at ncr0 bus 0 target 6 lun 0
cd0: <PIONEER CD-ROM DR-U06S 1.05> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 8)
cd0: Attempt to query device size failed: NOT READY, Medium not present
da5 at ncr0 bus 0 target 5 lun 0
da5: <IOMEGA ZIP 100 E.08> Removable Direct Access SCSI-2 device 
da5: 3.300MB/s transfers
da5: Attempt to query device size failed: NOT READY, Medium not present
i4b: unit 0, assigned TEI = 111 = 0x6f


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37C827ED.2CD4CE5>