Subject: IRQ conflict
To: None <port-i386@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-i386
Date: 11/06/1998 10:07:52
I've got this 386 machine (yes, even I finally have an Intel box).  The
reason I'm writing is, I recently got a soundcard for it, and it looks
to me as though something is wrong in IRQ allocation.  Here are
relevant excerpts from /kern/msgbuf (I'll include the whole msgbuf at
the end of this message):

NetBSD 1.3F (GENERIC) #0: Fri Nov  6 01:47:32 EST 1998
    root@Truly-Delicious.Rodents.Montreal.QC.CA:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel 386DX (386-class)
mainbus0 (root)
isa0 at mainbus0
we1: overriding IRQ 10 to 5
we1 at isa0 port 0x300-0x31f iomem 0xcc000-0xcdfff irq 5
we1: WD8003EP Ethernet (8-bit)
we1: Ethernet address 00:00:c0:00:a3:30
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: read port 0x203
sb1 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
sb1: Creative SB AWE32 PnP Audio: dsp v4.13

This sure looks to me as though the P&P code allocated IRQ 5 to sb1
even though we1 was already using it.  But I know very little about
P&P; is it really up to the kernel to choose this?  (For we1 it is not;
that card has real jumpers for config.)

I browsed the CMOS setup menus and didn't see anything that looked
Plug&Play-related.

Will I just have to re-jumper we1 in order to use this soundcard?  (As
I recall, this was the only setting for we1 that I could find that
didn't conflict with something else.)  I sure didn't see anything on
the soundcard that looked like configuration jumpers, which if it's P&P
is presumably not that surprising.  Or is this a bug, and if so, is it
fixed in a more recent -current?

The kernel from which the above dmesg output was taken was GENERIC with
all the usb stuff removed because I got compilation errors - the base
source tree I'm working with was supped 1998-08-03 and presumably
caught usb support in a state of flux.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Here's that full dmesg output:

NetBSD 1.3F (GENERIC) #0: Fri Nov  6 01:47:32 EST 1998
    root@Truly-Delicious.Rodents.Montreal.QC.CA:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel 386DX (386-class)
real mem  = 20578304
avail mem = 16330752
using 276 buffers containing 1130496 bytes of memory
mainbus0 (root)
isa0 at mainbus0
aic0 at isa0 port 0x340-0x35f irq 11
scsibus0 at aic0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, LP80S  980809404, 3.3> SCSI2 0/direct fixed
sd0: 80MB, 921 cyl, 4 head, 44 sec, 512 bytes/sect x 164139 sectors
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, LP80S  980809404, 3.3> SCSI2 0/direct fixed
sd1: 80MB, 921 cyl, 4 head, 44 sec, 512 bytes/sect x 164139 sectors
sd2 at scsibus0 targ 2 lun 0: <QUANTUM, LPS270S, 590A> SCSI2 0/direct fixed
sd2: 258MB, 2740 cyl, 2 head, 96 sec, 512 bytes/sect x 528808 sectors
sd3 at scsibus0 targ 5 lun 0: <IOMEGA, ZIP 100, C.19> SCSI2 0/direct removable
sd3: drive offline
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <ST1102AT>
wd0: using 1-sector 16-bit pio transfers, chs mode
wd0: 85MB, 1024 cyl, 10 head, 17 sec, 512 bytes/sec
wd1 at wdc0 drive 1: <QUANTUM MAVERICK 270A>
wd1: using 8-sector 16-bit pio transfers, lba mode
wd1: 258MB, 528639 sec, 512 bytes/sec
we1: overriding IRQ 10 to 5
we1 at isa0 port 0x300-0x31f iomem 0xcc000-0xcdfff irq 5
we1: WD8003EP Ethernet (8-bit)
we1: Ethernet address 00:00:c0:00:a3:30
fe_simple_probe: ff & 70 != 0
ate_match: ate_find failed
fe_simple_probe: ff & 70 != 0
fmv_match: fmv_find failed
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
pc0 at isa0 port 0x60-0x6f irq 1: mono
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
isapnp0: read port 0x203
sb1 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
sb1: Creative SB AWE32 PnP Audio: dsp v4.13
audio0 at sb1
isapnp0: <Creative SB AWE32 PnP, PNPFFFF, , Reserved> port 0x100/1 not configured
isapnp0: <Creative SB AWE32 PnP, CTL0021, , WaveTable> port 0x620/4 not configured
joy0 at isapnp0 port 0x200/8
joy0: Creative SB AWE32 PnP Game
joy0: joystick not connected
isapnp0: <Creative SB AWE32 PnP, CTL0051, , StereoEnhance> port 0x100/1 not configured
biomask 4840 netmask 4860 ttymask 4862
findroot: can't open dev sd3a (5)
boot device: wd0
root device (default wd0a): 
dump device (default wd0b): 
file system (default generic): 
root on wd0a dumps on wd0b
root file system type: ffs