From owner-svn-src-head@FreeBSD.ORG Thu May 12 10:52:56 2011 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98A521065670; Thu, 12 May 2011 10:52:56 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 479988FC1C; Thu, 12 May 2011 10:52:56 +0000 (UTC) Received: from orion.SpringDaemons.com (c-76-102-119-9.hsd1.ca.comcast.net [76.102.119.9]) by mx0.deglitch.com (Postfix) with ESMTPA id 22C978FC2D; Thu, 12 May 2011 14:52:55 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 2C47439D5B; Thu, 12 May 2011 03:55:23 -0700 (PDT) Date: Thu, 12 May 2011 03:55:22 -0700 From: Stanislav Sedov To: Andriy Gapon Message-Id: <20110512035522.e42b379c.stas@FreeBSD.org> In-Reply-To: <4DCBB9EE.8070809@FreeBSD.org> References: <201105091734.p49HY0P3006180@svn.freebsd.org> <20110512024956.996cd973.stas@FreeBSD.org> <4DCBB9EE.8070809@FreeBSD.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Jung-uk Kim Subject: Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2011 10:52:56 -0000 On Thu, 12 May 2011 13:43:58 +0300 Andriy Gapon mentioned: > > Theory: > - smp_rv_waiters[2] becomes equal to smp_rv_ncpus > - [at least] one slave CPU is still in the last call to cpu_spinwait() in > smp_rendezvous_action() > - master CPU notices that the condition is true, exits smp_rendezvous_cpus() and > calls it again > - the slave CPU is still in spinwait > - the master CPU resets smp_rv_waiters[2] to zero > - the slave CPU exits spinwait, see smp_rv_waiters[2] with zero value > - endless loop > That might explain it. Do you have a patch for me to try? Thanks! -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments