Subject: promise ultra 66 ide controller not working
To: None <port-macppc@netbsd.org>
From: Russell McManus <russell_mcmanus@yahoo.com>
List: port-macppc
Date: 09/28/2003 22:50:21
I've (finally) gotten my 9600MP up and running.  Thanks to the list
for the help.  Turns out that you really shouldn't accidentally boot
into MacOS and think that SystemDisk fixes are still applied, just as
it says in the install notes.  Go figure.

Any-way, I've moved over a bunch of hardware goodies from my old 7300
into this new beast, and one of them is not working.  I wonder whether
the problem is a toasted disk, or a hardware incompatibility, who
knows.

The controller and disk are identified OK during boot up:

  pciide0 at pci0 dev 14 function 0: Promise Ultra66/ATA Bus Master IDE Accelerator (rev. 0x01)
  pciide0: bus-master DMA support present
  pciide0: primary channel configured to native-PCI mode
  pciide0: using irq 24 for native-PCI interrupt
  wd0 at pciide0 channel 0 drive 0: <WDC WD1600BB-00DAA0>
  wd0: drive supports 16-sector PIO transfers, LBA48 addressing
  wd0: 149 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
  wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
  wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
  pciide0: secondary channel configured to native-PCI mode
  pciide0: disabling secondary channel (no drives)

But when I try to mount a filesystem on the sucker, I get this
horrible sequence of messages:

  pciide0:0:0: lost interrupt
   type: ata tc_bcount: 512 tc_skip: 0
  pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
  wd0: transfer error, downgrading to Ultra-DMA mode 2
  wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
  wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
  pciide0:0:0: lost interrupt
          type: ata tc_bcount: 512 tc_skip: 0
  pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
  wd0: transfer error, downgrading to Ultra-DMA mode 1
  wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
  wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
  pciide0:0:0: lost interrupt
     type: ata tc_bcount: 512 tc_skip: 0
  pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
  wd0: transfer error, downgrading to DMA mode 2
  wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
  wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
  pciide0:0:0: lost interrupt
         type: ata tc_bcount: 512 tc_skip: 0
  pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
  wd0: transfer error, downgrading to PIO mode 4
  wd0(pciide0:0:0): using PIO mode 4
  wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
  wd0: soft error (corrected)


At that point, the drive appears inoperable, for example one can start
an fsck_ffs on it, but it does not appear to make progress.  Any ideas
about what might be wrong?  I've included a full dmesg output to
provide any necessary context...

-russ


NetBSD 1.6 (GENERIC) #0: Sun Sep  8 22:04:33 UTC 2002
    autobuild@tgm.daemon.org:/autobuild/macppc/OBJ/autobuild/src/sys/arch/macppc/compile/GENERIC
total memory = 160 MB
avail memory = 138 MB
using 2048 buffers containing 8292 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 604ev (Revision 2.3), ID 0 (primary)
cpu0: HID0 8090c084<EMCP,DOZE,DPM,ICE,DCE,SGE,BHT>
cpu1 at mainbus0: ID 1
cpu1: processor off-line; multiprocessor support not present in kernel
bandit0 at mainbus0
pci0 at bandit0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
pciide0 at pci0 dev 14 function 0: Promise Ultra66/ATA Bus Master IDE Accelerator (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using irq 24 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <WDC WD1600BB-00DAA0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
pciide0: disabling secondary channel (no drives)
ofb0 at pci0 dev 15 function 0: Integrated Micro Solutions TwinTurbo 128M
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:05:02:76:a5:13
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 3 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: 1-button, 100 dpi mouse
wsmouse0 at ams0 mux 0
adb0 addr 7: misc. device (remote control?) (192) unsupported
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus1 at mesh0: 8 targets, 8 luns per target
nvram0 at obio0 offset 0x1d000
bandit1 at mainbus0
pci1 at bandit1 bus 1
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
tlp0 at pci1 dev 15 function 0: DECchip 21143 Ethernet, pass 3.0
tlp0: interrupting at irq 29
tlp0: DEC DE500-BA, Ethernet address 08:00:2b:c5:a1:92
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 0 lun 0: <TANDEM, 4260-1, 03A0> SCSI3 0/direct fixed
sd0: 4367 MB, 8143 cyl, 5 head, 219 sec, 512 bytes/sect x 8945532 sectors
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
pciide0:0:0: lost interrupt
 type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
   type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0: transfer error, downgrading to DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
       type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0: transfer error, downgrading to PIO mode 4
wd0(pciide0:0:0): using PIO mode 4
wd0c: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
ellington:/root [5] $