Subject: port-i386/3642: mcd probe is bogus
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@rumolt.teuto.de>
List: netbsd-bugs
Date: 05/18/1997 09:18:50
>Number:         3642
>Category:       port-i386
>Synopsis:       the mcd probe succeeds without an mitsumi cd drive installed
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 18 00:35:01 1997
>Last-Modified:
>Originator:     Martin Husemann
>Organization:
private
>Release:        sup'ed at May 17, 1997
>Environment:
	
System: NetBSD rumolt.teuto.de 1.2E NetBSD 1.2E (RUMOLT) #0: Sat May 17 10:48:48 MEST 1997 root@hwart.teuto.de:/usr/src/sys-local/arch/i386/compile/RUMOLT i386


>Description:
I tried an emergency boot disk with a GENERIC kernel on several machines, 
and on two of them the mcd probe succeeded, preventing the probe for the
network interface to succeed. No hardware damage happened, but for those
machines the GENERIC kernel is quite useless.

>How-To-Repeat:

Boot a generic kernel with an ed device at io 0x300. My usual kernel 
detects them as 

ed0 at isa0 port 0x300-0x31f iomem 0xe0000-0xe3fff irq 10
ed0: address 00:00:c0:11:48:2d, type WD8013EP (16-bit) aui

and on the other machine

ed0 at isa0 port 0x300-0x31f irq 10
ed0: address 00:00:b4:32:29:61, type NE2000 (16-bit)

The generic kernel (actually with the atapi patches installed) says:

NetBSD 1.2E (GENERIC) #0: Sat May 17 11:29:16 MEST 1997
    root@hwart.teuto.de:/usr/src/sys-local/arch/i386/compile/GENERIC
cpu0: family 6 model 3 step 2
cpu0: Intel Pentium Pro (686-class) with MMX
real mem  = 66711552
avail mem = 59113472
using 839 buffers containing 3436544 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82440FX (Natoma) PCI and Memory Controller (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB (Triton II) PCI-ISA Bridge (rev. 0x01)
Intel 82371SB (Triton II) IDE controller (IDE mass storage, interface 0x80) at pci0 dev 7 function 1 not configured
unknown vendor 0x121a product 0x0001 (video multimedia, revision 0x02) at pci0 dev 11 function 0 not configured
ATI Technologies product 0x5654 (VGA display, revision 0x48) at pci0 dev 17 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
mcd0 at isa0 port 0x300-0x303 irq 10: model unknown
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <WDC AC21600H>
wd0: 1549MB, 3148 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
wd1 at wdc0 drive 1: <Maxtor 83500 A8>
wd1: 3346MB, 6800 cyl, 16 head, 63 sec, 512 bytes/sec
wd1: using 16-sector 16-bit pio transfers, lba addressing
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus1 at wdc1
acd0 at atapibus1 drive 0: <MATSHITADVD-ROM SR-8581 PP1@06/27/96, , 048A> type 5/cdrom removable
acd0: medium type unknown
acd1 at atapibus1 drive 1: <CD-ROM CDU311, , 3.0i> type 5/cdrom removable
acd1: medium type unknown
sb0 at isa0 port 0x220-0x22f irq 7 drq 1: dsp v1.00
wss0 at isa0 port 0x530-0x537 irq 10 drq 0: broken (vers 63)
wss: could not attach to audio pseudo-device driver (22)
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x20f
isapnp0: card 1 violates PnP spec; byte 2
isapnp0: <CS4232, CSC0000, WSS/SB> port 0x608/4,0x388/4,0x240/16 irq 5 drq 1,0 not configured
joy0 at isapnp0 port 0x200/8
joy0: CS4232 Game
joy0: joystick connected
isapnp0: <CS4232, CSC0010, Ctrl> port 0xf00/8 not configured
isapnp0: <CS4232, CSC0003, MPU> port 0x330/2 irq 9 not configured
apm0 at mainbus0: Power Management spec V1.1 (BIOS mgmt disabled) (BIOS managing devices)
apm0: A/C state: on
apm0: battery charge state: no battery
biomask c440 netmask c440 ttymask c442

Note the bogus mcd0 at 0x300 and the missing ed2.

>Fix:
Prefered: fix mcd probe.
Or: probe for mcd after all other devices
Or: uncomment mcd in GENERIC
>Audit-Trail:
>Unformatted: