Subject: floppy drive
To: None <port-i386@NetBSD.ORG>
From: David Stanhope <dms@celtech.com>
List: port-i386
Date: 11/17/1997 15:32:57
I have just converted a 1.2 machine to 1.3Alpha and everything went very
well except the floppy drive no longer works, I get an error on bootup of

   fdc0: can't set up ISA DMA map

The floppy always worked fine on 1.2, and the exact same 1.3 kernel works
fine on another motherboard. Both motherboards are Intel Pentium-Pro, the
working one happens to be a Pentimu-II, the non-working is a standard Pentium-
Pro. What I suspect is that the large memory has something to do with it, the
working floppy is on a machine with 64Megs and the non-working is on a machine
with 256Megs of memory. The working machine has IDE drives, the non-working
has a large scsi drive, I don't thing this has anything to do with it.

Here is the dmesg output on the non-working machine:

----------------------------------------------------------------------------
Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3_ALPHA (BIGLES) #0: Fri Nov 14 23:23:00 PST 1997
    dms@pent2.celtech.com:/usr/netbsd/src/sys/arch/i386/compile/BIGLES
cpu0: family 6 model 1 step 9
cpu0: Intel Pentium Pro (686-class)
real mem  = 268038144
avail mem = 247324672
using 2822 buffers containing 13504512 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82441FX PCI and Memory Controller (PMC) (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
Intel 82371SB IDE Interface (PIIX3) (IDE mass storage, interface 0x80) at pci0 dev 7 function 1 not configured
ahc1 at pci0 dev 11 function 0
ahc1: interrupting at irq 11
ahc1: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc1 channel 0: 16 targets
ahc1: target 0 using 16Bit transfers
ahc1: target 0 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, XP39100W, LXY4> SCSI2 0/direct fixed
sd0: 8682MB, 5899 cyl, 20 head, 150 sec, 512 bytes/sect x 17781520 sectors
ahc1: target 2 synchronous at 10.0MHz, offset = 0x8
cd0 at scsibus0 targ 2 lun 0: <TOSHIBA, CD-ROM XM-5701TA, 3136> SCSI2 5/cdrom removable
ahc1: target 6 synchronous at 5.0MHz, offset = 0xf
st0 at scsibus0 targ 6 lun 0: <ARCHIVE, 4326XX 27871-XXX, 0322> SCSI2 1/sequential removable
st0: drive empty
de0 at pci0 dev 15 function 0
de0: interrupting at irq 10
de0: DEC DE450-CA 21041 [10Mb/s] pass 1.1
de0: address 00:00:f8:02:ff:eb
Cirrus Logic CL-GD5446 (VGA display) at pci0 dev 17 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
npx0 at isa0 port 0xf0-0xff: using exception 16
vt0 at isa0 port 0x60-0x6f irq 1
vt0: unknown cirrus, 80 col, color, 8 scr, mf2-kbd, [R3.32]
spkr0 at vt0 port 0x61
vt0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fdc0: can't set up ISA DMA map
biomask 800 netmask c00 ttymask c82
de0: enabling 10baseT port
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
----------------------------------------------------------------------------

Here is dmesg from the working machine:


----------------------------------------------------------------------------
Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3_ALPHA (CTS13V0A) #2: Fri Nov 14 18:07:15 PST 1997
    dms@pent2.celtech.com:/usr/netbsd/src/sys/arch/i386/compile/CTS13V0A
cpu0: family 6 model 3 step 3
cpu0: Intel Pentium II (686-class)
real mem  = 66711552
avail mem = 59527168
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 82441FX PCI and Memory Controller (PMC) (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
Intel 82371SB IDE Interface (PIIX3) (IDE mass storage, interface 0x80) at pci0 dev 7 function 1 not configured
Intel 82371SB USB Host Controller (PIIX3) (USB serial bus, revision 0x01) at pci0 dev 7 function 2 not configured
de0 at pci0 dev 11 function 0
de0: interrupting at irq 10
de0: DEC DE450-CA 21041 [10Mb/s] pass 1.1
de0: address 00:00:f8:03:fc:01
S3 Trio32/64 (VGA display) at pci0 dev 15 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <Maxtor 71626 AP>
wd0: 1554MB, 3158 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus1 at wdc1
wd1 at wdc1 drive 0: <Maxtor 71626 AP>
wd1: 1554MB, 3158 cyl, 16 head, 63 sec, 512 bytes/sec
wd1: using 16-sector 16-bit pio transfers, lba addressing
npx0 at isa0 port 0xf0-0xff: using exception 16
vt0 at isa0 port 0x60-0x6f irq 1
vt0: unknown s3, 80 col, color, 8 scr, mf2-kbd, [R3.32]
spkr0 at vt0 port 0x61
vt0: 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 at isa0 port 0x279: read port 0x203
sb0 at isapnp0 port 0x220/16,0x530/8,0x388/8,0x330/2,0x370/2 irq 5 drq 0,1
sb0: OPL3-SA3 Snd System  : dsp v3.01
audio0 at sb0
joy0 at isapnp0 port 0x201/1
joy0: OPL3-SA3 Snd System  
joy0: joystick not connected
biomask c040 netmask c440 ttymask c4c2
de0: enabling 10baseT port
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
----------------------------------------------------------------------------

Any thoughts on what might be going on here, I have added the following
entries to the config file but it didn't help:

options         NKMEMCLUSTERS=2048      # slots in kmem_map
options         NMBCLUSTERS=2048        # slots in mb_map

Am I doing something wrong or is this a bug?

                 David Stanhope
                 dms@celtech.com