]> git.proxmox.com Git - zfs-grub.git/commitdiff
ahci.c: Increase timeout (patch from upstream)
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jan 2015 10:55:18 +0000 (11:55 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jan 2015 10:55:18 +0000 (11:55 +0100)
pvepatches/ahci.c-Increase-timeout.patch [new file with mode: 0644]
pvepatches/series

diff --git a/pvepatches/ahci.c-Increase-timeout.patch b/pvepatches/ahci.c-Increase-timeout.patch
new file mode 100644 (file)
index 0000000..01af7e1
--- /dev/null
@@ -0,0 +1,24 @@
+From 9abbaae7cdc5ffba6065c089c9ebb076864d9bbd Mon Sep 17 00:00:00 2001
+From: Vladimir Serbinenko <phcoder@gmail.com>
+Date: Wed, 29 Jan 2014 22:50:49 +0000
+Subject:       * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
+
+       7 seconds to recover if last poweroff was bad.
+---
+(limited to 'grub-core/disk/ahci.c')
+
+diff --git a/grub-core/disk/ahci.c b/grub-core/disk/ahci.c
+index fdd40c6..5e4a639 100644
+--- a/grub-core/disk/ahci.c
++++ b/grub-core/disk/ahci.c
+@@ -1022,7 +1022,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev,
+   grub_dprintf ("ahci", "AHCI tfd = %x\n",
+               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))
+     if (grub_get_time_ms () > endtime)
+       {
+--
+cgit v0.9.0.2
index fc999ce39e75cb4021656e8097739cd533c78b00..87263978bc5e0f3c9c8758da8b9c55f004522fd8 100644 (file)
@@ -9,3 +9,4 @@ zfscrypt-Add-missing-explicit-cast.patch
 zfs.c-fix-memory-leak.patch
 biosdisk-Add-missing-cast.patch
 biosdisk.c-Check-disk-size-sanity.patch
+ahci.c-Increase-timeout.patch