login
Header Space

 
 

Re: [patch] scsi: fix crash in gdth_timeout()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Boaz Harrosh <bharrosh@...>, Jeff Garzik <jeff@...>, <linux-kernel@...>, James Bottomley <James.Bottomley@...>
Date: Monday, October 15, 2007 - 3:38 pm

On Mon, 15 Oct 2007, Ingo Molnar wrote:

Using emulators to test device drivers is almost certain to be pointless.

The problem with device drivers tends to be timing issues, odd hardware 
interactions, and lots of strange (and sometimes undocumented) behaviour 
and dependencies (eg things like "you have to wait 50us after setting the 
reset bit until the hardware has actually reset").

These are all things that you'd generally not catch in emulation - because 
the emulation by necessity is only going to be a very weak picture of the 
real thing.

So I suspect you can find the easy stuff, but only by writing insanely 
complex device model descriptions in the emulator environment itself, and 
only for those device models that have actually been written.

Can it be donein theory? Sure. Practically? Not so sure. Would it help? I 
suspect the effort to do the device model would be many times bigger than 
*any* conceivable effort to just fix the driver bugs as they get found 
through other means.

So we could perhaps have *really* good emulated hardware for a few models 
of hw out there, but likely they'd be fewer and less varied platforms than 
most kernel developers end up having hidden under their desk anyway.. 

			Linus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] scsi: fix crash in gdth_timeout(), Ingo Molnar, (Mon Oct 15, 12:55 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Linus Torvalds, (Mon Oct 15, 1:08 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), James Bottomley, (Mon Oct 15, 5:55 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Ingo Molnar, (Mon Oct 15, 3:24 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Jeff Garzik, (Mon Oct 15, 1:57 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Boaz Harrosh, (Mon Oct 15, 2:43 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Ingo Molnar, (Mon Oct 15, 3:27 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Linus Torvalds, (Mon Oct 15, 3:38 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Ingo Molnar, (Mon Oct 15, 6:23 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Alan Cox, (Mon Oct 15, 4:08 pm)
Re: [patch] scsi: fix crash in gdth_timeout(), Linus Torvalds, (Mon Oct 15, 4:15 pm)
speck-geostationary