From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 15 18:43:46 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64FAD106566B for ; Fri, 15 Aug 2008 18:43:46 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 16EF08FC17 for ; Fri, 15 Aug 2008 18:43:45 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.local (pooker.samsco.org [168.103.85.57]) by pooker.samsco.org (8.14.2/8.14.2) with ESMTP id m7FIhSEg071295; Fri, 15 Aug 2008 12:43:29 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <48A5CE50.4050404@samsco.org> Date: Fri, 15 Aug 2008 12:43:28 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Ross References: <1051060505.20080815123014@connection.ca> In-Reply-To: <1051060505.20080815123014@connection.ca> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=3.8 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: isp(4) - setting debug mode flags X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 18:43:46 -0000 Ross wrote: > Has anyone successfully set the debug mode flags in the isp(4) drivers > on boot for Freebsd 7.0? > > The man page states that setting "hint.isp.0.debug" should do the > trick, but setting it to any value doesn't cause anything to happen. > > Checking the code shows isp_pci.c is doing a getenv_int("isp_debug", > &bitmap), which looks like setting that kernel variable should do it, > but still no go. > > So I'm wondering if anyone else got it working in the past, and if so, > what did you set for maximum debugging? > > (Reason is that I'm trying to track down a bug that causes the kernel > to crash occasionally on boot, in a boot-from-san configuration.) > > Cheers, > Ross. > First thing to check is whether what you're setting is actually making it into the kernel environment and is what you expect it to be. Run 'kenv' on a running system and look for the hint.isp.0.debug string. Second, it looks like ISP_LOGDEBUG1 is the only flag that has any special meaning, make sure you set that as well as ISP_LOGWARN and ISP_LOGERR (the default flags). Scott