From: Andrew Vasquez <andrew.vasquez@qlogic.com>
To: James Bottomley <James.Bottomley@SteelEye.com>,
Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>
Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
Subject: PATCH [6/11] qla2xxx: ISR fixes
Date: Wed, 8 Dec 2004 23:37:39 -0800 [thread overview]
Message-ID: <20041209073739.GA22123@plap.san.rr.com> (raw)
ChangeSet
1.2240 04/12/08 15:44:22 andrew.vasquez@qlogic.com +1 -0
Interrupt handler fixes:
o Mark HBA offline in case the firmware cannot recover
after and ISP system-error.
o Correct issue where the loop-down-timer was not properly
being cleared during a port-update event.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
drivers/scsi/qla2xxx/qla_isr.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff -Nru a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
--- a/drivers/scsi/qla2xxx/qla_isr.c 2004-12-08 22:15:02 -08:00
+++ b/drivers/scsi/qla2xxx/qla_isr.c 2004-12-08 22:15:02 -08:00
@@ -376,7 +376,14 @@
qla2100_fw_dump(ha, 1);
else
qla2300_fw_dump(ha, 1);
- set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
+
+ if (mb[1] == 0) {
+ qla_printk(KERN_INFO, ha,
+ "Unrecoverable Hardware Error: adapter marked "
+ "OFFLINE!\n");
+ ha->flags.online = 0;
+ } else
+ set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
break;
case MBA_REQ_TRANSFER_ERR: /* Request Transfer Error */
@@ -583,11 +590,13 @@
}
/*
- * If PORT UPDATE is global (received LIP_OCCURRED/LIP_RESET
+ * If PORT UPDATE is global (recieved LIP_OCCURED/LIP_RESET
* event etc. earlier indicating loop is down) then process
* it. Otherwise ignore it and Wait for RSCN to come in.
*/
- if (atomic_read(&ha->loop_state) != LOOP_DOWN) {
+ atomic_set(&ha->loop_down_timer, 0);
+ if (atomic_read(&ha->loop_state) != LOOP_DOWN &&
+ atomic_read(&ha->loop_state) != LOOP_DEAD) {
DEBUG2(printk("scsi(%ld): Asynchronous PORT UPDATE "
"ignored.\n", ha->host_no));
break;
@@ -604,7 +613,6 @@
*/
atomic_set(&ha->loop_state, LOOP_UP);
- atomic_set(&ha->loop_down_timer, 0);
qla2x00_mark_all_devices_lost(ha);
ha->flags.rscn_queue_overflow = 1;
reply other threads:[~2004-12-09 7:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041209073739.GA22123@plap.san.rr.com \
--to=andrew.vasquez@qlogic.com \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.