]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c257ac18de401c05be74792f1cbbac5f88dfa89
tree9e022081db5fa97f60d75bcf3477dc0e158d3d2a
parent5529d24acb0d7d04baa63c328d240661189803af
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