All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Haverkamp <markh@linux-foundation.org>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
	"Moore, Eric" <Eric.Moore@lsi.com>
Subject: Re: [PATCH] scsi spi transport: SCSI domain validation after reset
Date: Mon, 05 Feb 2007 14:01:51 -0800	[thread overview]
Message-ID: <1170712911.2573.25.camel@markh3.pdx.osdl.net> (raw)
In-Reply-To: <1170712218.4517.16.camel@mulgrave.il.steeleye.com>

On Mon, 2007-02-05 at 15:50 -0600, James Bottomley wrote:
> On Mon, 2007-02-05 at 12:49 -0800, Mark Haverkamp wrote:
> > James,
> > 
> > Some months ago, I had problems with a mis-behaving disk that failed
> > domain validation on a fusion card resulting in an infinite loop of
> > domain validation.  At the time Eric proposed a patch to the mptspi
> > driver to reload devices with parameters previously negotiated when a
> > reset occurred.  You indicated that a more generic solution should be
> > done.
> > 
> > This patch updates spi_dv_device_internal() to check if domain
> > validation has already been performed on a device and just sets it
> > previously negotiated parameters.  This solved the "infinite domain
> > validation" loop for me when a reset is performed as a result of command
> > timeout with the mis-behaving device.
> 
> Er,but this code basically disabled domain revalidation after a reset,
> doesn't it? 

Yes it does.  The problem I am seeing is that a device that fails
validation can cause a reset to occur.  If it does, then all devices are
now re-validated.  Including any that have failed validation previously.
Which can cause another reset and another validation, etc. forever.  I'm
not sure how else to break out of this cycle.

>  If we could do it that way, we could simply take the calls
> to spi_dv_device() out of the fusion driver and instead set the
> parameters up in its place without having to modify the transport class.

If I understand your comment, I believe that is what Eric proposed at
one point. But it seems other drivers/adapters could have a similar
problem.

Mark.



-- 
Mark Haverkamp <markh@linux-foundation.org>


  reply	other threads:[~2007-02-05 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05 20:49 [PATCH] scsi spi transport: SCSI domain validation after reset Mark Haverkamp
2007-02-05 21:50 ` James Bottomley
2007-02-05 22:01   ` Mark Haverkamp [this message]
2007-02-07 23:51 Eric Moore
2007-02-12 16:14 ` Mark Haverkamp
2007-02-12 21:45   ` James Bottomley
2007-02-12 23:00     ` Mark Haverkamp

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=1170712911.2573.25.camel@markh3.pdx.osdl.net \
    --to=markh@linux-foundation.org \
    --cc=Eric.Moore@lsi.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.