From owner-freebsd-scsi Sun Mar 3 13:26:22 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id 5C97B37B400 for ; Sun, 3 Mar 2002 13:26:20 -0800 (PST) Received: from scsiguy.com (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.6/8.11.5) with ESMTP id g23LRXI03420; Sun, 3 Mar 2002 14:27:33 -0700 (MST) (envelope-from gibbs@scsiguy.com) Message-Id: <200203032127.g23LRXI03420@aslan.scsiguy.com> To: "Matthew N. Dodd" Cc: =?ISO-8859-1?Q?G=E9rard_Roudier?= , freebsd-scsi@FreeBSD.ORG Subject: Re: SCSI driver problem: 'sym' fails, 'ahc' works. In-Reply-To: Your message of "Sun, 03 Mar 2002 16:18:54 EST." <20020303161602.I95839-100000@sasami.jurai.net> Date: Sun, 03 Mar 2002 14:27:33 -0700 From: "Justin T. Gibbs" 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 >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; > } > ... Other than needing to complete the transaction with CAM_AUTOSENSE_FAIL, the ahc driver does something very similar. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message