Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 2004 10:14:34 +0100 (CET)
From:      Soren Schmidt <sos@spider.deepcore.dk>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        current@FreeBSD.ORG
Subject:   Re: slow probe for ata channel with only an atapi master on it
Message-ID:  <200401050914.i059EYfW036079@spider.deepcore.dk>
In-Reply-To: <20040105090227.GA44306@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
It seems Divacky Roman wrote:

> I have something similar but with different numbers of stat and error
> stat=0x50 err=0x50 lsb=0x50 msb=0x50
> 
> something should be added to ata_reset to understand this

That will be difficult as stat=0x50 means <READY,SEEK_COMPLETE> and
that is a valid status for a device that is *present*.
That all regs apparently returns the same (bogus) values cannot be
safely used either, as that is typically also the case when a device
is about to become ready. However there might be a way to combine
the test for same values and looking for BUSY, but experience says
that we then will find new bogus devices that fails that as well..

The upshot is that I try to do what is possible to avoid the 
31sec delay that the spec calls for, but if you have HW that doesnt
comply you can in some situations get the delay, well, tough...

I just wish firmware writers would stick to the specs they are writing
against, but I guess that is just asking too much these days :(

-Søren
                     Yes I know it works under windows!!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401050914.i059EYfW036079>