Subject: Re: kern/22869 and ghost detection for IDE controllers
To: Quentin Garnier <netbsd@quatriemek.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 09/20/2003 23:29:32
On Sat, Sep 20, 2003 at 08:26:48PM +0200, Quentin Garnier wrote:
> Some people reported issues with the new wdc.c code committed yesterday,
> with the kernel showing 'ghost detected' messages and preventing any slave
> device to be found (see PR kern/22869).
> 
> I've been doing some digging today but I couldn't find any real IDE
> specification. Though I saw the following:

http://www.t13.org/

> 
> > Mind: BOTH devices will get their registers WRITTEN. Any data or
> > register READ will come from the selected device. ONLY the
> > selected device will execute commands.
> 
> in http://www.ent.ohiou.edu/~welker/ide.txt.
> 
> I don't know what this is worth, but I can tell this is exactly what is
> happening on my hardware, on probably on other's.

Yes, of course you're right ! I forgot this. This is there since ata-2
at last.

> [...]
> Maybe someone more clueful with IDE can confirm or infirm this, in the
> meantime I suggest this piece of code should be at least commented out.

I'm going to remove it, I've another change pending too.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--