From owner-freebsd-scsi Sun Mar 3 13:19: 1 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by hub.freebsd.org (Postfix) with ESMTP id 1508F37B405 for ; Sun, 3 Mar 2002 13:18:58 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.11.6/8.11.6) with ESMTP id g23LIsM43397; Sun, 3 Mar 2002 16:18:54 -0500 (EST) (envelope-from winter@jurai.net) Date: Sun, 3 Mar 2002 16:18:54 -0500 (EST) From: "Matthew N. Dodd" To: "Justin T. Gibbs" Cc: =?ISO-8859-1?Q?G=E9rard_Roudier?= , Subject: Re: SCSI driver problem: 'sym' fails, 'ahc' works. In-Reply-To: <200203032115.g23LFnI02625@aslan.scsiguy.com> Message-ID: <20020303161602.I95839-100000@sasami.jurai.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 3 Mar 2002, Justin T. Gibbs wrote: > Its not really clear to me why one driver works and the other does not. > Both should be flagging the overrun as an error. Perhaps in 3.4, the > ahc driver was broken in this regard? Does a more recent ahc driver > still work? I've not yet tried the drives with a recent version of 'ahc'. The hardware is kinda buried in a rack right now. If I had to guess at the difference I'd say that this bit of code from sym_hipd.c is the reason for the difference: static void sym_sir_bad_scsi_status(hcb_p np, int num, ccb_p cp) { ... /* * Now deal with the SCSI status. */ switch(s_status) { ... case S_TERMINATED: case S_CHECK_COND: /* * If we get an SCSI error when requesting sense, give up. */ if (h_flags & HF_SENSE) { sym_complete_error (np, cp); break; } ... I'm mostly guessing at this point though. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message