From owner-freebsd-scsi@FreeBSD.ORG Mon Mar 2 07:49:58 2015 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EF87C42C for ; Mon, 2 Mar 2015 07:49:58 +0000 (UTC) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B3C52AF3 for ; Mon, 2 Mar 2015 07:49:58 +0000 (UTC) Received: by igjz20 with SMTP id z20so15029341igj.4 for ; Sun, 01 Mar 2015 23:49:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=y3pmBx03iisa1XmEm5TdDYp+gNulKsmAA3n6CKH6u9M=; b=xaj09fuGNtSTWV5Zrc2wso/Rg3ZjFiy/FD6SHe8itsRqNwvSe8/tQrNi2mw8XRnm1o 1v0eA+dk1r65bHii6oIctgQy+ZPXNiBY7ztcGiGiiJYH1yXoia2jzX4V8axOz1qHim1u pdvOQJlEyk0WaXGT/C1C6z7SqguW+zlLccSvx41CerJ79Xxt0JTWEx2wW64ez+Xrkzdb DH/yI2jMw4LRAJSVfG2C3pqBR4hyb9Ua6VyHRuO09Lr6KMQ12xinfnpzduzJl4Yitdjt sXtpeGGZot5z6RcBH7AulGsxCZcBn8SBFXDjE8GSED3Lsh5h0UbO1dy76hAuhF4GHEEx whvg== MIME-Version: 1.0 X-Received: by 10.50.43.201 with SMTP id y9mr20392680igl.6.1425282598001; Sun, 01 Mar 2015 23:49:58 -0800 (PST) Received: by 10.36.23.133 with HTTP; Sun, 1 Mar 2015 23:49:57 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2015 15:49:57 +0800 Message-ID: Subject: Re: What does the error code 82 mean? From: fengyd To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 07:49:59 -0000 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 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 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 >> > >