From owner-svn-src-projects@FreeBSD.ORG Fri May 13 15:45:54 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E952106564A; Fri, 13 May 2011 15:45:54 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6E8658FC13; Fri, 13 May 2011 15:45:53 +0000 (UTC) Received: by vxc34 with SMTP id 34so2640407vxc.13 for ; Fri, 13 May 2011 08:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ZAhky7HLQlOPRwmyopySE3Wu7GXGDIplwwOyQhaGQ1o=; b=WVgPiybk/Dsob5RmoA8+so/CBuP/9vvBsp6AcDKyPO+BRPu3RagJ3jDX58rDyN+/92 Tbp2GDyPA7C4OBMTO+slFyRpeDs8v91kFl0i//qpcTNaYHX4kIIvrhlOHJdIQT5symiC 9rai8EcY+wqhe4MQPE9O3/8N2Vk+dekUU2eP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=JHMuP7JEptpr2NbcbBEcFTwF+CubBfBZu2qcasmiQIOrsuAsJ3t9xQXRqDoo6Ub590 1bRMw7p20ZQU+jZZBjvsKHSzy+ea4igBTMHNCCsY3cJPFnHBZgFrxG0sJXSMTDQEGwFt jkXSsPXn1daqkEvHpVvVnsYXfrAV8BqiODQVs= MIME-Version: 1.0 Received: by 10.220.18.74 with SMTP id v10mr463777vca.62.1305301552626; Fri, 13 May 2011 08:45:52 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.220.201.3 with HTTP; Fri, 13 May 2011 08:45:52 -0700 (PDT) In-Reply-To: <20110513154349.GV48734@deviant.kiev.zoral.com.ua> References: <20110513221936.X1161@besplex.bde.org> <20110513154349.GV48734@deviant.kiev.zoral.com.ua> Date: Fri, 13 May 2011 17:45:52 +0200 X-Google-Sender-Auth: _CZzNBCDaBXscwQ6K30WOtFBdJg Message-ID: From: Attilio Rao To: Kostik Belousov Content-Type: text/plain; charset=UTF-8 Cc: src-committers@freebsd.org, Artem Belevich , Oleksandr Tymoshenko , Bruce Evans , svn-src-projects@freebsd.org, Warner Losh Subject: Re: svn commit: r221614 - projects/largeSMP/sys/powerpc/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2011 15:45:54 -0000 2011/5/13 Kostik Belousov : > On Fri, May 13, 2011 at 03:50:47PM +0200, Attilio Rao wrote: >> The per-cpu stuff also, is read only. The pm_active objects are >> protected by VM locks. > > pm_active is not protected by any vm lock. It is set and cleared > unlocked in the context switch code. But, the ctx switch only needs > to set and clear a single bit at the time of switch, that makes > the atomic operations sufficient for consistency. > > I had a WIP on the Intel PCID, were such protection was not enough, > unfortunately. You are indeed right, sorry. What trouble were you having in your case, just for the sake of my curiosity, if you can share? Attilio -- Peace can only be achieved by understanding - A. Einstein