Subject: pc card and cardbus not working... :(
To: None <current-users@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 04/21/2000 22:08:47
so i've got this laptop running -current (ran cvs update this morning
and rebuilt everything) with two cardbus slots, but cards are a
little...finicky.

the bios (acpi bios v1.40, 12/29/99) gives me three options for the pc
card slots: auto-selected, pcic compatible, and cardbus/16-bit.  i've
tried kernels with pcic and with cbb, and a few cards, both pcmcia (a
3c562 and two 10 meg cards) and cardbus (a 3c575b).

with the bios set to auto and pcic in the kernel, pc cards work, but
only if i put in two cards.  cardbus, of course, doesn't work.

bios: auto, kernel: ccb -> cbb devices are "NOT USED" because of
unconfigured interrupt.  needless to say, no cards work.

bios: pcic compatible, kernel: cbb -> same as above.

bios: cardbus/16-bit, kernel: cbb -> the cardbus card works, but pc
cards hang the machine.  the kernel prints (with ten fingers)

pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: Manufacturer code 0x101, product 0x562
pcmcia1: function 0: network adapter, ccs addr 1080 mask 3ff
pcmcia1: function 0, config table entry: I/O card; irq mask ffff; iomask 4, iospace 0-f; io8 io16 irqlevel
pcmcia1: function 1: serial port, ccr addr 1000 mask 3ff
pcmcia1: function 1, config table entry 9: I/O card; irq mask 86b8; iomask 3, iospace 2f8-2ff; mwait_required rdybsy_active io8 irqlevel powerdown audio
pcmcia1: function 1, config table entry 25: I/O card; irq mask 86b8; iomask 3, iospace 3e8-3ef; mwait_required rdybsy_active io8 irqlevel powerdown audio
pcmcia1: function 1, config table entry 41: I/O card; irq mask 86b8; iomask 3, iospace 2e8-2ef; mwait_required rdybsy_active io8 irqlevel powerdown audio
ep0 at pcmcia1 function 0: 3Com 3c562 33.6 Modem/10Mbps Ethernet

and then stops.  no ddb, no nothing.  when i put in the 3c562 in the
first case above, i get

ep0 at pcmcia0 function 0 port 0x330-0x33f: 3Com 3c562 33.6 Modem/10Mbps Ethernet
ep0: address 00:a0:24:60:98:dc, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
com4 at pcmcia0 function 1 port 0x340-0x347: serial device
com4: ns16550a, working fifo

instead of the one line about ep0.

as i delve into the internals of the pcmcia stuff and can hopefully
introduce a panic (or at least a call to the debugger at the right
point, if i can find it), is there anything specific i should be
looking for?



-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."