Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Johannes Dickgreber <tanzy@gmx.de>
Cc: Linux MIPS List <linux-mips@linux-mips.org>
Subject: Re: Questions for CONFIG_WEAK_ORDERING  and CONFIG_WEAK_REORDERING_BEYOND_LLSC
Date: Mon, 13 Oct 2008 22:50:54 +0100	[thread overview]
Message-ID: <20081013215054.GB8145@linux-mips.org> (raw)
In-Reply-To: <48F39B18.9030601@gmx.de>

On Mon, Oct 13, 2008 at 09:01:44PM +0200, Johannes Dickgreber wrote:

> If a cpu is WEAK_ORDERING schouldn't it do a sync independent of CONFIG_SMP ?
> 
> And if it is a SMP system schouldn't it do a sync independent of CONFIG_WEAK_ORDERING ?
> 
> And if a cpu has no sync with LLSC schouldn't it do a sync independent of CONFIG_SMP ?
> 
> All together, is the following the right thing to do ?

A processor is always consistently ordered wrt. to itself, so uniprocessor
cores never need SYNCs even if that processor was weakly ordered in a
multiprocessor systems.

A while ago I walked through all mb(), rmb() and wmb() uses in the generic
code.  None of the ones I verified is actually needed on uniprocessor
kernels.  Ocasionally one of these functions is used to maintain I/O
ordering but again other mechanisms are prefered for that purpose.

  Ralf

      reply	other threads:[~2008-10-13 21:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-13 19:01 Questions for CONFIG_WEAK_ORDERING and CONFIG_WEAK_REORDERING_BEYOND_LLSC Johannes Dickgreber
2008-10-13 21:50 ` Ralf Baechle [this message]

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=20081013215054.GB8145@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=linux-mips@linux-mips.org \
    --cc=tanzy@gmx.de \
    /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