Skip site navigation (1)Skip section navigation (2)
Date:      29 Jan 2003 15:42:33 +0100
From:      peter@bgnett.no (Peter N. M. Hansteen)
To:        freebsd-stable@freebsd.org
Subject:   bizarre ep (3c509-Combo) behavior: one and a half init, minimal throughput
Message-ID:  <87fzrc3tly.fsf@tosh.datadok.no>

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

After a confusing sequence of events concerning power spikes which killed
my home gateway, some shuffling of network cards was needed. 

An underused machine which for the usual reasons (SWMBO and daughter
insistence) dual boots FreeBSD 5.0-RELEASE and Win98se ended up with a
3c509-Combo card (ISA) which *almost* works. That is, after booting
into win98's 'dos mode' I was able to run the config program and set
the card to not grab IRQ11 for itself, and after a few attempts the
card at least works somewhat in win98. 

However, the card does some strange things when I boot FreeBSD. 
dmesg follows:

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003
    root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0673000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06730a8.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 499034803 Hz
CPU: AMD-K7(tm) Processor (499.03-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x612  Stepping = 2
  Features=0x81f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,MMX>
  AMD Features=0xffffffffc0400000<AMIE,DSP,3DNow!>
real memory  = 134152192 (127 MB)
avail memory = 123383808 (117 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AWARD  AWRDACPI> on motherboard
    ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
acpi0: power button is handled as a fixed feature programming model.
acpi0: sleep button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x5080-0x50ff,0x5000-0x507f,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <AMD 751 host to AGP bridge> port 0xe000-0xe003 mem 0xe0000000-0xe0000fff,0xd8000000-0xdbffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 5.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 756 ATA66 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
ohci0: <AMD-756 USB Controller> mem 0xe0001000-0xe0001fff irq 3 at device 7.4 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <AMD-756 USB Controller> on ohci0
usb0: USB revision 1.0
uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pci0: <network> at device 9.0 (no driver attached)
pci0: <multimedia, audio> at device 10.0 (no driver attached)
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
orm0: <Option ROM> at iomem 0xc0000-0xcffff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ep0: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 5 on isa0
ep0: Ethernet address 00:a0:24:ca:7c:b0
Timecounters tick every 10.000 msec
acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0%
ad0: 25941MB <WDC WD272AA> [52707/16/63] at ata0-master UDMA66
ad1: 38166MB <WDC WD400BB-00DEA0> [77545/16/63] at ata0-slave UDMA66
ata1-master: timeout waiting for cmd=ef s=00 e=00
acd0: CDROM <CREATIVE CD-RW RW4424E> at ata1-master BIOSPIO
acd1: DVD-ROM <LG DVD-ROM DRD-8160B> at ata1-slave PIO4
Mounting root from ufs:/dev/ad1s1a
module_register: module pccard/ep already exists!
Module pccard/ep failed to register: 17
module_register: module isa/ep already exists!
Module isa/ep failed to register: 17
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ep1: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 5 on isa0
ep1: No I/O space?!
ep1: ep_alloc() failed! (6)
device_probe_and_attach: ep1 attach returned 6
acpi_tz0: WARNING - current temperature (39.0C) exceeds system limits


Note that the card is recognized first as

ep0: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 5 on isa0
ep0: Ethernet address 00:a0:24:ca:7c:b0

then once more as 

ep1: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 5 on isa0
ep1: No I/O space?!
ep1: ep_alloc() failed! (6)

There is only one network card in the machine, I promise!

The network card at ep0 is then initialized normally, but the network
response is extremely slow, taking literally minutes to scp a small file
like the dmesg above to another machine across a 10Mbit ethernet.

The card performed reasonably as the inner interface on the (now
deceased) gateway running Debian, and the machine and cables in
question performed just fine with another 3com card (the xl
persuation) which was needed more urgently elsewhere and various
FreeBSD releases plus win98 when necessary.

I'm unsure if the real problem is that this card needs some not very
widely known special pampering or if it is more likely that the card
was actually damaged by the power irregularity even if the diagnostic
programs from 3com do not turn up anything.

Any advice on how to proceed would be much appreciated, although
swapping the card for another one (preferably some PCI card or other)
would perhaps be a saner option than fighting with ISA cards these
days.

- P
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/	http://www.datadok.no/


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87fzrc3tly.fsf>