All of lore.kernel.org
 help / color / mirror / Atom feed
* STK9840/SYM53c875 ODD transfer in DATA OUT phase
@ 2003-09-26 10:20 KELEMEN Peter
  2003-09-26 12:38 ` Jes Sorensen
  0 siblings, 1 reply; 6+ messages in thread
From: KELEMEN Peter @ 2003-09-26 10:20 UTC (permalink / raw)
  To: linux-scsi

[ Please Cc: me as I'm not subscribed to the list.  Thanks. ]

Hello,

Since 2.4.18, we have a problem with the above combo if and only
if the transfer is odd number of bytes.  Even byte transfer works
well.  The error message we see is:

Sep 25 17:45:48 x kernel: st0: Error 70000 (sugg. bt 0x0, driver bt 0x0, host bt 0x7).
Sep 25 17:45:49 x kernel: sym0:0:0:extraneous data discarded.
Sep 25 17:45:49 x kernel: sym0:0:0:ODD transfer in DATA OUT phase.
Sep 25 17:45:49 x kernel: sym0:0:0:COMMAND FAILED (87 0 9).

I'm out of ideas what to try next, debugging didn't show up
anything unusual.  The same hardware works with 2.2.19.

Any ideas?

Peter

-- 
    .+'''+.         .+'''+.         .+'''+.         .+'''+.         .+''
 Kelemen Péter     /       \       /       \     Peter.Kelemen@cern.ch
.+'         `+...+'         `+...+'         `+...+'         `+...+'
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STK9840/SYM53c875 ODD transfer in DATA OUT phase
  2003-09-26 10:20 STK9840/SYM53c875 ODD transfer in DATA OUT phase KELEMEN Peter
@ 2003-09-26 12:38 ` Jes Sorensen
  2003-09-26 13:03   ` Mr. James W. Laferriere
  0 siblings, 1 reply; 6+ messages in thread
From: Jes Sorensen @ 2003-09-26 12:38 UTC (permalink / raw)
  To: KELEMEN Peter; +Cc: linux-scsi

>>>>> "Peter" == KELEMEN Peter <Peter.Kelemen@cern.ch> writes:

