From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932452Ab1BQUJb (ORCPT ); Thu, 17 Feb 2011 15:09:31 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:42058 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751763Ab1BQUJ3 (ORCPT ); Thu, 17 Feb 2011 15:09:29 -0500 X-Authority-Analysis: v=1.1 cv=3uSaImBeuprzHBlOOPjkqgu+7PcxSRW0m2Aphm9Zmck= c=1 sm=0 a=4UV-9Kl2S54A:10 a=Q9fys5e9bTEA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=i2tTwD48evmpC1tuHnwA:9 a=kjJaB1kMuWupgumXBe0Fd72Dh0wA:4 a=PUjeQqilurYA:10 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Subject: Re: [PATCH 0/2] jump label: 2.6.38 updates From: Steven Rostedt To: Mathieu Desnoyers Cc: Will Newton , Will Simoneau , David Miller , hpa@zytor.com, matt@console-pimps.org, peterz@infradead.org, jbaron@redhat.com, mingo@elte.hu, tglx@linutronix.de, roland@redhat.com, rth@redhat.com, masami.hiramatsu.pt@hitachi.com, fweisbec@gmail.com, avi@redhat.com, sam@ravnborg.org, ddaney@caviumnetworks.com, michael@ellerman.id.au, linux-kernel@vger.kernel.org, vapier@gentoo.org, cmetcalf@tilera.com, dhowells@redhat.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, benh@kernel.crashing.org In-Reply-To: References: <4D59B891.8010300@zytor.com> <20110215211123.GA3094@ele.uri.edu> <20110215.132702.39199169.davem@davemloft.net> <20110215215604.GA3177@ele.uri.edu> <1297858734.23343.138.camel@gandalf.stny.rr.com> <1297913774.23343.905.camel@gandalf.stny.rr.com> Content-Type: text/plain; charset="ISO-8859-15" Date: Thu, 17 Feb 2011 15:09:25 -0500 Message-ID: <1297973365.23343.952.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-02-17 at 11:13 -0500, Mathieu Desnoyers wrote: > > > > > lfoo = foo; > > > > IOW, will that smp_mb() really make lfoo read the new foo in memory? If > > foo happens to still be in cache and no coherency has been performed to > > flush it, would it just simply read foo straight from the cache? > > If we were to deploy the Linux kernel on an architecture without > coherent caches, I think smp_mb() should imply a cacheline invalidation, > otherwise we completely mess up the order of data writes vs their > observability from each invididual core POV. Um but this thread is not about non-coherent caches. It's about a HW that happens to do something stupid with ll/sc. That is, everything deals with the cache except ll/sc which skips it. Although, this was more or less answered in another email. That is, the cache on this HW is not really coherent but all the CPUs just seem to share the same cache. Thus a invalidate of the cache line affects all CPUs which makes my question moot. -- Steve