Subject: Re: UDMA problems with 1.4
To: Michael C. Richardson <mcr@sandelman.ottawa.on.ca>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 01/25/2000 14:13:18
On Mon, Jan 24, 2000 at 02:20:55PM -0500, Michael C. Richardson wrote:
> 
>   I installed 1.4 since I had the CDROM, but I noticed this with
> -current as well on this machine...
> 
> 
> pciide0:0:0: lost interrupt
>         type: ata
>         c_bcount: 3072
>         c_skip: 0
> pciide0:0:0: Bus-Master DMA error: missing interrupt, status=0x60
> wd0a: DMA error writing fsbn 16 of 16-21 (wd0 bn 1231351; cn 1303 tn 0 sn 16), retrying
> pciide0:0:0: lost interrupt
>         type: ata
>         c_bcount: 3072
>         c_skip: 0
> pciide0:0:0: Bus-Master DMA error: missing interrupt, status=0x60
> wd0: transfer error, downgrading to DMA mode 2
> wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
> wd0a: DMA error writing fsbn 16 of 16-21 (wd0 bn 1231351; cn 1303 tn 0 sn 16), retrying
> wd0: soft error (corrected)
> 
>   I think that this means that it takes awhile for the controller to figure
> out which mode really works on the drive. The drive is:
> 
> pciide0 at pci0 dev 0 function 1: Silicon Integrated System 5597/5598 IDE controller
> pciide0: bus-master DMA support present
> pciide0: primary channel configured to compatibility mode
> atapibus0 at pciide0 channel 0
> cd0 at atapibus0 drive 1: <ATAPI CD-ROM DRIVE 40X MAXIMUM, , N0AP> type 5 cdrom removable
> cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
> wd0 at pciide0 channel 0 drive 0: <ST34321A>
> wd0: drive supports 32-sector pio transfers, lba addressing
> wd0: 4103MB, 8894 cyl, 15 head, 63 sec, 512 bytes/sect x 8404830 sectors
> wd0: 32-bits data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
> pciide0: primary channel interrupting at irq 14
> pciide0: secondary channel configured to compatibility mode
> pciide0: disabling secondary channel (no drives)
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
> 
>   Should I move the CDROM to the second channel?
>   Or should I seek a replacement drive?

Try moving the CD on the second channel first, and also check cable.
You can also try to recompile a kernel with
wd0 at pciide? channel ? drive ? flags 0x0900
which will force the kernel to use Ultra-DMA mode 1.

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