From owner-freebsd-current Sat Aug 28 11:18:53 1999 Delivered-To: freebsd-current@freebsd.org Received: from dead-end.net (dead-end.net [216.15.131.2]) by hub.freebsd.org (Postfix) with ESMTP id 8030B14CFC for ; Sat, 28 Aug 1999 11:18:43 -0700 (PDT) (envelope-from rock@dead-end.net) Received: from dead-end.net (p3E9C367E.dip.t-dialin.net [62.156.54.126]) by dead-end.net (8.9.3/DEAD-END/1999022000) with ESMTP id UAA91228 for ; Sat, 28 Aug 1999 20:17:56 +0200 (CEST) (envelope-from rock@dead-end.net) Message-ID: <37C827ED.2CD4CE5@dead-end.net> Date: Sat, 28 Aug 1999 20:18:21 +0200 From: "D. Rock" X-Mailer: Mozilla 4.6 [de] (Win98; U) X-Accept-Language: de MIME-Version: 1.0 To: current@freebsd.org Subject: RealTek 8139 problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 AMD Features=0x80000800 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: on motherboard npx0: INT 16 interface apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vga-pci0: irq 11 at device 0.0 on pci1 isab0: at device 7.0 on pci0 isa0: on isab0 ncr0: irq 11 at device 8.0 on pci0 pci0: unknown card DPZ0002 (vendor=0x121a, dev=0x0002) at 9.0 rl0: 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: 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: at port 0x60-0x6f on isa0 atkbd0: irq 1 on atkbdc0 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 vga0: at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> fdc0: 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: sbxvi0 at port 0xffffffff drq 5 on isa0 isa_compat: didn't get ports for sbxvi snd0: WARNING: "snd" is usurping "snd"'s cdevsw[] sbmidi0 at port 0x330 on isa0 snd0: WARNING: "snd" is usurping "snd"'s cdevsw[] awe0 at port 0x620 on isa0 awe0: WARNING: "snd" is usurping "snd"'s cdevsw[] opl0 at port 0x388 on isa0 snd0: 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: on ppbus 0 lpt0: Interrupt-driven port ppi0: 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: 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: 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: 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: 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: 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