From owner-freebsd-scsi Mon Aug 27 12: 1:58 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 9516F37B408 for ; Mon, 27 Aug 2001 12:01:46 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id NAA20603; Mon, 27 Aug 2001 13:01:31 -0600 (MDT) (envelope-from ken) Date: Mon, 27 Aug 2001 13:01:31 -0600 From: "Kenneth D. Merry" To: Gerrit Kuehn Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: problems with camcontrol rescan Message-ID: <20010827130130.A20496@panzer.kdm.org> References: <0108241008070E.15703@mako.pmp.uni-hannover.de> <20010824140054.A5088@panzer.kdm.org> <01082713450808.22981@mako.pmp.uni-hannover.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <01082713450808.22981@mako.pmp.uni-hannover.de>; from gerrit@pmp.uni-hannover.de on Mon, Aug 27, 2001 at 01:41:22PM +0200 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 Mon, Aug 27, 2001 at 13:41:22 +0200, Gerrit Kuehn wrote: > Am Fri, 24 Aug 2001 schrieb Kenneth D. Merry > > > It sounds like what is likely happening is that the controller isn't > > returning some of the CCBs that are being sent down to scan the bus. Since > > the CCBs don't get returned, the rescan hangs forever. This is just > > speculation, though; I haven't looked at the driver. > > BTW: Joerg Wunsch, who advised me to state my problem in this list here, already > did have a quick look at the source of the driver. This is what he sent me: > > case XPT_SCAN_BUS: > { > #ifdef DC395x_trm_DEBUG1 > printf(" XPT_SCAN_BUS \n"); > #endif > pccb->ccb_h.status = CAM_REQ_INVALID; > xpt_done(pccb); > } > break; > > ... > > case XPT_SCAN_LUN: > { > #ifdef DC395x_trm_DEBUG1 > printf(" XPT_SCAN_LUN \n"); > #endif > pccb->ccb_h.status = CAM_REQ_INVALID; > xpt_done(pccb); > } > break; > > > >From this fragment of code I really don't understand why there isn't at least > an error message. Well, the HBA driver doesn't have to deal with XPT_SCAN_BUS and XPT_SCAN_LUN CCBs. Those CCB types are handled by the transport layer and then translated into SCSI commands which are then sent to the HBA driver. HBA drivers should send back an error if you send down a scan bus or scan lun ccb, but there's probably no need to print something. > And what is more: what happens when FreeBSD is scanning the devices on > boot-time? That procedure obviously is working fine... It's pretty much the same code path at boot time. That's why it's somewhat puzzling that it's hanging up. Rescanning seems to work with other HBAs, though. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message