Subject: Re: kern/22869: Slave IDE drive not detected
To: Julio M. Merino Vidal <jmmv@menta.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 09/20/2003 21:32:46
On Sat, Sep 20, 2003 at 08:24:19PM +0200, Julio M. Merino Vidal wrote:
> > What IDE controller is it ?
> > I have the same problem with a:
> > pciide0 at pci1 dev 3 function 0: CMD Technology PCI0646 (rev. 0x03)
> > pciide0: bus-master DMA support present
> > pciide0: primary channel configured to native-PCI mode
>
> pciide0 at pci0 dev 17 function 1: VIA Technologies VT8235 ATA133 controller
> pciide0: bus-master DMA support present
> pciide0: primary channel configured to compatibility mode
>
> It seems a generic problem (introduced with the quick detection of slave
> drives when not present).
I wouldn't call it generic, but I suspect it's happening with most pciide
controllers. My theory is that these controllers have shadows registers of
the drives registers, and don't always bother reading the real value.
I tried using the sector_hi register instead of the sector register, with
no better results.
I'm going to run more tests (waiting for a i386 release build
to complete ...) with different controllers.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 24 ans d'experience feront toujours la difference
--