nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0055-grub-core-disk-ahci.c-Increase-timeout.-Some-SSDs-ta.patch

28f7f8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
39700a
From: Vladimir Serbinenko <phcoder@gmail.com>
39700a
Date: Wed, 29 Jan 2014 23:50:49 +0100
28f7f8
Subject: [PATCH] * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up
28f7f8
 to 7 seconds to recover if last poweroff was bad.
39700a
39700a
---
39700a
 grub-core/disk/ahci.c | 2 +-
28f7f8
 ChangeLog             | 5 +++++
39700a
 2 files changed, 6 insertions(+), 1 deletion(-)
39700a
39700a
diff --git a/grub-core/disk/ahci.c b/grub-core/disk/ahci.c
28f7f8
index fdd40c64dd9..5e4a6397a49 100644
39700a
--- a/grub-core/disk/ahci.c
39700a
+++ b/grub-core/disk/ahci.c
39700a
@@ -1022,7 +1022,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev,
39700a
   grub_dprintf ("ahci", "AHCI tfd = %x\n",
39700a
 		dev->hba->ports[dev->port].task_file_data);
39700a
 
39700a
-  endtime = grub_get_time_ms () + (spinup ? 10000 : 5000);
39700a
+  endtime = grub_get_time_ms () + (spinup ? 20000 : 20000);
39700a
   while ((dev->hba->ports[dev->port].command_issue & 1))
39700a
     if (grub_get_time_ms () > endtime)
39700a
       {
28f7f8
diff --git a/ChangeLog b/ChangeLog
28f7f8
index bc1ab231b02..1a822f3d2f2 100644
28f7f8
--- a/ChangeLog
28f7f8
+++ b/ChangeLog
28f7f8
@@ -1,3 +1,8 @@
28f7f8
+2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
28f7f8
+
28f7f8
+	* grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
28f7f8
+	7 seconds to recover if last poweroff was bad.
28f7f8
+
28f7f8
 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
28f7f8
 
28f7f8
 	* grub-core/disk/ahci.c: Properly handle transactions with no