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