public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Mark Rustad <mrustad@gmail.com>
Cc: "Darrick J. Wong" <djwong@us.ibm.com>,
	linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: aic79xx noise on hot insert in 2.6.19.x and 2.6.20
Date: Wed, 07 Feb 2007 11:10:53 +0100	[thread overview]
Message-ID: <45C9A5AD.3010102@suse.de> (raw)
In-Reply-To: <45C995D0.70108@us.ibm.com>

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

Darrick J. Wong wrote:
> Mark Rustad wrote:
>> I have systems with Supermicro X6-class (Nocona/Lindenhurst)
>> motherboards with Adaptec SCSI and SAFTE backplanes running software
>> RAID-1 (md) on a pair of drives. When I hot-insert a drive, I get a lot
>> of noise from the kernel apparently due to lack of handling something in
>> the interrupt routine. So far, life seems to go on after the event, but
>> not knowing anything about the internals of the driver, I am concerned
>> enough to want to ask about it.
> 
> I see the noise too, though I don't know enough about aic79xx (and am
> too busy with aic94xx) to do anything about it.  As far as I can tell,
> the driver's just being a little trigger happy with the "DUMP CARD
> STATE" routine.  But that's my totally unqualified opinion. :)
> 
Yeah, that's default behaviour with aic79xx. First complain and then
check if it actually was an error.

But anyway, looks like it was actually my fault. Might be an idea to
clear the bus reset flag again.

Care to try the attached patch?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare@suse.de
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de

[-- Attachment #2: aic79xx-clear-bus-reset-flag --]
[-- Type: text/plain, Size: 443 bytes --]

diff --git a/drivers/scsi/aic7xxx/aic79xx_core.c b/drivers/scsi/aic7xxx/aic79xx_core.c
index 07a86a3..bf073d2 100644
--- a/drivers/scsi/aic7xxx/aic79xx_core.c
+++ b/drivers/scsi/aic7xxx/aic79xx_core.c
@@ -1645,6 +1645,7 @@ ahd_handle_scsiint(struct ahd_softc *ahd
 	 */
 	if (((status & SCSIRSTI) != 0) && (ahd->flags & AHD_BUS_RESET_ACTIVE)) {
 		ahd_outb(ahd, CLRSINT1, CLRSCSIRSTI);
+		ahd->flags &= ~AHD_BUS_RESET_ACTIVE;
 		return;
 	}
 

  reply	other threads:[~2007-02-07 10:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05 23:17 aic79xx noise on hot insert in 2.6.19.x and 2.6.20 Mark Rustad
2007-02-07  9:03 ` Darrick J. Wong
2007-02-07 10:10   ` Hannes Reinecke [this message]
2007-02-07 19:07     ` Mark Rustad

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=45C9A5AD.3010102@suse.de \
    --to=hare@suse.de \
    --cc=djwong@us.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mrustad@gmail.com \
    /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