public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Vasquez <andrew.vasquez@qlogic.com>
To: Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>,
	James Bottomley <james.bottomley@steeleye.com>
Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
Subject: [PATCH 7/9] qla2xxx: Perform a fw-dump when an ISP23xx RISC-paused state is detected.
Date: Wed, 13 Dec 2006 19:20:31 -0800	[thread overview]
Message-ID: <11660664333401-git-send-email-andrew.vasquez@qlogic.com> (raw)
In-Reply-To: <20061214031935.GB538@andrew-vasquezs-powerbook-g4-15.local>

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_isr.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 79115c1..6a741e3 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -134,11 +134,11 @@ qla2300_intr_handler(int irq, void *dev_id)
 		if (stat & HSR_RISC_PAUSED) {
 			hccr = RD_REG_WORD(&reg->hccr);
 			if (hccr & (BIT_15 | BIT_13 | BIT_11 | BIT_8))
-				qla_printk(KERN_INFO, ha,
-				    "Parity error -- HCCR=%x.\n", hccr);
+				qla_printk(KERN_INFO, ha, "Parity error -- "
+				    "HCCR=%x, Dumping firmware!\n", hccr);
 			else
-				qla_printk(KERN_INFO, ha,
-				    "RISC paused -- HCCR=%x.\n", hccr);
+				qla_printk(KERN_INFO, ha, "RISC paused -- "
+				    "HCCR=%x, Dumping firmware!\n", hccr);
 
 			/*
 			 * Issue a "HARD" reset in order for the RISC
@@ -147,6 +147,8 @@ qla2300_intr_handler(int irq, void *dev_id)
 			 */
 			WRT_REG_WORD(&reg->hccr, HCCR_RESET_RISC);
 			RD_REG_WORD(&reg->hccr);
+
+			ha->isp_ops.fw_dump(ha, 1);
 			set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
 			break;
 		} else if ((stat & HSR_RISC_INT) == 0)
-- 
1.4.4.2.g4cfec


  parent reply	other threads:[~2006-12-14  3:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14  3:19 [PATCH 0/9] qla2xxx: fixes for 2.6.20 [8.01.07-k4] Andrew Vasquez
2006-12-14  3:20 ` [PATCH 1/9] qla2xxx: Don't log trace-control async-events Andrew Vasquez
2006-12-14  3:20 ` [PATCH 2/9] qla2xxx: Correct endianess issue while interrogating MS status Andrew Vasquez
2006-12-14  3:20 ` [PATCH 3/9] qla2xxx: Use proper prep_ms_iocb() function during GFPN_ID Andrew Vasquez
2006-12-14  3:20 ` [PATCH 4/9] qla2xxx: Detect GPSC capabilities within a fabric Andrew Vasquez
2006-12-14  3:20 ` [PATCH 5/9] qla2xxx: Correct IOCB queueing mechanism for ISP54XX HBAs Andrew Vasquez
2006-12-14  3:20 ` [PATCH 6/9] qla2xxx: Correct reset handling logic Andrew Vasquez
2006-12-14  3:20 ` Andrew Vasquez [this message]
2006-12-14  3:20 ` [PATCH 8/9] qla2xxx: Use generic isp_ops.fw_dump() function Andrew Vasquez
2006-12-14  3:20 ` [PATCH 9/9] qla2xxx: Update version number to 8.01.07-k4 Andrew Vasquez

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=11660664333401-git-send-email-andrew.vasquez@qlogic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox