[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150602191910.GO29986@linux-mips.org>
Date: Tue, 2 Jun 2015 21:19:11 +0200
From: Ralf Baechle <ralf@...ux-mips.org>
To: Joshua Kinard <kumba@...too.org>
Cc: Leonid Yegoshin <Leonid.Yegoshin@...tec.com>,
linux-mips@...ux-mips.org, will.deacon@....com,
linux-kernel@...r.kernel.org, benh@...nel.crashing.org,
markos.chandras@...tec.com, macro@...ux-mips.org,
Steven.Hill@...tec.com, alexander.h.duyck@...hat.com,
davem@...emloft.net
Subject: Re: [PATCH 0/3] MIPS: SMP memory barriers: lightweight sync,
acquire-release
On Tue, Jun 02, 2015 at 02:59:38PM -0400, Joshua Kinard wrote:
> >> How useful might this be for older hardware, such as the R10k CPUs? Just
> >> fallbacks to the old sync insn?
> >
> > The R10000 family is strongly ordered so there is no SYNC instruction
> > required in the entire kernel even though some Origin hardware documentation
> > incorrectly claims otherwise.
>
> So no benefits even in the speculative execution case on noncoherent hardware
> like IP28 and IP32?
That's handled entirely differently by using a CACHE BARRIER instruction,
something which is specific to the R10000-family. It's also used
differently by putting once such instruction at the end of every basic
block that might result in speculatively dirty cache lines.
Note that these systems affected by this speculation issue are all
non-coherent uniprocessor systems while Leonid's patch matters for
SMP kernels; the primitives he's changed will not genrate any code for
a !CONFIG_SMP kernel.
Ralf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists