Subject: Re: port-arm32/12120: arm32 wdc drivers should use wdc_print_modes for a bit more info
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: netbsd-bugs
Date: 02/05/2001 21:21:16
On Monday 05 February 2001  8:03 pm, Manuel Bouyer wrote:
> On Sun, Feb 04, 2001 at 10:08:41PM +0000, Chris Gilbert wrote:
> > Ahh, no point copying broken code then.  Certainly the reason for me
> > adding is was to just get more info.  I just prefer that people are aware
> > that controllers aren't using DMA even if the drives are.  The adding the
> > wdc_print_modes makes the output on my arm32 box:
> >
> > rapide0 at podulebus0 [ podule 1 ]: Issue 2
> > atapibus0 at rapide0 channel 0
> > cd0 at atapibus0 drive 1: <CD-540E, , 1.0A> type 5 cdrom removable
> >
> > cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
> > wd0 at rapide0 channel 0 drive 0: <QUANTUM FIREBALL SE4.3A>
> > wd0: drive supports 16-sector PIO transfers, LBA addressing
> > wd0: 4110 MB, 14848 cyl, 9 head, 63 sec, 512 bytes/sect x 8418816 sectors
> >
> > wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
> > wd0(rapide0:0:0): using PIO mode 4
> > cd0(rapide0:0:1): using PIO mode 4
>
> Ok, but can rapide really do PIO mode 4 ?
> You can use wdc_print_modes(), but you need to set drvp->PIO_mode to the
> rigth value for each drive before calling it (I think otherwise it defaults
> to what the drive supports, this info is already available).

Not sure, I know we run in some kind of polling mode doing 32bit reads and 
writes. sorry my knowledge of IDE is limited.  I just hoped that the rest of 
the stuff was right (now there's an assumption not to make again :) so that 
wdc_print_modes would do the right thing *sigh*  It can do DMA, but we don't 
do dma on risc-pc, (might not even do dma on arm32 at all.)

Perhaps the PR should be left open until someone with more knowledge can look 
into it.  That and more info on the chipsets etc can be found.

Cheers,
Chris