NCR53C8XX SCSI fixes.

Gerard Roudier (groudier@club-internet.fr)
Thu, 1 Oct 1998 21:10:26 +0200 (MET DST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--8323328-1255850352-907269026=:371
Content-Type: TEXT/PLAIN; charset=US-ASCII

The attached patch should fix most of the problems encountered using
ncr53c8xx-3.0g and that disappear using ncr53c8xx-2.5f instead.

There is no real driver code fix in this patch, but:

1) Only start a negotiatiation when the LUN number corresponds to a device
that has previously succeeded at least 1 SCSI command. This is not
required by SCSI, so --> SCSI device firmware bug.

2) Wait for the SCSI selection to be complete prior to executing any
further SCRIPT instruction. SYMBIOS data manuals are very clear about
their Chips being featured to execute SCRIPTS instructions just after
Arbitration has been complete and thus seems to encourage using this
feature (the win was about 2 micro-second lower command latency). Using
this feature seems to affect the SCSI selection protocol, probably by
breaking some timing requirements.
So, --> Chip BUG or SYMBIOS wrong documentation.
(Has been reported to fix the M_REJECT problem using toshiba3401b)

This patch is the minimal change addressing these 2 problems and the patch
I will send to Linus in a couple of days will probably conflict with this
one.

Since I cannot send private replies to all mails reporting problems,
especially when they seem to address the same cause, I invite people who
still experience problems using driver 3.0g with this patch applied to
mail me again about. Sorry for the inconvenience.

This patch does not apply to the development driver at
ftp://ftp.tux.org/pub/roudier/896/
that seems to be affected by problem (2).
I will make available the corresponding patch at tux over the week-end.

Regards,
Gerard.

--8323328-1255850352-907269026=:371
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="patch-3.0g-981001"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.95.981001211026.371B@localhost>
Content-Description:

LS0tIGxpbnV4L2RyaXZlcnMvc2NzaS9uY3I1M2M4eHguYy4zLjBpLTEJVGh1
IE9jdCAgMSAyMDoyNjoxOCAxOTk4DQorKysgbGludXgvZHJpdmVycy9zY3Np
L25jcjUzYzh4eC5jCU1vbiBTZXAgMjggMjE6Mzc6MTcgMTk5OA0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8NCg==
--8323328-1255850352-907269026=:371--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/