Subject: Re: NE2000 ethernet (was: A clearer explanation...)
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Richard Rauch <rauch@rice.edu>
List: port-i386
Date: 06/04/2002 02:22:23
> > Re. http://mail-index.netbsd.org/port-i386/2002/06/02/0006.html
> >
> > I have an NE2000 PCIMCIA 10/100 card in my laptop.  If memory serves, ne1
> > and ne2 both get mentioned in dmesg, but only one is actually configured
> > (why ne0 never, ever shows up is a mystery).
 [...]
> > On a cold boot, the card really gets bound to ne2.  It literally
> > alternates from ne2 to ne1 and back again on successive warm boots.  WHen
 [...]
>
> Can you send dmesg messages, when it probed as ne1, and when it's probed
> as ne2 ?

Okay, for the sake of posterity of the list, I'll include the full dmesg.
(Disinterested parties should skip/delete.  (^&)  I also warmbooted again,
and diff'ed the second warmboot against the coldboot dmesg.  Those dmesg's
were identical.  Below are the complete dmesg's, coldboot first.

Oh, one minor correction: ne1 does *not* seem to be mentioned on
``functioning'' (ethernet-wise) boots.  ne1 and ne2 both get mentioned on
the alternate boots.


 /~~~ coldboot

NetBSD 1.5.2 (GENERICrauch) #1: Sun Nov 18 08:49:43 PST 2001
    root@rauch.rice.edu:/usr/src/sys/arch/i386/compile/GENERICrauch
cpu0: Intel Pentium/MMX (Tillamook) (586-class), 233.87 MHz
total memory = 127 MB
avail memory = 114 MB
using 1659 buffers containing 6636 KB of memory
BIOS32 rev. 0 found at 0xf5e30
mainbus0 (root)
pnpbios0 at mainbus0: code f0000, data f0000, entry 4699, control 1 eventp faf8c
pnpbios0: nodes 18, max len 118
PNP0C02 (mem fffe0000-ffffffff, io 80 b2-b3 74-75 398-399 372-373 2180-219f) at pnpbios0 index 0 ignored
PNP0C01 (mem 0-9ffff dc000-fffff 100000-7ffffff) at pnpbios0 index 1 ignored
PNP0C02 (io 4d0-4d1 8000-803f) at pnpbios0 index 2 ignored
wss0 at pnpbios0 index 3 (NMX2210)
wss0: io 220-22f 530-537 388-38f 330-331 370-371, irq 11, dma 0 1
wss0: CS4231 or AD1845
audio0 at wss0: full duplex, mmap
opl0 at wss0: model OPL3
midi0 at opl0: WSS Yamaha OPL3
NMX2220 (io 201) at pnpbios0 index 4 ignored
PNP0A03 (io cf8-cff) at pnpbios0 index 5 ignored
PNP0200 (io 0-f 81-8f c0-df, dma 4) at pnpbios0 index 6 ignored
PNP0000 (io 20-21 a0-a1, irq 2) at pnpbios0 index 7 ignored
PNP0100 (io 40-43, irq 0) at pnpbios0 index 8 ignored
PNP0B00 (io 70-71, irq 8) at pnpbios0 index 9 ignored
PNP0303 (io 60 64, irq 1) at pnpbios0 index 10 ignored
PNP0C04 (io f0-ff, irq 13) at pnpbios0 index 11 ignored
PNP0800 (io 61) at pnpbios0 index 12 ignored
PNP0F13 (irq 12) at pnpbios0 index 13 ignored
PNP0501 (io 3f8-3ff, irq 4) at pnpbios0 index 14 ignored
PNP0510 (io 2f8-2ff, irq 3, dma 3) at pnpbios0 index 15 ignored
PNP0401 (io 378-37f 778-77a, irq 7) at pnpbios0 index 16 ignored
PNP0700 (io 3f0-3f5 3f7, irq 6, dma 2) at pnpbios0 index 17 ignored
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
vga1 at pci0 dev 2 function 0: Neomagic MagicGraph 128XD (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK227A-41>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <UJDA110, , 1.21> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 1
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: can't map i/o space
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 0 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has no sockets
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
apm0 at mainbus0: Power Management spec V1.2
biomask e765 netmask e765 ttymask f7e7
pcic0: controller 0 detecting irqs with mask 0xdeb8:..5..9
pcic0: using irq 5 for socket events
IPsec: Initialized Security Association Processing.
pcmcia0: CIS version unknown (major=1, minor=0)
pcmcia0: CIS info: PCMCIA, 10/100 Ethernet Card, ,
pcmcia0: Manufacturer code 0x8a01, product 0xc1ab
pcmcia0: function 0: network adapter, ccr addr 3c0 mask 63
pcmcia0: function 0, config table entry 7: I/O card; irq mask ffff; iomask a, iospace 300-31f; mwait_required io16 irqlevel
ne2 at pcmcia0 function 0 port 0x300-0x30f port 0x310-0x31f
ne2: LAN iobase 0x300 (0x300) -> 0x300
ne2: Melco LPC3-TX (AX88190) Ethernet
ne2: Ethernet address 00:02:dd:77:2b:1d
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
pcmcia0: card irq 9
ne2: LAN iobase 0x300 (0x300) -> 0x300
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0

 \___ coldboot


 /~~~ warmboot 1

NetBSD 1.5.2 (GENERICrauch) #1: Sun Nov 18 08:49:43 PST 2001
    root@rauch.rice.edu:/usr/src/sys/arch/i386/compile/GENERICrauch
cpu0: Intel Pentium/MMX (Tillamook) (586-class), 233.87 MHz
total memory = 127 MB
avail memory = 114 MB
using 1659 buffers containing 6636 KB of memory
BIOS32 rev. 0 found at 0xf5e30
mainbus0 (root)
pnpbios0 at mainbus0: code f0000, data f0000, entry 4699, control 1 eventp faf8c
pnpbios0: nodes 18, max len 118
PNP0C02 (mem fffe0000-ffffffff, io 80 b2-b3 74-75 398-399 372-373 2180-219f) at pnpbios0 index 0 ignored
PNP0C01 (mem 0-9ffff dc000-fffff 100000-7ffffff) at pnpbios0 index 1 ignored
PNP0C02 (io 4d0-4d1 8000-803f) at pnpbios0 index 2 ignored
wss0 at pnpbios0 index 3 (NMX2210)
wss0: io 220-22f 530-537 388-38f 330-331 370-371, irq 11, dma 0 1
wss0: CS4231 or AD1845
audio0 at wss0: full duplex, mmap
opl0 at wss0: model OPL3
midi0 at opl0: WSS Yamaha OPL3
NMX2220 (io 201) at pnpbios0 index 4 ignored
PNP0A03 (io cf8-cff) at pnpbios0 index 5 ignored
PNP0200 (io 0-f 81-8f c0-df, dma 4) at pnpbios0 index 6 ignored
PNP0000 (io 20-21 a0-a1, irq 2) at pnpbios0 index 7 ignored
PNP0100 (io 40-43, irq 0) at pnpbios0 index 8 ignored
PNP0B00 (io 70-71, irq 8) at pnpbios0 index 9 ignored
PNP0303 (io 60 64, irq 1) at pnpbios0 index 10 ignored
PNP0C04 (io f0-ff, irq 13) at pnpbios0 index 11 ignored
PNP0800 (io 61) at pnpbios0 index 12 ignored
PNP0F13 (irq 12) at pnpbios0 index 13 ignored
PNP0501 (io 3f8-3ff, irq 4) at pnpbios0 index 14 ignored
PNP0510 (io 2f8-2ff, irq 3, dma 3) at pnpbios0 index 15 ignored
PNP0401 (io 378-37f 778-77a, irq 7) at pnpbios0 index 16 ignored
PNP0700 (io 3f0-3f5 3f7, irq 6, dma 2) at pnpbios0 index 17 ignored
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
vga1 at pci0 dev 2 function 0: Neomagic MagicGraph 128XD (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK227A-41>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <UJDA110, , 1.21> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 1
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: can't map i/o space
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 0 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 1 not configured
isa0 at pcib0
ne1 at isa0 port 0x300-0x31f irq 10
ne1: NE2000 Ethernet
ne1: Ethernet address 00:02:dd:77:2b:1d
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has no sockets
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
apm0 at mainbus0: Power Management spec V1.2
biomask e365 netmask e765 ttymask f7e7
pcic0: controller 0 detecting irqs with mask 0xdeb8:..5..9
pcic0: using irq 5 for socket events
IPsec: Initialized Security Association Processing.
pcmcia0: CIS version unknown (major=1, minor=0)
pcmcia0: CIS info: PCMCIA, 10/100 Ethernet Card, ,
pcmcia0: Manufacturer code 0x8a01, product 0xc1ab
pcmcia0: function 0: network adapter, ccr addr 3c0 mask 63
pcmcia0: function 0, config table entry 7: I/O card; irq mask ffff; iomask a, iospace 300-31f; mwait_required io16 irqlevel
ne2 at pcmcia0 function 0: can't allocate i/o space 300; ignored
ne2: no suitable config entry
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
ne1: device timeout
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
arpresolve: can't allocate llinfo
ne1: device timeout

 \___ warmboot 1


  ``I probably don't know what I'm talking about.'' --rauch@math.rice.edu