ipr: Add delay to ensure coherent dumps.
authorGabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Tue, 3 Nov 2015 18:26:06 +0000 (16:26 -0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Nov 2015 00:29:54 +0000 (19:29 -0500)
commitf41f1d994e0e2e0fab29c6f3f9c77350f1769166
tree9e022081db5fa97f60d75bcf3477dc0e158d3d2a
parentf06fcc7155dcbcd9b697d499595a2c1a3945bda2
ipr: Add delay to ensure coherent dumps.

Add a holding pattern prior to collecting dump data, to wait for the IOA
indication that the Mailbox register is stable and won't change without
an explicit reset.  This ensures we'll be collecting meaningful dump
data, even when dumping right after an adapter reset.

In the event of a timeout, we still force the dump, since a partial dump
still might be useful.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c
drivers/scsi/ipr.h