STK9840/SYM53c875 ODD transfer in DATA OUT phase
[ 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
Signature · 7 lines
.+'''+. .+'''+. .+'''+. .+'''+. .+'' Kelemen Péter / \ / \ [email protected] .+' `+...+' `+...+' `+...+' `+...+' - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == KELEMEN Peter <[email protected]> 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
Hello Jes & Peter ,
Quoted 9 lines · Jes Sorensen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == KELEMEN Peter <[email protected]> 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
Signature · 5 lines
+------------------------------------------------------------------+
| James W. Laferriere | System Techniques | Give me VMS |
| Network Engineer | P.O. Box 854 | Give me Linux |
| [email protected] | Coudersport PA 16915 | only on AXP |
+------------------------------------------------------------------+* Mr. James W. Laferriere ([email protected]) [20030926 09:03]:
Jes, James,
Quoted 10 lines · Jes Sorensen
Quoted 2 lines
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:
drivers/scsi/sym53c8xx_2/sym_hipd.c +5 -2
@@ -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).
Signature · 7 lines
.+'''+. .+'''+. .+'''+. .+'''+. .+'' Kelemen Péter / \ / \ [email protected] .+' `+...+' `+...+' `+...+' `+...+' - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines
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
Quoted 3 lines · * Tony Battersby ([email protected]) [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
Signature · 7 lines
.+'''+. .+'''+. .+'''+. .+'''+. .+'' Kelemen Péter / \ / \ [email protected] .+' `+...+' `+...+' `+...+' `+...+' - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html