Date: Fri, 13 May 2011 17:45:52 +0200 From: Attilio Rao <attilio@freebsd.org> To: Kostik Belousov <kostikbel@gmail.com> Cc: src-committers@freebsd.org, Artem Belevich <art@freebsd.org>, Oleksandr Tymoshenko <gonzo@freebsd.org>, Bruce Evans <brde@optusnet.com.au>, svn-src-projects@freebsd.org, Warner Losh <imp@freebsd.org> Subject: Re: svn commit: r221614 - projects/largeSMP/sys/powerpc/include Message-ID: <BANLkTin9RLbtLeWYGeQN1ksqPjOcnkoOfw@mail.gmail.com> In-Reply-To: <20110513154349.GV48734@deviant.kiev.zoral.com.ua> References: <BANLkTiktwEvRktZrGOqKKB2iSB99a3Jw=g@mail.gmail.com> <BANLkTik17r-XampEdO%2BsQ7aMOL_SDyhG=g@mail.gmail.com> <BANLkTinaWDcaiZiB3G5Szoaho1jVSeniMA@mail.gmail.com> <BANLkTimj3ohmvACmvcPa3yrdsUj=4D2V3Q@mail.gmail.com> <BANLkTikSgEXZz8vjj7kuyeWQE_oKqzB8ug@mail.gmail.com> <BANLkTinHGpL5tC3-5jOPUq6bJ2Ks7j_Dww@mail.gmail.com> <BANLkTi=DOD9p-YUMm33D5ZShTjS_Q1hEvg@mail.gmail.com> <BANLkTikj%2Bszgd%2BptzD6y%2BofPs%2B8bR7Z8ew@mail.gmail.com> <20110513221936.X1161@besplex.bde.org> <BANLkTinv9=iu8yzJD_ji4D6_txs173Kkxw@mail.gmail.com> <20110513154349.GV48734@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/5/13 Kostik Belousov <kostikbel@gmail.com>: > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTin9RLbtLeWYGeQN1ksqPjOcnkoOfw>