Subject: pcmcia on IBM ThinkPad 770
To: None <port-i386@netbsd.org>
From: Martin Husemann <martin@rumolt.teuto.de>
List: port-i386
Date: 10/10/1998 18:44:55
I have a problem with an IBM ThinkPad 770 and -current (a few days old):
it won't always probe the pcmcia cards. Most of the time it won't, only
about one out of five times it will.

When it works, I get boot messages like this:

NetBSD 1.3H (ARMADA) #2: Sat Oct 10 16:11:16 MEST 1998
    martin@rumolt.teuto.de:/a/usr/src/sys-i4b/arch/i386/compile/ARMADA
cpu0: family 5 model 8 step 1
cpu0: Intel Pentium (586-class)
real mem  = 100073472
avail mem = 91557888
using 1247 buffers containing 5107712 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
[...]
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 (Intel 82365SL Revision 1) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: AVM, ISDN A, !,
pcmcia0: Manufacturer code 0xffffffff, product 0xffffffff
pcmcia0: function 0: network adapter, ccr addr 400 mask 1
pcmcia0: function 0, config table entry 1: I/O card; irq mask 9cf8; iomask 10, iospace 140-147; rdybsy_active wp_active bvd_active io8 irqlevel
pcmcia0: function 0, config table entry 2: I/O card; irq mask 9cf8; iomask 10, iospace 300-307; rdybsy_active wp_active bvd_active io8 irqlevel
isic0 at pcmcia0 function 0: AVM Fritz!Card
pcmcia1 at pcic0 controller 0 socket 1
biomask 4040 netmask 4040 ttymask 404a

When it won't work (same kernel, next power up) the last part is:

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 (Intel 82365SL Revision 1) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
biomask 4040 netmask 4040 ttymask 404a

And the match routine for the Fritz!Card (the isic0 at pcmcia0 above)
is never called.

Most of the time it won't work, and I'm debugging the isic-at-pcmcia 
attachment, so this is a real pain...

Any hints?


Martin