mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
* grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
7 seconds to recover if last poweroff was bad.
This commit is contained in:
1 parent
d6b94c5eb2
commit
9abbaae7cd
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
|
||||||
|
7 seconds to recover if last poweroff was bad.
|
||||||
|
|
||||||
2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
|
2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/disk/ahci.c: Properly handle transactions with no
|
* grub-core/disk/ahci.c: Properly handle transactions with no
|
||||||
|
|||||||
@@ -1022,7 +1022,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev,
|
|||||||
grub_dprintf ("ahci", "AHCI tfd = %x\n",
|
grub_dprintf ("ahci", "AHCI tfd = %x\n",
|
||||||
dev->hba->ports[dev->port].task_file_data);
|
dev->hba->ports[dev->port].task_file_data);
|
||||||
|
|
||||||
endtime = grub_get_time_ms () + (spinup ? 10000 : 5000);
|
endtime = grub_get_time_ms () + (spinup ? 20000 : 20000);
|
||||||
while ((dev->hba->ports[dev->port].command_issue & 1))
|
while ((dev->hba->ports[dev->port].command_issue & 1))
|
||||||
if (grub_get_time_ms () > endtime)
|
if (grub_get_time_ms () > endtime)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user