From: Eric Moore <eric.moore@lsi.com>
To: linux-scsi@vger.kernel.org, Thomas.Hommel@gefanuc.com
Subject: RE: Mptlinux crashes on kernel 2.6.22.1
Date: Wed, 8 Aug 2007 12:12:23 -0600 [thread overview]
Message-ID: <20070808181223.GA12287@lsil.com> (raw)
On 2007-08-02 14:16:49, Hommel, Thomas wrote:
> I am trying to use a LSI53C1020 based adapter on a PowerPC board with
> MPC8641D processor. When initializing, the driver crashes the system
> with the error message below. Kernel version is 2.6.22.1, driver
> 3.04.04. The chip on the adapter is a 53C1020, but the driver detects a
> 53C1030. Has anyone experienced similar problems already?
Try this patch out. It appears that when loading the driver, your getting a
timeout when requesting a firmware config page. The timeout results in a
diag_reset of the controller, and all the ioc_reset callbacks are called for
every registered driver. When mptspi_ioc_reset is called, the hd object has
not be initialized. The fix is to return when hd is NULL. This object will
be setup once mptspi_probe has completed calling scsi_host_alloc.
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
diff -uarpN b/drivers/message/fusion/mptspi.c a/drivers/message/fusion/mptspi.c
--- b/drivers/message/fusion/mptspi.c 2007-08-08 11:41:02.000000000 -0600
+++ a/drivers/message/fusion/mptspi.c 2007-08-08 11:59:56.000000000 -0600
@@ -1249,14 +1249,20 @@ mptspi_dv_renegotiate(struct _MPT_SCSI_H
static int
mptspi_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
{
- struct _MPT_SCSI_HOST *hd = (struct _MPT_SCSI_HOST *)ioc->sh->hostdata;
+ struct _MPT_SCSI_HOST *hd = NULL;
int rc;
rc = mptscsih_ioc_reset(ioc, reset_phase);
+ if ((ioc->bus_type != SPI) || (!rc))
+ goto out;
- if (reset_phase == MPT_IOC_POST_RESET)
- mptspi_dv_renegotiate(hd);
+ hd = (MPT_SCSI_HOST *)ioc->sh->hostdata;
+ if (!hd || !hd->ioc)
+ goto out;
+ if (ioc->active && reset_phase == MPT_IOC_POST_RESET)
+ mptspi_dv_renegotiate(hd);
+ out:
return rc;
}
next reply other threads:[~2007-08-08 18:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 18:12 Eric Moore [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-08-02 14:16 Mptlinux crashes on kernel 2.6.22.1 Hommel, Thomas (GE Indust, GE Fanuc)
2007-08-06 9:08 ` Hommel, Thomas (GE Indust, GE Fanuc)
2007-08-07 10:58 ` Hommel, Thomas (GE Indust, GE Fanuc)
2007-08-07 11:11 ` Rolf Eike Beer
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=20070808181223.GA12287@lsil.com \
--to=eric.moore@lsi.com \
--cc=Thomas.Hommel@gefanuc.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.