From owner-freebsd-scsi Tue Dec 22 15:19:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA08217 for freebsd-scsi-outgoing; Tue, 22 Dec 1998 15:19:36 -0800 (PST) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08035 for ; Tue, 22 Dec 1998 15:19:30 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id PAA18904; Tue, 22 Dec 1998 15:11:51 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdV18902; Tue Dec 22 23:11:49 1998 Date: Tue, 22 Dec 1998 15:11:43 -0800 (PST) From: Julian Elischer To: "Justin T. Gibbs" cc: Joerg Wunsch , scsi@FreeBSD.ORG Subject: Re: 3.0R && AHA1540A == no go In-Reply-To: <199812222241.PAA01754@pluto.plutotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 22 Dec 1998, Justin T. Gibbs wrote: > >From memory, the old driver tried to handle this case > >so you might look there for clues... > > The old driver never used the residual reporting opcodes and > the SCSI framework in general ignored residual information. The reseidual infrmation was not used because some adapters didn't supply it. However those same adaptrers can be assumed to either totally fail or succeed in disk operations (so you KNOW the residual), or on tape devices, the residual arrives later in a sense block. (for short reads) Since the 1540 returns the sense info with the response, it is possible to synthesise this information in all cases that a user of a 1540 probably needs. Joerg, you'll probably have to add the code yourself but you should be able to find the info you need in: 1/the old 1542 driver 2/the old st.c (fore getting residuals on tapes) 3/the old scsi_error.c (I think) more generic sense block handling stuff. I don't have any scsi stuff now so I'l going by memeory... > > -- > Justin > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message