From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 13:38:32 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDDE110657C5 for ; Mon, 23 Feb 2009 13:38:32 +0000 (UTC) (envelope-from root@dchagin.static.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id A11F28FC16 for ; Mon, 23 Feb 2009 13:38:32 +0000 (UTC) (envelope-from root@dchagin.static.corbina.ru) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id CB5EC5A229; Mon, 23 Feb 2009 16:14:45 +0300 (MSK) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from [10.208.17.3] (HELO dchagin.static.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 1639185745; Mon, 23 Feb 2009 16:14:45 +0300 Received: from dchagin.static.corbina.ru (localhost.chd.net [127.0.0.1]) by dchagin.static.corbina.ru (8.14.3/8.14.3) with ESMTP id n1NDEjX7021721; Mon, 23 Feb 2009 16:14:45 +0300 (MSK) (envelope-from root@dchagin.static.corbina.ru) Received: (from root@localhost) by dchagin.static.corbina.ru (8.14.3/8.14.3/Submit) id n1NDEe2h021720; Mon, 23 Feb 2009 16:14:40 +0300 (MSK) (envelope-from root) Date: Mon, 23 Feb 2009 16:14:40 +0300 From: Chagin Dmitry To: Andrew Gallatin Message-ID: <20090223131440.GA21690@dchagin.static.corbina.ru> References: <4995A792.5050003@cs.duke.edu> <20090215151114.GA2422@dchagin.static.corbina.ru> <499AE0E1.8030000@cs.duke.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499AE0E1.8030000@cs.duke.edu> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-current@freebsd.org Subject: [PATCH]Re: Dtrace panic'ed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 13:38:33 -0000 On Tue, Feb 17, 2009 at 11:08:01AM -0500, Andrew Gallatin wrote: > Chagin Dmitry wrote: > > > hi, I have the same problem and found the hack "solution": > > > > dchagin# sysctl machdep.idle=hlt > > machdep.idle: acpi -> hlt > > Unfortunately, that did not help on this machine.. > hi, please test a patch bellow: diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 14d1297..c1bd50e 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -362,9 +362,11 @@ smp_rendezvous_cpus(cpumask_t map, return; } - for (i = 0; i < mp_maxid; i++) + for (i = 0; i <= mp_maxid; i++) if (((1 << i) & map) != 0 && !CPU_ABSENT(i)) ncpus++; + if (ncpus == 0) + return; /* obtain rendezvous lock */ mtx_lock_spin(&smp_ipi_mtx); thnx! -- Have fun! chd