mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Richard Waltham <richard@fars-robotics.net>
Cc: Matthew Wilcox <matthew@wil.cx>,
	SUPPORT <support@4bridgeworks.com>,
	Thomas Babut <thomas@babut.net>,
	linux-kernel@vger.kernel.org,
	Linux SCSI <linux-scsi@vger.kernel.org>,
	groudier@free.fr
Subject: Re: Kernel 2.6.x hangs with Symbios Logic 53c1010 Ultra3 SCSI Ada pter
Date: Sat, 6 Nov 2004 03:59:51 +0000	[thread overview]
Message-ID: <20041106035951.GC24690@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <D5169CBBC6369D4CBFFABD7905CC9D695D31@tehran.Fars-Robotics.local>

On Sat, Nov 06, 2004 at 12:02:32AM -0000, Richard Waltham wrote:
> Good as a backup but the original PPR capability is defined in
> scan_scsi.c. Shouldn't scan_scsi.c take note of the bus mode and enable
> PPR capabilities accordingly? This would then cover this issue for all
> relevant LLDDs wouldn't it?

scan_scsi.c doesn't know what mode the bus is in.  scan_scsi.c doesn't
even know whether the bus is SPI, FC, iSCSI, SAS or SATA.

> > Thanks, those are interesting.  It's good to see that we 
> > really are spitting PPR out onto the wire when we shouldn't be.
> 
> And from what I've seen is the PPR negotiation keeps on being retied on
> all subsequent commands. So performance really is killed by this.

Yes, we'll do that as long as the device target parameters differ from
the achieved parameters.

> > I think disabling PPR on an SE bus should be a better fix than that.
> 
> And don't forget HVD as well;)   

Yes, I thought about HVD and decided that I wanted to code the check
against LVD rather than against SE ;-)

> My main concern with my patch to scan_scsi.c was to handle SCSI 3 LVD
> devices that caused problems. Scan_scsi.c sets all SCSI 3 devices as PPR
> capable - SE, HVD as well as LVD. I have no issue with explicitly
> disallowing PPR for SE and HVD devices. But what about SCSI 3 and LVD
> devices that don't handle PPR - OK they may be broken but...

I've got some devices that fail PPR when the bus is in SE mode but
work fine when the bus is in LVD mode.  So this patch certainly fixes
those problems.  THe question is whether there exist devices that:

 - Claim to be SCSI3 compliant
 - Fail PPR when on an LVD bus

> There is an issue that needs resolving where a drive appears to indicate
> it is capable of PPR, i.e. says it is SCSI 3 + LVD, but does not
> actually support PPR. Then when it receives at PPR message it causes
> problems in the driver because it terminates the PPR MSG OUT early with
> an unexpected phase change.

I think those devices need blacklisting.  Either that, or we need to do
DV in non-approved ways.  Perhaps start with SDTR+WDTR.  If we get up
to Fast-40, then try PPR.  I suspect James has Opinions on this though ;-)

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

  reply	other threads:[~2004-11-06  3:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-06  0:02 Richard Waltham
2004-11-06  3:59 ` Matthew Wilcox [this message]
2004-11-06  4:46   ` Doug Ledford
2004-11-06 12:03   ` Christoph Hellwig
2004-11-06 18:45     ` Matthew Wilcox
  -- strict thread matches above, loose matches on Subject: below --
2004-11-05 16:25 SUPPORT
2004-11-05 20:36 ` Matthew Wilcox

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=20041106035951.GC24690@parcelfarce.linux.theplanet.co.uk \
    --to=matthew@wil.cx \
    --cc=groudier@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=richard@fars-robotics.net \
    --cc=support@4bridgeworks.com \
    --cc=thomas@babut.net \
    /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

all inboxes | Powered by JetHome®