]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 29 Jan 2014 22:50:49 +0000 (23:50 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 29 Jan 2014 22:50:49 +0000 (23:50 +0100)
7 seconds to recover if last poweroff was bad.

ChangeLog
grub-core/disk/ahci.c

index 1cd2b398c18c7706194c7a1eacc2f9bd9249f919..cfa9c83795753f5f0a738faa55052c3e85eb4443 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
+       7 seconds to recover if last poweroff was bad.
+
 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/disk/ahci.c: Properly handle transactions with no
index fdd40c64dd9a4f4dba9dadad5ec5ccac7ec9d63c..5e4a6397a4917005d01d9f11432affc1ffe06356 100644 (file)
@@ -1022,7 +1022,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev,
   grub_dprintf ("ahci", "AHCI tfd = %x\n",
                dev->hba->ports[dev->port].task_file_data);
 
-  endtime = grub_get_time_ms () + (spinup ? 10000 : 5000);
+  endtime = grub_get_time_ms () + (spinup ? 20000 : 20000);
   while ((dev->hba->ports[dev->port].command_issue & 1))
     if (grub_get_time_ms () > endtime)
       {