]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ahci: Adjust SATA timeouts for hard disk (spinup delay & command timeout)
authorWalter Murphy <wmurphy@google.com>
Mon, 29 Oct 2012 05:24:00 +0000 (05:24 +0000)
committerTom Rini <trini@ti.com>
Fri, 2 Nov 2012 22:20:42 +0000 (15:20 -0700)
commit57847660bb9ddba1d4bc9c1dc551730f71c097a7
tree543e0a1476f958dcd4d4e0450adc62a956a61360
parent90b276f6a2a9e197eadce297fd593d85397bc430
ahci: Adjust SATA timeouts for hard disk (spinup delay & command timeout)

Note: These are timeout values and not delay values, so the event being
timed out will complete whenever it is actually ready, with a
measurement granularity of 1 millisecond, up till the timeout value.
Therefore, there is no effect on SSD booting.

The values were determined by instrumenting the code and measuring the
actual time taken by several different models of HDD for each of the
parameters and then adding 50% more for the spinup value and just
doubling the command timeout value.

Signed-off-by: Walter Murphy <wmurphy@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ahci.c