Subject: Re: DMA on beige G3 internal HD?
To: Amitai Schlair <schmonz@schmonz.com>
From: Charlie Allom <charlie@rubberduck.com>
List: port-macppc
Date: 09/08/2002 14:10:14
On Sat, Sep 07, 2002 at 04:03:47PM -0400, Amitai Schlair wrote:
> When booting a beige G3 desktop, right before mounting root, DMA to the
> internal ATA drive fails and the kernel switches to PIO mode. Should it be
> possible for DMA to work with this hardware? If so, what can I try to get it
> to work?
> 
> dmesg follows (config is GENERIC plus COMPAT_LINUX and OFB_ENABLE_CACHE).
> 
<snip>
> boot device: wd0
> root on wd0a dumps on wd0b
> 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 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
> wd0: soft error (corrected)
> root file system type: ffs

I used to get this in 1.5,  now -current doesn't do it anymore (on a
wallstreet)

now I get:

wdc1 at obio0 offset 0x20000 irq 13: DMA transfer
wd0 at wdc1 channel 0 drive 0: <IBM-DTCA-24090>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
(Ultra/33)
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)


Not sure if that is to do with -current or maybe my hard drive just
spun up correctly this last few boots.

  C.
-- 
 charlie@rubberduck.com
 http://rubberduck.com/yeled/pgp.txt