linux/drivers/scsi/aacraid
Guilherme G. Piccoli 911e572e98 scsi: aacraid: fix PCI error recovery path
During a PCI error recovery, if aac_check_health() is not aware that a
PCI error happened and we have an offline PCI channel, it might trigger
some errors (like NULL pointer dereference) and inhibit the error
recovery process to complete.

This patch makes the health check procedure aware of PCI channel issues,
and in case of error recovery process, the function
aac_adapter_check_health() returns -1 and let the recovery process to
complete successfully. This patch was tested on upstream kernel
v4.11-rc5 in PowerPC ppc64le architecture with adapter 9005:028d
(VID:DID) - the error recovery procedure was able to recover fine.

Fixes: 5c63f7f710 ("aacraid: Added EEH support")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-04-11 20:45:59 -04:00
..
aachba.c scsi: aacraid: Save adapter fib log before an IOP reset 2017-02-22 18:41:42 -05:00
aacraid.h scsi: aacraid: fix PCI error recovery path 2017-04-11 20:45:59 -04:00
commctrl.c scsi: aacraid: Use correct channel number for raw srb 2017-02-22 18:41:41 -05:00
comminit.c scsi: aacraid: Fix sync fibs time out on controller reset 2017-02-22 18:41:42 -05:00
commsup.c scsi: aacraid: fix PCI error recovery path 2017-04-11 20:45:59 -04:00
dpcsup.c scsi: aacraid: Update copyrights 2017-02-03 10:35:04 -05:00
linit.c scsi: aacraid: Added sysfs for driver version 2017-02-22 18:41:42 -05:00
Makefile
nark.c scsi: aacraid: Update copyrights 2017-02-03 10:35:04 -05:00
rkt.c scsi: aacraid: Update copyrights 2017-02-03 10:35:04 -05:00
rx.c scsi: aacraid: Fix camel case 2017-02-22 18:41:41 -05:00
sa.c scsi: aacraid: Update copyrights 2017-02-03 10:35:04 -05:00
src.c scsi: aacraid: Fix typo in blink status 2017-03-06 22:23:27 -05:00
TODO