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