Peter> [ Please Cc: me as I'm not subscribed to the list.  Thanks. ]
Peter> Hello,

Peter> Since 2.4.18, we have a problem with the above combo if and
Peter> only if the transfer is odd number of bytes.  Even byte
Peter> transfer works well.  The error message we see is:

Peter,

Have you tried using a different SCSI controller to see if it is
driver related? Any chance you could try 2.4.21?

Cheers,
Jes

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STK9840/SYM53c875 ODD transfer in DATA OUT phase
  2003-09-26 12:38 ` Jes Sorensen
@ 2003-09-26 13:03   ` Mr. James W. Laferriere
  2003-09-26 16:39     ` KELEMEN Peter
  2003-09-26 17:27     ` Tony Battersby
  0 siblings, 2 replies; 6+ messages in thread
From: Mr. James W. Laferriere @ 2003-09-26 13:03 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: KELEMEN Peter, linux-scsi

	Hello Jes & Peter ,

On Fri, 26 Sep 2003, Jes Sorensen wrote:
> >>>>> "Peter" == KELEMEN Peter <Peter.Kelemen@cern.ch> writes:
> Peter> [ Please Cc: me as I'm not subscribed to the list.  Thanks. ]
> Peter> Hello,
> Peter> Since 2.4.18, we have a problem with the above combo if and
> Peter> only if the transfer is odd number of bytes.  Even byte
> Peter> transfer works well.  The error message we see is:
> Peter,
> Have you tried using a different SCSI controller to see if it is
> driver related? Any chance you could try 2.4.21?
	If memory serves this is driver related .  And IIRC someone has
	made changes or at least put forth a patch to attempt to aleviate
	the odd byte count problem .  It is in (Again IIRC) both of the
	Symbois drivers (ie: 53c8xx.c & sym53c8xx_2) .  Do try a newer
	kernel than 2.4.21 tho 2.4.22 is what I am running .  Hth ,  JimL
-- 
       +------------------------------------------------------------------+
       | James   W.   Laferriere | System    Techniques | Give me VMS     |
       | Network        Engineer |     P.O. Box 854     |  Give me Linux  |
       | babydr@baby-dragons.com | Coudersport PA 16915 |   only  on  AXP |
       +------------------------------------------------------------------+

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STK9840/SYM53c875 ODD transfer in DATA OUT phase
  2003-09-26 13:03   ` Mr. James W. Laferriere
@ 2003-09-26 16:39     ` KELEMEN Peter
  2003-09-26 17:27     ` Tony Battersby
  1 sibling, 0 replies; 6+ messages in thread
From: KELEMEN Peter @ 2003-09-26 16:39 UTC (permalink / raw)
  To: linux-scsi

* Mr. James W. Laferriere (babydr@baby-dragons.com) [20030926 09:03]:

Jes, James,

> On Fri, 26 Sep 2003, Jes Sorensen wrote:
> > Have you tried using a different SCSI controller to see if it
> > is driver related? Any chance you could try 2.4.21?

> If memory serves this is driver related . And IIRC someone
> has made changes or at least put forth a patch to attempt to
> aleviate the odd byte count problem . It is in (Again IIRC) both
> of the Symbois drivers (ie: 53c8xx.c & sym53c8xx_2) . Do try a
> newer kernel than 2.4.21 tho 2.4.22 is what I am running . Hth ,
> JimL

Well, I tried 2.4.22, the change is really small:

--- linux-2.4.20-18.7.cern/drivers/scsi/sym53c8xx_2/sym_hipd.c	2003-07-04 12:22:05.000000000 +0200
+++ linux-2.4.22/drivers/scsi/sym53c8xx_2/sym_hipd.c	2003-08-25 13:44:42.000000000 +0200
@@ -221,7 +221,7 @@
  */
 static void sym_soft_reset (hcb_p np)
 {
-	u_char istat=0;
+	u_char istat;
 	int i;
 
 	if (!(np->features & FE_ISTAT1) || !(INB (nc_istat1) & SCRUN))
@@ -4641,7 +4641,10 @@
 		case M_IGN_RESIDUE:
 			if (DEBUG_FLAGS & DEBUG_POINTER)
 				sym_print_msg(cp,"ign wide residue", np->msgin);
-			sym_modify_dp(np, tp, cp, -1);
+			if (cp->host_flags & HF_SENSE)
+				OUTL_DSP (SCRIPTA_BA (np, clrack));
+			else
+				sym_modify_dp(np, tp, cp, -1);
 			return;
 		case M_REJECT:
 			if (INB (HS_PRT) == HS_NEGOTIATE)

...to no avail, the problem persists.  However, there is a funny
thing I observed: the driver still logs the *same* error message¹
to the ringbuffer when I do even byte transfers, however for some
weird reason the driver reports success, and lo, I can read the
file back and it is intact.  Odd byte transfers trigger the same
condition and the driver reports no sense.  Very strange...

Peter

¹
Sep 26 18:29:06 x kernel: sym0:0:0:extraneous data discarded.
Sep 26 18:29:06 x kernel: sym0:0:0:ODD transfer in DATA OUT phase.
Sep 26 18:29:06 x kernel: sym0:0:0:COMMAND FAILED (87 0 9).

-- 
    .+'''+.         .+'''+.         .+'''+.         .+'''+.         .+''
 Kelemen Péter     /       \       /       \     Peter.Kelemen@cern.ch
.+'         `+...+'         `+...+'         `+...+'         `+...+'
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: STK9840/SYM53c875 ODD transfer in DATA OUT phase
  2003-09-26 13:03   ` Mr. James W. Laferriere
  2003-09-26 16:39     ` KELEMEN Peter
@ 2003-09-26 17:27     ` Tony Battersby
  2003-10-10  8:56       ` KELEMEN Peter
  1 sibling, 1 reply; 6+ messages in thread
From: Tony Battersby @ 2003-09-26 17:27 UTC (permalink / raw)
  To: 'Mr. James W. Laferriere', 'Jes Sorensen'
  Cc: 'KELEMEN Peter', linux-scsi

> If memory serves this is driver related .  And IIRC someone has
> made changes or at least put forth a patch to attempt to aleviate
> the odd byte count problem .  It is in (Again IIRC) both of the
> Symbois drivers (ie: 53c8xx.c & sym53c8xx_2) .  Do try a newer
> kernel than 2.4.21 tho 2.4.22 is what I am running .

Yes, this is an old problem that keeps coming up.  See:

http://marc.theaimsgroup.com/?t=101018223200001&r=1&w=2
http://marc.theaimsgroup.com/?t=106074664100005&r=1&w=2

I have not seen any patch to fix it.  My minor change in 2.4.22 was for
the Ignore Wide Residue message on a Request Sense command, but that was
a different issue.

Anthony J. Battersby
Cybernetics


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STK9840/SYM53c875 ODD transfer in DATA OUT phase
  2003-09-26 17:27     ` Tony Battersby
@ 2003-10-10  8:56       ` KELEMEN Peter
  0 siblings, 0 replies; 6+ messages in thread
From: KELEMEN Peter @ 2003-10-10  8:56 UTC (permalink / raw)
  To: Tony Battersby
  Cc: 'Mr. James W. Laferriere', 'Jes Sorensen', linux-scsi

* Tony Battersby (tonyb@cybernetics.com) [20030926 13:27]:

> Yes, this is an old problem that keeps coming up.  See:
> http://marc.theaimsgroup.com/?t=101018223200001&r=1&w=2
> http://marc.theaimsgroup.com/?t=106074664100005&r=1&w=2

Thanks.  Finally, the workaround is to run in narrow mode since
our drives are capable of 15MB/s maximum.

Peter

-- 
    .+'''+.         .+'''+.         .+'''+.         .+'''+.         .+''
 Kelemen Péter     /       \       /       \     Peter.Kelemen@cern.ch
.+'         `+...+'         `+...+'         `+...+'         `+...+'
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-10-10  8:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-26 10:20 STK9840/SYM53c875 ODD transfer in DATA OUT phase KELEMEN Peter
2003-09-26 12:38 ` Jes Sorensen
2003-09-26 13:03   ` Mr. James W. Laferriere
2003-09-26 16:39     ` KELEMEN Peter
2003-09-26 17:27     ` Tony Battersby
2003-10-10  8:56       ` KELEMEN Peter

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.