]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.1.1/cciss-add-small-delay-when-using-pci-power-management-to-reset-for-kump.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.1.1 / cciss-add-small-delay-when-using-pci-power-management-to-reset-for-kump.patch
CommitLineData
fd453d05
GKH
1From ab5dbebe33e0c353e8545f09c34553ac3351dad6 Mon Sep 17 00:00:00 2001
2From: Mike Miller <mike.miller@hp.com>
3Date: Thu, 20 Oct 2011 22:19:17 +0200
4Subject: cciss: add small delay when using PCI Power Management to reset for kump
5
6From: Mike Miller <mike.miller@hp.com>
7
8commit ab5dbebe33e0c353e8545f09c34553ac3351dad6 upstream.
9
10The P600 requires a small delay when changing states. Otherwise we may think
11the board did not reset and we bail. This for kdump only and is particular
12to the P600.
13
14Signed-off-by: Jens Axboe <axboe@kernel.dk>
15Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16
17---
18 drivers/block/cciss.c | 7 +++++++
19 1 file changed, 7 insertions(+)
20
21--- a/drivers/block/cciss.c
22+++ b/drivers/block/cciss.c
23@@ -4533,6 +4533,13 @@ static int cciss_controller_hard_reset(s
24 pmcsr &= ~PCI_PM_CTRL_STATE_MASK;
25 pmcsr |= PCI_D0;
26 pci_write_config_word(pdev, pos + PCI_PM_CTRL, pmcsr);
27+
28+ /*
29+ * The P600 requires a small delay when changing states.
30+ * Otherwise we may think the board did not reset and we bail.
31+ * This for kdump only and is particular to the P600.
32+ */
33+ msleep(500);
34 }
35 return 0;
36 }