[SCSI] bfa: kdump fix
authorJing Huang <huangj@brocade.com>
Wed, 13 Apr 2011 18:45:53 +0000 (11:45 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:38:02 +0000 (12:38 -0400)
commit45d7f0cc58183062adea0a1de3d8cba768134138
tree1977a1b1a1452a53f5e6504674168235f32ce23a
parenta5442ba4a428081ebac7090f46c62ffaa17ca951
[SCSI] bfa: kdump fix

Root cause: When kernel crashes, bfa IOC state machine and FW doesn't get
a notification and hence are not cleanly shutdown. So registers holding
driver/IOC state information are not reset back to valid disabled/parking
values. This causes subsequent driver initialization to hang during kdump
kernel boot.

Fix description: during the initialization of first PCI function, reset
corresponding register when unclean shutown is detect by reading chip
registers. This will make sure that ioc/fw gets clean re-initialization.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/bfa/bfa_ioc.c
drivers/scsi/bfa/bfa_ioc.h
drivers/scsi/bfa/bfa_ioc_cb.c
drivers/scsi/bfa/bfa_ioc_ct.c