Arun Sharma forced the electrons to say:
> Actually, I read the code some more and sounds like this could have
> two reasons:
> 
> (a) Your drive doesn't conform to the timing constraints in the IDE
>     spec. From /usr/include/linux/ide.h:
> 
> #define WAIT_DRQ        (5*HZ/100)      /* 50msec - spec allows up to 20ms */
> 
> The error that you're seeing can happen if a read/write command is issued
> to the IDE hardware and it doesn't respond in 50ms.

I have a query here:

My kernel version is 2.2.13, running on a RHL 6.0 system. In my
/usr/src/linux/include/asm/param.h, I find:

#ifndef HZ
#define HZ 100
#endif

And in /usr/src/linux/drivers/block/ide.h:

/*
 * Timeouts for various operations:
 */
#define WAIT_DRQ        (5*HZ/100)      /* 50msec - spec allows up to 20ms */

With the above HZ value, that should work out to 5, not 50. Is there a factor
of 10 somewhere hidden, or is it really 5 ms?

Binand

-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.

Reply via email to