Subject: Re: fixes for wdc_obio.c
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: port-macppc
Date: 07/28/2001 23:45:46
Manuel Bouyer <bouyer@antioche.lip6.fr> writes:

> Here is an update to the code:
> - I forgot to *1000 in some case for timings calc in the ata-4 case.
>   Result was always 0.
> - options ATA4 is gone, based on code sent to me by Tsubai Masanari

I tried it on my tibook:

[...]
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc0:0:0: intr with DRQ (st=0x58)
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc0:0:0: intr with DRQ (st=0x58)
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 1 (using DMA data transfers)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc0:0:0: intr with DRQ (st=0x58)
wd0: transfer error, downgrading to DMA mode 2
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc0:0:0: device timeout, c_bcount=512, c_skip0
wd0: transfer error, downgrading to PIO mode 4
wd0(wdc0:0:0): using PIO mode 4
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc0:0:0: setmulti timed out
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc0:0:0: not ready, st=0x00, err=0x00
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0)
wdc0:0:0: not ready, st=0x00, err=0x00
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
wd0c: aborted command reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wdc0:0:0: not ready, st=0x00, err=0x00
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
wdc0:0:0: recal timed out
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
wdc0:0:0: piomode timed out
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 14848 tc_skip: 1536
wd0c: device timeout reading fsbn 4 of 1-32 (wd0 bn 4; cn 0 tn 0 sn 4), retrying
wdc0:0:0: not ready, st=0x00, err=0x00
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1)
wd0: Macintosh partition map I/O error
wdc0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
wd0: flush cache command timeout

Then it returned to shell prompt, maybe 'cause I did a netboot.

Markus.