From: Daniel Jacobowitz <dan@debian.org>
To: "David S. Miller" <davem@davemloft.net>
Cc: johnpol@2ka.mipt.ru, herbert@gondor.apana.org.au, akpm@osdl.org,
guillaume.thouvenin@bull.net, greg@kroah.com,
linux-kernel@vger.kernel.org
Subject: Re: [Fwd: Re: connector is missing in 2.6.12-rc2-mm1]
Date: Fri, 8 Apr 2005 09:11:06 -0400 [thread overview]
Message-ID: <20050408131106.GB32099@nevyn.them.org> (raw)
In-Reply-To: <20050407230222.3a76ba46.davem@davemloft.net>
On Thu, Apr 07, 2005 at 11:02:22PM -0700, David S. Miller wrote:
> On Fri, 08 Apr 2005 09:19:39 +0400
> Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
>
> > > I know, the same thing holds for most architectures, including i386.
> > > However, this is not an issue for uni-processor kernels anywhere else,
> > > so what's so special about MIPS?
> >
> > Does i386 or ppc has cached and uncached memory?
>
> Yes, they do.
>
> > No, i386, ppc and others do not require sync on uncached memory access,
> > and only instruction not data cache sync on SMP.
>
> On MIPS, all the MIPS atomic operations will operate on cached memory.
> And as far as a uniprocessor cpu is concerned, updating the cache is
> all that matters.
>
> In fact, this SYNC instruction seems unnecessary even on SMP. If the
> cache is updated, it is part of the coherent memory space and thus
> MOESI main bus SMP cache coherency transactions will see the update
> value. When another processor does a "read-to-share" or "read-to-own"
> request on the main bus, the processor which did the atomic OP will
> provide the correct data from it's cache in response to that transaction.
>
> So what you have to do is show me an example where the MIPS kernel can
> do an atomic.h operation on uncached memory. I even think that is
> invalid, come to think of it.
It better be...
My impression is that the MIPS story isn't so simple, because the
architecture only offers very weak coherency guarantees. Most of the
SMP implementations offer strong coherency in practice, but at least
one (RM9000) doesn't.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-04-08 13:15 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1112859412.18360.31.camel@frecb000711.frec.bull.fr>
2005-04-07 7:53 ` [Fwd: Re: connector is missing in 2.6.12-rc2-mm1] Evgeniy Polyakov
2005-04-07 7:58 ` Andrew Morton
2005-04-07 8:23 ` Evgeniy Polyakov
2005-04-07 8:32 ` Andrew Morton
2005-04-07 10:12 ` Evgeniy Polyakov
2005-04-08 2:59 ` Herbert Xu
2005-04-08 3:33 ` Evgeniy Polyakov
2005-04-08 3:32 ` Herbert Xu
2005-04-08 3:52 ` Evgeniy Polyakov
2005-04-08 3:50 ` Herbert Xu
2005-04-08 4:02 ` Evgeniy Polyakov
2005-04-08 4:02 ` Herbert Xu
2005-04-08 4:21 ` Evgeniy Polyakov
2005-04-08 4:17 ` Herbert Xu
2005-04-08 4:23 ` David S. Miller
2005-04-08 4:55 ` Evgeniy Polyakov
2005-04-08 4:53 ` Herbert Xu
2005-04-08 4:55 ` David S. Miller
2005-04-08 5:11 ` Evgeniy Polyakov
2005-04-08 5:08 ` Herbert Xu
2005-04-08 5:19 ` Evgeniy Polyakov
2005-04-08 6:02 ` David S. Miller
2005-04-08 13:11 ` Daniel Jacobowitz [this message]
2005-04-08 6:12 ` Evgeniy Polyakov
2005-04-08 4:22 ` David S. Miller
2005-04-07 8:13 ` Evgeniy Polyakov
2005-04-07 9:12 ` Ian Campbell
2005-04-07 9:52 ` Evgeniy Polyakov
2005-04-07 10:41 ` Kay Sievers
2005-04-07 11:24 ` Evgeniy Polyakov
2005-04-07 14:23 ` Kay Sievers
2005-04-07 14:49 ` Evgeniy Polyakov
2005-04-07 15:47 ` James Morris
2005-04-08 3:41 ` Evgeniy Polyakov
2005-04-08 5:55 ` James Morris
2005-04-08 6:48 ` Evgeniy Polyakov
2005-04-10 9:52 ` Herbert Xu
2005-04-10 10:32 ` Evgeniy Polyakov
2005-04-10 11:08 ` Kay Sievers
2005-04-10 11:37 ` Evgeniy Polyakov
2005-04-10 11:54 ` Evgeniy Polyakov
2005-04-10 12:10 ` Thomas Graf
2005-04-10 12:15 ` Evgeniy Polyakov
2005-04-10 14:39 ` jamal
2005-04-10 14:56 ` James Morris
2005-04-10 15:08 ` jamal
2005-04-10 19:27 ` Thomas Graf
2005-04-11 5:22 ` Evgeniy Polyakov
2005-04-11 10:45 ` Thomas Graf
2005-04-11 11:19 ` Evgeniy Polyakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050408131106.GB32099@nevyn.them.org \
--to=dan@debian.org \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=greg@kroah.com \
--cc=guillaume.thouvenin@bull.net \
--cc=herbert@gondor.apana.org.au \
--cc=johnpol@2ka.mipt.ru \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox