[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070716192925.GA10124@bitwizard.nl>
Date: Mon, 16 Jul 2007 21:29:26 +0200
From: Rogier Wolff <R.E.Wolff@...Wizard.nl>
To: Mark Lord <liml@....ca>
Cc: Sergei Shtylyov <sshtylyov@...mvista.com>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Bartlomiej Zolnierkiewicz <bzolnier@...il.com>,
Suleiman Souhlal <ssouhlal@...ebsd.org>,
linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] Make the IDE DMA timeout modifiable
On Fri, Jul 13, 2007 at 05:00:18PM -0400, Mark Lord wrote:
> > Ah, that makes sense -- during PIO interrupts happen a lot more often.
> >20 secs still seem to be too much.
>
> I don't think so, even for modern drives.
> Figure 8-10 seconds max for spin-up,
> plus 6-9 seconds to do a sector re-assignment
> or retries on a bad block (a measured *real-life* value).
>
> That adds up to 14-19 seconds, so 20 seconds is probably good.
>
> Still, this does need to be adjustable for faster (CF) devices,
> and slower (optical/tape) devices, rather than just a single
> set of fixed timeout values.
In real life, with real bad blocks on real harddrives, some harddrives
take more than the DMA TIMEOUT time to read a single block, even without
having to spin up.
The current code then resets the drive, on which the drive reports
"busy, not ready for command", and things go downhill from there.
Roger.
--
** R.E.Wolff@...Wizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement.
Does it sit on the couch all day? Is it unemployed? Please be specific!
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists