Date: Tue, 3 Mar 2015 13:49:01 +0800 From: fengyd <fengyd81@gmail.com> To: freebsd-scsi@freebsd.org Subject: Re: What does the error code 82 mean? Message-ID: <CACnvu8Z5AN2CmO%2BeOpdzcDhX9Ep2FBuoLKVc4s3JEo%2B3vZBavg@mail.gmail.com> In-Reply-To: <CACnvu8aNsL5e1=Ygu2wXP=-t1Z-LSWp1GQFrPwruB9PHBkNVXw@mail.gmail.com> References: <CACnvu8aooXfqV3sG_VbispuZQRVs=g3zVU=GUrqB1QN5g2x6Mg@mail.gmail.com> <CACnvu8YVapcG50oBFSjd1731N-8G7zdybjN2CN6mpgzdrXrifQ@mail.gmail.com> <CACnvu8aNsL5e1=Ygu2wXP=-t1Z-LSWp1GQFrPwruB9PHBkNVXw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I added some log. The right information got from device: 00 00 03 12 5B 00 01 3A 46 55 4A 49 54 53 55 20 4D 42 41 33 30 37 33 4E 50 20 20 20 20 20 20 20 34 37 30 32 42 42 53 32 50 41 41 30 31 31 46 34 00 00 00 00 00 00 00 00 0F 00 00 40 0B 54 01 3C The wrong information got from device: 00 00 00 00 03 00 12 00 5B 00 00 00 01 00 3A 00 46 00 55 00 4A 00 49 00 54 00 53 00 55 00 20 00 4D 00 42 00 41 00 33 00 30 00 37 00 33 00 4E 00 50 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 Compared to the right log, it seems one extra byte *00* is added after every byte. Do you have any idea what can cause the problem? Thanks for your help. Br. Yafeng On Mon, Mar 2, 2015 at 3:49 PM, fengyd <fengyd81@gmail.com> wrote: > Hi, > > I found the related code in the function sym_int_sir: > /* > * The device wants us to tranfer more data than > * expected or in the wrong direction. > * The number of extra bytes is in scratcha. > * It is a data overrun condition. > */ > case *SIR_DATA_OVERRUN*: > if (cp) { > OUTONB (HF_PRT, HF_EXT_ERR); > * cp->xerr_status |= XE_EXTRA_DATA;* > cp->extra_bytes += INL (nc_scratcha); > } > goto out; > > I'm not familiar with SCSI. > What does DATA_OVERRUN actually mean? > How can it be triggered? > Could you give more details about it? > > Thanks for your help. > > Br. > Yafeng > > > > On Sat, Feb 28, 2015 at 4:50 PM, fengyd <fengyd81@gmail.com> wrote: > >> Hi, >> >> It seems the error code 82 & 3F is 0x12. >> And the definition of the error code in the file cam.h: >> CAM_AUTOSENSE_FAIL = 0x10,/* Autosense: request sense cmd fail */ >> CAM_NO_HBA, /* No HBA Detected error */ >> CAM_DATA_RUN_ERR, /* Data Overrun error */ >> >> So, it means data overrun error? >> >> Thanks. >> >> Br. >> Yafeng >> >> On Sat, Feb 28, 2015 at 4:32 PM, fengyd <fengyd81@gmail.com> wrote: >> >>> Hi, >>> >>> INQUIRY command is sent to the target, but error code 82 is returned. >>> I added some log in the driver: >>> SIR_COMPLETE_ERROR >>> (pass0:sym0:0:0:0): sym_complete_error status = 18 >>> (pass0:sym0:0:0:0): status = 82 >>> >>> Do you know what does the error code 82 mean? >>> >>> Thanks in advance. >>> >>> Br. >>> Yafeng >>> >> >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACnvu8Z5AN2CmO%2BeOpdzcDhX9Ep2FBuoLKVc4s3JEo%2B3vZBavg>