Skip to content

Commit e0aef70

Browse files
mikem13gregkh
authored andcommitted
hpsa: add small delay when using PCI Power Management to reset for kump
commit c4853ef upstream. The P600 requires a small delay when changing states. Otherwise we may think the board did not reset and we bail. This for kdump only and is particular to the P600. Signed-off-by: Mike Miller <mike.miller@hp.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 5a1c73b commit e0aef70

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/scsi/hpsa.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3300,6 +3300,13 @@ static int hpsa_controller_hard_reset(struct pci_dev *pdev,
33003300
pmcsr &= ~PCI_PM_CTRL_STATE_MASK;
33013301
pmcsr |= PCI_D0;
33023302
pci_write_config_word(pdev, pos + PCI_PM_CTRL, pmcsr);
3303+
3304+
/*
3305+
* The P600 requires a small delay when changing states.
3306+
* Otherwise we may think the board did not reset and we bail.
3307+
* This for kdump only and is particular to the P600.
3308+
*/
3309+
msleep(500);
33033310
}
33043311
return 0;
33053312
}

0 commit comments

Comments
 (0)