]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla4xxx: Perform context resets in case of context failures.
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Fri, 2 Dec 2011 06:42:06 +0000 (22:42 -0800)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 22:54:14 +0000 (14:54 -0800)
commit2dd9c791d190909ef343700b2c9d69a178366068
tree23552b634ac9285cb68e9bd821cfc94ee0bee90b
parente78f6c23c35419a098a4ec76c18ebdfcf57c2962
qla4xxx: Perform context resets in case of context failures.

For 4032, context reset was the same as chip reset, and any firmware
issue was recovered by performing a chip reset.
For 82xx, the iSCSI firmware runs along with FCoE and the NIC
firmware contexts, and an error encountered doesnot essentially mean
that a chip reset is necessary.

Perform Chip resets only in the following cases:
1. Mailbox system error.
2. Mailbox command timeout.
3. fw_heartbeat_counter counter stops incrementing.

For all other cases, only perform a context reset.
1. Command Completion with an invalid srb.
2. Other mailbox failures.

Jira Key: IUEKR2ISCSI-1

Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Shyam Sunder <shyam.sunder@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Tej Parkash <tej.parkash@qlogic.com>
Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/qla4xxx/ql4_isr.c