Subject: plug-and-no-play, grrrr.
To: None <current-users@netbsd.org>
From: Brett Lymn <blymn@baesystems.com.au>
List: current-users
Date: 06/12/2000 19:32:34
Folks,
        I am tangling with plug-and-play (aka plug-and-swear or
plug-and-unplug) on my i386 box and I am losing.  The story so far is
this:  I have two pnp aware cards in my system, a Creative AWE64 Sound
card and a VIA PCMCIA bridge card.  At the moment I can have either
one or the other working not both.

In all the below configs I have my pcic controller entry configured up
to be at the default address.

If I configure in "isapnp0 at isa0" into my kernel I get this:

Jun 12 15:32:33 siren /netbsd: isapnp0: read port 0x203
Jun 12 15:32:33 siren /netbsd: isapnp0: <VIA PCMCIA CARD, PNP0E00, PNP0E00, > port 0x3e0/2 not configured
Jun 12 15:32:33 siren /netbsd: isapnp0: No current device for tag, card 2
Jun 12 15:32:33 siren /netbsd: sb0 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
Jun 12 15:32:33 siren /netbsd: sb0: Creative SB AWE64  PnP Audio: dsp v4.16
Jun 12 15:32:33 siren /netbsd: audio0 at sb0: full duplex, mmap, independent

I.E. I get a sb0 device but no pcmcia bridge.

If I don't configure in the isapnp stuff, try to configure sb0 to the
same port/irq/drq and just leave the pcic controller as it is, I get:

Jun 12 15:44:06 siren /netbsd: sb: setting drq mask 22 failed, got 41
Jun 12 15:44:06 siren /netbsd: pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff
Jun 12 15:44:06 siren /netbsd: pcic0: controller 0 (Cirrus PD672X) has sockets A and B
Jun 12 15:44:06 siren /netbsd: pcic0: controller 1 (Intel 82365SL Revision 1) has no sockets

i.e. my sound card fails to attach but I do have a pcic.

Finally, I tried using "options PNPBIOS" and saying sb was on pnpbios0
but the sound card was never found.  That is not surprising since
sb_pnpbios.c is only looking for some Neomagic device - I tried
dumping out all the id strings that got passed to the sb_pnpbios probe
but none of them were remotely like the Creative one should be.

Gaaaaaahhhhh - why couldn't they just leave ISA with good old links on
the board?  I could understand that.

This is all with:

NetBSD siren 1.4X NetBSD 1.4X (SIREN) #20: Mon Jun 12 15:41:48 CST 2000     root@siren:/usr/src/sys/arch/i386/compile/SIREN i386

What am I doing wrong _this_ time?

-- 
===============================================================================
Brett Lymn, Computer Systems Administrator, BAE SYSTEMS
===============================================================================