Subject: kern/10068: isa pnp resource conflict not detected
To: None <>
From: Juergen Hannken-Illjes <>
List: netbsd-bugs
Date: 05/08/2000 03:42:12
>Number:         10068
>Category:       kern
>Synopsis:       isa pnp resource conflict not detected
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 08 03:41:00 PDT 2000
>Originator:     Juergen Hannken-Illjes
>Release:        <NetBSD-current source date>NetBSD 1.4Y, Fri May 5 2000
	Abt. EIS - TU Braunschweig - Germany
	System: NetBSD dancer 1.4Y NetBSD 1.4Y (CUSTOM) #35: Fri May 5 11:21:09 MEST 2000 hannken@dancer:/usr/obj/kern.i386/CUSTOM i386

	A machine with two soundcards allocates drq 1 twice. From the dmesg:

    wss0 at isapnp0 port 0x534/4,0x388/4,0x220/16 irq 5 drq 1,0
    wss0: AdLib MSC 16 PnP : CS4236BrevB
    audio0 at wss0: full duplex, mmap

    isapnp0: configuring <Creative ViBRA16C PnP, CTL0001, , Audio>
    sb0 at isapnp0 port 0x240/16,0x300/2 irq 7 drq 1,7
    sb0: Creative ViBRA16C PnP Audio: dsp v4.13
    audio1 at sb0: full duplex, mmap, independent

This leads to a resource conflict on the first open:

    isa0: drq 1 is not free
    sb0: can't create map for drq 1
	Use a config file like:

    isapnp0     at isa?
    sb*         at isapnp?
    wss*        at isapnp?
    audio*      at sb?
    audio*      at wss?

and a AdLib MSC 16 PnP and a Creative ViBRA16C PnP.
	Not known, according to augustss this broke `when mycroft decided to
move ISA dma map creation to the time when a device is opened'.