]>
Commit | Line | Data |
---|---|---|
b5fee34a DM |
1 | From 9abbaae7cdc5ffba6065c089c9ebb076864d9bbd Mon Sep 17 00:00:00 2001 |
2 | From: Vladimir Serbinenko <phcoder@gmail.com> | |
3 | Date: Wed, 29 Jan 2014 22:50:49 +0000 | |
4 | Subject: * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to | |
5 | ||
6 | 7 seconds to recover if last poweroff was bad. | |
7 | --- | |
8 | (limited to 'grub-core/disk/ahci.c') | |
9 | ||
10 | diff --git a/grub-core/disk/ahci.c b/grub-core/disk/ahci.c | |
11 | index fdd40c6..5e4a639 100644 | |
12 | --- a/grub-core/disk/ahci.c | |
13 | +++ b/grub-core/disk/ahci.c | |
14 | @@ -1022,7 +1022,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev, | |
15 | grub_dprintf ("ahci", "AHCI tfd = %x\n", | |
16 | dev->hba->ports[dev->port].task_file_data); | |
17 | ||
18 | - endtime = grub_get_time_ms () + (spinup ? 10000 : 5000); | |
19 | + endtime = grub_get_time_ms () + (spinup ? 20000 : 20000); | |
20 | while ((dev->hba->ports[dev->port].command_issue & 1)) | |
21 | if (grub_get_time_ms () > endtime) | |
22 | { | |
23 | -- | |
24 | cgit v0.9.0.2 |