From owner-freebsd-sparc64@FreeBSD.ORG Thu May 12 20:52:13 2005 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 900FA16A59F for ; Thu, 12 May 2005 20:52:13 +0000 (GMT) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 232FC43D96 for ; Thu, 12 May 2005 20:52:13 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 19203 invoked from network); 12 May 2005 20:52:13 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 12 May 2005 20:52:12 -0000 Received: from [10.50.41.242] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j4CKpp4v067266; Thu, 12 May 2005 16:52:01 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-smp@FreeBSD.org Date: Thu, 12 May 2005 16:40:38 -0400 User-Agent: KMail/1.8 References: <20050506154458.GA13055@xor.obsecurity.org> In-Reply-To: <20050506154458.GA13055@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505121640.39280.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: smp@FreeBSD.org cc: sparc64@FreeBSD.org cc: Kris Kennaway Subject: Re: 'panic: spin lock held too long' at boot X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 20:52:13 -0000 On Friday 06 May 2005 11:44 am, Kris Kennaway wrote: > The following has happened twice recently while booting 6.0 on a > 12-processor e4500: > > [...] > Waiting 8 seconds for SCSI devices to settle > SMP: AP CPU #11 Launched! > SMP: AP CPU #10 Launched! > SMP: AP CPU #9 Launched! > SMP: AP CPU #8 Launched! > SMP: AP CPU #7 Launched! > SMP: AP CPU #6 Launched! > SMP: AP CPU #5 Launched! > SMP: AP CPU #4 Launched! > SMP: AP CPU #3 Launched! > SMP: AP CPU #2 Launched! > SMP: AP CPU #1 Launched! > panic: spin lock held too long0xffffff813e774730 foor >5 seecons > cpuid = 11 > KDB: enter: panic > [hangs] > > Any ideas? Could be related to how the idle loop is coded. Try hacking on it so that it does a try lock of sched_lock and only calls mi_switch() if it succeeds, otherwise loop around and call sched_runnable() again. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org