All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Marc Schiffbauer <marc.schiffbauer@links2linux.de>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: new aic7xxx oopses with AHA2940
Date: Sat, 26 May 2001 22:36:52 -0400	[thread overview]
Message-ID: <3B106844.6161CFE0@mandrakesoft.com> (raw)
In-Reply-To: <20010526180529.A7595@lisa.links2linux.home> <21164.990925636@ocs3.ocs-net> <20010527042129.A12765@lisa.links2linux.home>

[-- Attachment #1: Type: text/plain, Size: 818 bytes --]

Marc Schiffbauer wrote:
> >>EIP; e0a7b3a7 <[aic7xxx]ahc_match_scb+17/c0>   <=====
> Trace; e0a7b79d <[aic7xxx]ahc_search_qinfifo+14d/6b0>
> Trace; e0a7c226 <[aic7xxx]ahc_abort_scbs+66/300>
> Trace; c0234ce3 <__delay+13/30>
> Trace; e0a7c81d <[aic7xxx]ahc_reset_channel+25d/370>
> Trace; e0a70990 <[aic7xxx]ahc_linux_isr+0/270>
> Trace; e0a812a9 <[aic7xxx].rodata.start+c89/157c>
> Trace; e0a7dca7 <[aic7xxx]ahc_pci_config+497/4b0>
> Trace; c0230000 <rpc_new_task+f0/170>
> Trace; e0a6f93e <[aic7xxx]ahc_linux_initialize_scsi_bus+3e/1d0>
> Trace; e0a78855 <[aic7xxx]ahc_set_name+15/30>

I'm curious what happens with the attached patch?

It adds some debugging checks which will halt your kernel with "BUG! at
<file>:line"...

-- 
Jeff Garzik      | Disbelief, that's why you fail.
Building 1024    |
MandrakeSoft     |

[-- Attachment #2: aic.patch --]
[-- Type: text/plain, Size: 786 bytes --]

Index: linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c
diff -u linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c:1.1.1.26 linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c:1.1.1.26.36.1
--- linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c:1.1.1.26	Tue May  8 21:50:17 2001
+++ linux_2_4/drivers/scsi/aic7xxx/aic7xxx.c	Sat May 26 19:35:04 2001
@@ -4837,6 +4837,10 @@
 #if AHC_TARGET_MODE
 		int group;
 
+		if (!scb->io_ctx)
+			BUG();
+		if (!scb->hscb)
+			BUG();
 		group = XPT_FC_GROUP(scb->io_ctx->ccb_h.func_code);
 		if (role == ROLE_INITIATOR) {
 			match = (group != XPT_FC_GROUP_TMODE)
@@ -4848,6 +4852,8 @@
 			       || (tag == SCB_LIST_NULL));
 		}
 #else /* !AHC_TARGET_MODE */
+		if (!scb->hscb)
+			BUG();
 		match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL));
 #endif /* AHC_TARGET_MODE */
 	}

  parent reply	other threads:[~2001-05-27  2:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-26 16:05 new aic7xxx oopses with AHA2940 Marc Schiffbauer
2001-05-27  1:07 ` Keith Owens
2001-05-27  2:21   ` Marc Schiffbauer
2001-05-27  2:32     ` Keith Owens
2001-05-27  2:36     ` Jeff Garzik [this message]
2001-05-27 10:41       ` Marc Schiffbauer
2001-05-29 18:55     ` Justin T. Gibbs
2001-05-29 22:26       ` Marc Schiffbauer

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=3B106844.6161CFE0@mandrakesoft.com \
    --to=jgarzik@mandrakesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc.schiffbauer@links2linux.de \
    /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.