From owner-freebsd-scsi Thu Sep 19 20:52:23 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 02B5537B401 for ; Thu, 19 Sep 2002 20:52:22 -0700 (PDT) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3321A43E3B for ; Thu, 19 Sep 2002 20:52:21 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.5/8.12.5) with ESMTP id g8K3pnmo010528; Thu, 19 Sep 2002 21:52:03 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Thu, 19 Sep 2002 21:51:49 -0600 From: "Justin T. Gibbs" To: "=?gb2312?B?U1cgb3NjYXIo8VTS2Sk=?=" Cc: freebsd-scsi@freebsd.org Subject: Re: Page fault when rescan bus 0 again. Message-ID: <1009990000.1032493909@aslan.scsiguy.com> In-Reply-To: References: X-Mailer: Mulberry/3.0.0a4 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > Hi All. > I've writen a driver for a scsi card. > > Things goes very well when I first time kldload my driver module, > camcontrol rescan 0, and kldunload, but when I kldload this driver again, > and do "camcontrol rescan 0", system will page fault, but it will > success if I rescan 1!! , why? Are you deregistering your SIM instances with CAM when your module is unloaded? Otherwise the first instance will still be known to CAM even though the code to handle it is gone. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message