Subject: Re: problems with second ide drive
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 05/19/1999 09:11:08
On May 19, 10:51am, bouyer@antioche.lip6.fr (Manuel Bouyer) wrote:
-- Subject: Re: problems with second ide drive

| Could you send the complete dmesg output ? I'd like to know what wd0 is,
| which modes the controllers uses, etc ...

Sure..

NetBSD 1.4B (TAC-GENERIC) #10: Sun May 16 13:18:07 EDT 1999
    christos@hrothgar.gw.com:/net/hrothgar/src-1/NetBSD/cvsroot/src/sys/arch/i386/compile/TAC-GENERIC
cpu0: family 5 model 2 step 5
cpu0: Intel Pentium (P54C) (586-class)
real mem  = 100270080
avail mem = 90345472
using 1249 buffers containing 5115904 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x122d (rev. 0x01)
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x122e (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371FB IDE controller (PIIX)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <QUANTUM LPS540A>
wd0: drive supports 8-sector pio transfers, lba addressing
wd0: 516MB, 1120 cyl, 16 head, 59 sec, 512 bytes/sect x 1057280 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 3, DMA mode 1
wd1 at pciide0 channel 0 drive 1: <WDC AC24300L>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 4112MB, 8912 cyl, 15 head, 63 sec, 512 bytes/sect x 8421840 sectors
wd1: 32-bits data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (disabled)
wd0(pciide0:0:0): using PIO mode 0, DMA mode 1 (using DMA data transfers)
wd1(pciide0:0:1): using PIO mode 4
bha0 at pci0 dev 14 function 0: BusLogic 9xxC SCSI
bha0: interrupting at irq 10
bha0: model BT-946C, firmware 4.25J
bha0: sync, parity
bha0 targ 6: sync, offset 12, period 200nsec
scsibus0 at bha0: 8 targets, 8 luns per target
cd0 at scsibus0 targ 6 lun 0: <NEC, CD-ROM DRIVE:500, 2.2> SCSI2 5/cdrom removable
vga1 at pci0 dev 15 function 0: vendor 0x105d product 0x2309 (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
ep0 at pci0 dev 16 function 0: 3Com 3c590 Ethernet
ep0: interrupting at irq 9
ep0: address 00:20:af:f7:9a:38, 32KB byte-wide FIFO, 1:1 Rx:Tx split
ep0: 10baseT, 10baseT-FDX (default 10baseT)
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
com2 at isa0 port 0x3e8-0x3ef irq 5: ESP, 1024 byte fifo
wdc1 at isa0 port 0x170-0x177 irq 15
lpt0 at isa0 port 0x378-0x37b: polled
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
opms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: 1.2MB, 80 cyl, 2 head, 15 sec
isapnp0: no ISA Plug 'n Play devices found
biomask c440 netmask c640 ttymask d642
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
IP Filter: initialized.  Default = pass all, Logging = enabled

| Sure, the PIIX can't use Ultra-DMA. I guess you'll be using DMA mode 1 or 2,
| this depends on what wd0 is.

It said using dma mode 2, when I had it enabled.

| Did you try to newfs again the filesystems before ? It may be possible that
| some table got corrupted, which are not checked by fsck.

I would consider this a serious bug in fsck then...

| Hum, that can be the reason then. 
| Any chances to put the new disk as master on the second channed ? You'll
| get much better performances.

I'll try that, thanks.

christos