Subject: Promise DMA trouble on AXPpci33
To: None <port-alpha@netbsd.org>
From: Felix Deichmann <f.dei@web.de>
List: port-alpha
Date: 07/07/2003 18:42:48
Hi,

I have trouble using a Promise Ultra 100 TX2 in an AXPpci33 (with 2 
brand new IDE disks). The disks are downgraded to PIO mode 4. I did the 
following tests and changes already, without success:

1. Tried it with only one disk -> no success
2. Replaced the controller with another Ultra100 TX2 -> no success
3. Replaced the cables (I have 4 different 80 conductor) -> no success
4. Put the controller into another PCI slot -> no success
5. Switched the power supply with a more powerful one -> no success
6. Tested the disks with another computer in UDMA5 mode -> disks are OK
7. Upgraded from 1.6.1 kernel to current -> no success

So, I don't know what the problem is... :-(

dmesg follows (test with only one disk, but the other one is similar):

- - -

NetBSD 1.6U (FELIX) #0: Fri Apr  7 21:41:17 CEST 2023
         root@alpha.invalid:/usr/current/src/sys/arch/alpha/compile/FELIX
Alpha PC AXPpci33, 166MHz, s/n
8192 byte page size, 1 processor.
total memory = 65536 KB
(2024 KB reserved for PROM, 63512 KB used by NetBSD)
avail memory = 56472 KB
using 409 buffers containing 3272 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), LCA-2 (21066)

cpu0: Architecture extensions: fffffc000050e1d0<MVI>
lca0 at mainbus0
pci0 at lca0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
siop0 at pci0 dev 6 function 0: Symbios Logic 53c810 (fast scsi)
siop0: interrupting at isa irq 11
scsibus0 at siop0: 8 targets, 8 luns per target
sio0 at pci0 dev 7 function 0: vendor 0x8086 product 0x0484 (rev. 0x03)
tlp0 at pci0 dev 8 function 0: DECchip 21140A Ethernet, pass 2.2
tlp0: interrupting at isa irq 9
tlp0: Ethernet address 00:e0:29:06:b2:a7
nsphy0 at tlp0 phy 3: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp1 at pci0 dev 11 function 0: DECchip 21040 Ethernet, pass 2.3
tlp1: interrupting at isa irq 10
tlp1: ZNYX ZX312, Ethernet address 00:c0:95:ec:51:bd
tlp1: 10baseT, 10baseT-FDX, 10base5, manual
pciide0 at pci0 dev 12 function 0: Promise Ultra100TX2/ATA Bus Master 
IDE Accele
rator (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using isa irq 14 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <Maxtor 6E040L0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 39205 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 80293248 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using 
DMA data
  transfers)
pciide0: secondary channel configured to native-PCI mode
wd1 at pciide0 channel 1 drive 0: <Maxtor 6E040L0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 39205 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 80293248 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using 
DMA data
  transfers)
isa0 at sio0
lc0 at isa0 port 0x300-0x31f iomem 0xd0000-0xd07ff irq 5: DE205-AB
lc0: address 08:00:2b:be:03:14, 128KB RAM, 2KB window
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
lpt0 at isa0 port 0x3bc-0x3bf irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 2 lun 0: <IBM, DORS-32160, WA6A> disk fixed
sd0: 2063 MB, 6703 cyl, 5 head, 126 sec, 512 bytes/sect x 4226725 sectors
sd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers, tagged queueing
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: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: (aborted command, interface CRC error)
wd0: soft error (corrected)
wd1: transfer error, downgrading to Ultra-DMA mode 2
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using 
DMA data
transfers)
wd1c: error reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying
wd1: (aborted command, interface CRC error)
wd1: soft error (corrected)
root on sd0a dumps on sd0b
root file system type: ffs
pciide0:0:0: lost interrupt
         type: ata tc_bcount: 16384 tc_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
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)
wd0a: DMA error writing fsbn 80293216 of 80293216-80293247 (wd0 bn 
80293216; cn
79655 tn 15 sn 31), retrying
wd0: soft error (corrected)
pciide0:0:0: lost interrupt
         type: ata tc_bcount: 16384 tc_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
wd0: transfer error, downgrading to PIO mode 4
wd0(pciide0:0:0): using PIO mode 4
wd0a: DMA error writing fsbn 96 of 96-127 (wd0 bn 96; cn 0 tn 1 sn 33), 
retrying
wd0: soft error (corrected)

- - -

Oh, and in PIO mode 4 the disks seem to work OK... :-)

Help would be greatly appreciated

Regards

Felix