dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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