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