Subject: PCMCIA Megahertz Ethernet card problem
To: None <port-i386@NetBSD.ORG>
From: Andreas Wrede <andreas@planix.com>
List: port-i386
Date: 10/27/1997 21:13:16
I have the following problem with Megahertz X-JACK Ethernet card. The card 
is recognized by the INSTALL (-current) kernel, but the chip type and 
revision are probed as 'unknown chip id 15, revision 15'. 

In this mode, the card fails to establish a link with the hub when 
ifconfig'd. I see link link light flash on briefly when I ifconfig 
the card and I get the following two messages:

pcmcia1: card irq 5
sm0: receive interrupt on empty fifo.

Sometimes the card's chip is probed correctly on re-insertion:
sm1: SMC91C94 revision 1
sm1: Mac address 00:00:86:11:47:e6, default media UTP

When this happens ifconfig'ing the card will establish a prober link
with the hup and I can use the interface. 

When I eject and reinsert the card to often, I will get the msg:
sm3: can't map i/o space
and the keyboard looks up, necessitating a hard reboot.

I would have expected that the address space and maybe even the device unit number is reclaimed when the card is removed.

Boot probes:

NetBSD 1.3_ALPHA (INSTALL) #1: Sat Oct 25 18:39:31 EDT 1997
    root@woffi:/local1/src/netbsd-current/src/sys/arch/i386/compile/INSTALL
cpu0: family 4 model 3 step 6
cpu0: Intel 486DX2 (486-class)
real mem  = 20574208
avail mem = 15814656
using 276 buffers containing 1130496 bytes of memory
mainbus0 (root)
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <ST9655AG>
wd0: 500MB, 1016 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, chs addressing
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pc0: console
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-0xd3fff: using irq 3
pcic0: controller 0 (Cirrus PD672X) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
sm0 at pcmcia1 function 0 port 0x400-0x40f: Megahertz X-JACK Ethernet
sm0: unknown chip id 15, revision 15
sm0: MAC address 00:00:86:11:47:e6, default media UTP
biomask 4040 netmask 4040 ttymask 404a
md0: internal 1792K image area
boot device: fd0
root on md0a dumps on md0b
root file system type: ffs


-- 
Andreas Wrede              Planix, Inc.
andreas@planix.com         Networking, System Administration, Consulting
http://www.planix.com      Toronto, Ontario, Canada