Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2008 17:14:24 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        usb@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: umass troubleshooting FAQ
Message-ID:  <20080114170114.E84534@wonkity.com>
In-Reply-To: <20080114.163836.58456912.imp@bsdimp.com>
References:  <200801141747.37052.hselasky@c2i.net> <20080114.120058.74704237.imp@bsdimp.com> <20080114162333.A26271@wonkity.com> <20080114.163836.58456912.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Jan 2008, M. Warner Losh wrote:

> In message: <20080114162333.A26271@wonkity.com>
>            Warren Block <wblock@wonkity.com> writes:
> : On Mon, 14 Jan 2008, Warner Losh wrote:
> : >
> : > This item is about telling people how to fix N well known problems
> : > with devices that need quirks.
> : >
> : > Eg, if your new device sees a 'No Sync Supported' message, then do
> : > XYZ.
> : >
> : > If you see stalls in with these messages, do ABC.
> : >
> : > If you see a stall with those messages, do DEF.
> :
> : Is there a test suite that could detect and report these situations?
>
> Well, ideally one would code defensively if one could detect the
> problems.  Many of them are 'and then the device locks up solid' kind
> of failure modes :-(  Once you've touched the problem, you lose.

How about a stress test?  Something like a benchmark (bonnie?) that 
pounds the device conclusively, then prints a summary of uname along 
with USB software and hardware versions.

If it doesn't have errors, doesn't lock up, and the summary prints, that 
device doesn't need quirks and can be added to the list.  Ideally that 
would have a provision for copying results to a searchable web database. 
(Might there be something already out there?)

Add/modify quirks until the device works acceptably or smashing it with 
a hammer becomes the more attractive alternative.

-Warren Block * Rapid City, South Dakota USA



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