From owner-freebsd-sparc64@FreeBSD.ORG Wed Jan 23 06:52:58 2008 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC31016A417 for ; Wed, 23 Jan 2008 06:52:58 +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 389BD13C447 for ; Wed, 23 Jan 2008 06:52:57 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id m0N6Wf7c057225; Tue, 22 Jan 2008 23:32:42 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <4796DF89.20507@samsco.org> Date: Tue, 22 Jan 2008 23:32:41 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Eirik_=D8verby?= References: <47947299.5000902@anduin.net> <02783148-323B-435C-9FAF-6DADAA0C526D@anduin.net> <20080122182306.GA42286@alchemy.franken.de> <7E2FDA21-4026-4610-B5BC-BE4CB81AD0A1@anduin.net> In-Reply-To: <7E2FDA21-4026-4610-B5BC-BE4CB81AD0A1@anduin.net> Content-Type: multipart/mixed; boundary="------------060302030909050305020400" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Tue, 22 Jan 2008 23:32:42 -0700 (MST) X-Spam-Status: No, score=-1.4 required=5.4 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: Anders Gulden Olstad , scottl@freebsd.org, freebsd-sparc64@freebsd.org, freebsd-stable@freebsd.org, Marius Strobl Subject: Re: 7.0 RC1/SPARC64 panic in boot X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 06:52:58 -0000 This is a multi-part message in MIME format. --------------060302030909050305020400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Eirik Øverby wrote: > On Jan 22, 2008, at 7:23 PM, Marius Strobl wrote: > >> On Tue, Jan 22, 2008 at 07:16:16AM +0100, Eirik verby wrote: >>> Hi list, >>> >>> by disabling the isp driver (set hint.isp.o.disabled=1), the system >>> comes up. This of course denies us access to the external disk array >>> hosted by the internal QLogic controller, but pinpoints the problem. >>> >>> We tried setting hint.isp.0.prefer_iomap=1, which made no difference >>> (though by reading the code, I don't see that it ever used this). >>> >>> Can anyone help us out here? >> >> Scott, could this be due to a missing MFC of isp_sbus.c rev. 1.36? > > If that would be the case I'd be most happy to hear that. I'll also be > more than happy to test, and can do so on relatively short notice (at > least for another few hours). > > We have, for the record, gone through some basic troubleshooting: > Replaced memory (as this error also can show up under Solaris and is > usually an indicator of bad memory), replaced SCSI controller with > another one (still isp driven), and testing various device hints - > suffice to say we have wasted our time so far ;) > Are you able to compile a new kernel without having to install first? if so, apply the attached patch and let me know if it works. Scott --------------060302030909050305020400 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="isp_sbus.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="isp_sbus.diff" Index: isp_sbus.c =================================================================== RCS file: /usr1/ncvs/src/sys/dev/isp/isp_sbus.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- isp_sbus.c 11 May 2007 13:47:28 -0000 1.35 +++ isp_sbus.c 5 Nov 2007 11:22:18 -0000 1.36 @@ -29,7 +29,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/dev/isp/isp_sbus.c,v 1.35 2007/05/11 13:47:28 mjacob Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/isp/isp_sbus.c,v 1.36 2007/11/05 11:22:18 scottl Exp $"); #include #include @@ -327,21 +327,26 @@ /* * Make sure we're in reset state. */ + ISP_LOCK(isp); isp_reset(isp); if (isp->isp_state != ISP_RESETSTATE) { isp_uninit(isp); + ISP_UNLOCK(isp); goto bad; } isp_init(isp); if (isp->isp_role != ISP_ROLE_NONE && isp->isp_state != ISP_INITSTATE) { isp_uninit(isp); + ISP_UNLOCK(isp); goto bad; } isp_attach(isp); if (isp->isp_role != ISP_ROLE_NONE && isp->isp_state != ISP_RUNSTATE) { isp_uninit(isp); + ISP_UNLOCK(isp); goto bad; } + ISP_UNLOCK(isp); return (0); bad: --------------060302030909050305020400--