From owner-freebsd-scsi Thu Nov 21 9:47:51 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A288537B401 for ; Thu, 21 Nov 2002 09:47:50 -0800 (PST) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD29A43E97 for ; Thu, 21 Nov 2002 09:47:48 -0800 (PST) (envelope-from ctuffli@rose.agilent.com) Received: from relcos2.cos.agilent.com (relcos2.cos.agilent.com [130.29.152.237]) by msgbas1x.cos.agilent.com (Postfix) with ESMTP id 7927AE1AA for ; Thu, 21 Nov 2002 10:47:43 -0700 (MST) Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos2.cos.agilent.com (Postfix) with ESMTP id BA2492F7 for ; Thu, 21 Nov 2002 10:47:42 -0700 (MST) Received: from mail.rose.agilent.com (mailsrv@bellhop [130.30.179.19]) by rtl.rose.agilent.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.1.0) with ESMTP id JAA13099 for ; Thu, 21 Nov 2002 09:47:41 -0800 (PST) Received: from thegrail (anu.rose.agilent.com [156.140.225.186]) by mail.rose.agilent.com (Netscape Messaging Server 3.6) with ESMTP id AAA5E6D; Thu, 21 Nov 2002 09:47:38 -0800 Received: by thegrail (Postfix, from userid 1001) id 77437848B8; Thu, 21 Nov 2002 09:43:34 -0800 (PST) Date: Thu, 21 Nov 2002 09:43:34 -0800 From: Chuck Tuffli To: "Long, Scott" Cc: "'Nate Lawson'" , freebsd-scsi@FreeBSD.ORG Subject: Re: SIM as loadable module? Message-ID: <20021121174327.GC8729@thegrail.rose.agilent.com> References: <6100BCEB85F8E244959C756C04E0EDD161CB94@otcexc01.otc.adaptec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6100BCEB85F8E244959C756C04E0EDD161CB94@otcexc01.otc.adaptec.com> User-Agent: Mutt/1.4i 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 Thanks to everyone that helped. I statically compiled the code into the kernel and the bus does get scaned. "camcontrol rescan" also scans the bus when the driver is a loadable module. On one of those other free OSs, loading the driver automatically kicks off a bus scan. Not that automatically scanning the bus is better, it was just what I was expecting. On Wed, Nov 20, 2002 at 04:45:24PM -0500, Long, Scott wrote: > Ok, I'm getting really confused. Chuck, is the problem that the > bus doesn't get scanned at all, ever, or that it doesn't get scanned > when loaded as a module? Have you tried doing a 'camcontrol rescan' > on the bus after loading the module? [snip] > As for how to handle the target id assignment of the SIM's bus, I think > that you're making it more complicated that it needs to be. CAM's bus > scan algorithm is smart enough to not attempt to probe the target number > that you've specified as belonging to the host. I'm not sure if setting > it to cpi->max_target + 1 will confuse CAM or not, but I highly doubt it. > The bus_id number is another thing that CAM doesn't really care about, so > as long as you provide a number that the user/applications agree is > logical, everything is fine. Ok, this id good to know. -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message