[1234] in linux-scsi channel archive
Re: NCR 53c825 (53c8xx vs. 53c7,8xx)
daemon@ATHENA.MIT.EDU (Gerard Roudier)
Wed Jan 8 01:27:44 1997
Date: Tue, 7 Jan 1997 23:31:08 +0000 (GMT)
From: Gerard Roudier <groudier@club-internet.fr>
To: Dirk Foersterling <dirk@informatik.uni-frankfurt.de>
cc: Linux SCSI <linux-scsi@vger.rutgers.edu>
In-Reply-To: <Mutt.19970104102925.dirk@infinity.milliByte.de>
On Sat, 4 Jan 1997, Dirk Foersterling wrote:
> On Jan 3 1997, Gerard Roudier wrote:
> >
> > On Fri, 3 Jan 1997, Dirk Foersterling wrote:
> >
> > I am interested in the opcode that cause problem.
> > (Config "verbose scsi messages" will probably print it to the syslog)
> >
>
> scsi_cmd 0x08 (write len=6, read len=39424)
For the moment I did not have checked all your report, however, in my
opinion, the command above cannot succeed since the max buffer size
used by the sg driver is currently 32768.
The sg driver probably claimed in the scsi command it expects at most
39424 bytes and allowed a max imput size of only 32768. If the device
tried to transfer more data, then the driver have disgarded extraneous
data and reported an error.
Can you give a try with some suitable value and let me know.
Edit linux/include/scsi/sg.h and increase the value of SG_BIG_BUF,
for example:
- #define SG_BIG_BUF 32768
+ #define SG_BIG_BUF (32768+8192)
Gerard.