Subject: Re: New promise driver and Alpha...
To: Matt Thomas <matt@3am-software.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-alpha
Date: 11/15/1999 20:45:29
On Mon, Nov 15, 1999 at 11:39:51AM -0800, Matt Thomas wrote:
> It's an Ultra33.
> 
> pciide2 at pci0 dev 6 function 0: Promise Ultra33/ATA Bus Master IDE Accelerator
> pciide2: bus-master DMA support presentBAR 0x20 (I/O) is set to d0a0/20
> 
> pciide2: primary channel configured to native-PCI mode
> pciide2: using eb164 irq 11 for native-PCI interrupt
> BAR 0x10 (I/O) is set to d0d0/8
> BAR 0x14 (I/O) is set to d0e0/4
> wd1 at pciide2 channel 0 drive 0: <IBM-DPTA-353750>
> wd1: drive supports 16-sector pio transfers, lba addressing
> wd1: 35772MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 73261440 sectors
> wd1: 32-bits data port
> wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> wd1(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
> pciide2: secondary channel configured to native-PCI mode
> BAR 0x18 (I/O) is set to d0d8/8
> BAR 0x1c (I/O) is set to d0e4/4
> wd2 at pciide2 channel 1 drive 0: <IBM-DJNA-372200>
> wd2: drive supports 16-sector pio transfers, lba addressing
> wd2: 21557MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 44150400 sectors
> wd2: 32-bits data port
> wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> wd2(pciide2:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
> 
> ...
> 
> wd2e: DMA error reading fsbn 20257472 of 20257472-20257487 (wd2 bn 40417472; cn 40096 tn 11 sn 11), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 6645248 of 6645248-6645263 (wd2 bn 26805248; cn 26592 tn 8 sn 8), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 2903936 of 2903936-2903951 (wd2 bn 23063936; cn 22880 tn 14 sn 14), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 19805280 of 19805280-19805295 (wd2 bn 39965280; cn 39648 tn 1 sn 33), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 4397712 of 4397712-4397727 (wd2 bn 24557712; cn 24362 tn 12 sn 60), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 4406544 of 4406544-4406559 (wd2 bn 24566544; cn 24371 tn 9 sn 9), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 4399392 of 4399392-4399407 (wd2 bn 24559392; cn 24364 tn 7 sn 39), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 3484096 of 3484096-3484111 (wd2 bn 23644096; cn 23456 tn 7 sn 7), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 23290336 of 23290336-23290351 (wd2 bn 43450336; cn 43105 tn 7 sn 55), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 11870880 of 11870880-11870895 (wd2 bn 32030880; cn 31776 tn 10 sn 42), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 1549136 of 1549136-1549151 (wd2 bn 21709136; cn 21536 tn 13 sn 29), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 20966560 of 20966560-20966575 (wd2 bn 41126560; cn 40800 tn 2 sn 34), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 9556816 of 9556816-9556831 (wd2 bn 29716816; cn 29480 tn 15 sn 31), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 4393424 of 4393424-4393439 (wd2 bn 24553424; cn 24358 tn 8 sn 56), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 23295680 of 23295680-23295695 (wd2 bn 43455680; cn 43110 tn 12 sn 44), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 23295376 of 23295376-23295391 (wd2 bn 43455376; cn 43110 tn 7 sn 55), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 20127840 of 20127840-20127855 (wd2 bn 40287840; cn 39968 tn 1 sn 33), retrying
> wd2: soft error (corrected)
> wd2e: DMA error reading fsbn 9558208 of 9558208-9558223 (wd2 bn 29718208; cn 29482 tn 5 sn 37), retrying
> wd2: transfer error, downgrading to DMA mode 2
> wd2(pciide2:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
> wd2e: DMA error reading fsbn 9558208 of 9558208-9558223 (wd2 bn 29718208; cn 29482 tn 5 sn 37), retrying
> pciide2:1:0: lost interrupt
>          type: ata
>          c_bcount: 8192
>          c_skip: 0
> pciide2:1:0: Bus-Master DMA error: missing interrupt, status=0x1
> wd2: transfer error, downgrading to PIO mode 4
> wd2(pciide2:1:0): using PIO mode 4
> wd2e: DMA error reading fsbn 9558208 of 9558208-9558223 (wd2 bn 29718208; cn 29482 tn 5 sn 37), retrying
> wd2: soft error (corrected)

So it has problems in Ultra/33 mode too, but usually not enouth to trigger
a downgrade. 
I have a few IBM drives here on PIIX4 or Acer chipset, I don't have much
troubles with them. Only one drive/motherboard combination did not work
at Ultra-dma 2, but it does at ultra-dma 1:
pciide0 at pci0 dev 15 function 0: Acer Labs M5229 UDMA IDE Controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALL CX6.4A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6149MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)

Could you try to force it to Ultra-DMA 1 ?
wd2 at pciide? channel 1 drive 0 flags 0x900
in your config file.
Also check it's properly cabled, with the controller at one end and the
drive at the other (and not in the middle).

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--