Re: [PATCH 1/2] MIPS: Add barriers between dcache & icache flushes

2016-02-29 Thread Paul Burton
On Mon, Feb 22, 2016 at 04:02:09PM -0800, Florian Fainelli wrote: > On 22/02/16 10:09, Paul Burton wrote: > > Index-based cache operations may be arbitrarily reordered by out of > > order CPUs. Thus code which writes back the dcache & then invalidates > > the icache using indexed cache ops must inc

Re: [PATCH 1/2] MIPS: Add barriers between dcache & icache flushes

2016-02-29 Thread Paul Burton
On Mon, Feb 22, 2016 at 06:39:30PM -0500, Joshua Kinard wrote: > On 02/22/2016 13:09, Paul Burton wrote: > > Index-based cache operations may be arbitrarily reordered by out of > > order CPUs. Thus code which writes back the dcache & then invalidates > > the icache using indexed cache ops must incl

Re: [PATCH 1/2] MIPS: Add barriers between dcache & icache flushes

2016-02-22 Thread Florian Fainelli
On 22/02/16 10:09, Paul Burton wrote: > Index-based cache operations may be arbitrarily reordered by out of > order CPUs. Thus code which writes back the dcache & then invalidates > the icache using indexed cache ops must include a barrier between > operating on the 2 caches in order to prevent the

Re: [PATCH 1/2] MIPS: Add barriers between dcache & icache flushes

2016-02-22 Thread Joshua Kinard
On 02/22/2016 13:09, Paul Burton wrote: > Index-based cache operations may be arbitrarily reordered by out of > order CPUs. Thus code which writes back the dcache & then invalidates > the icache using indexed cache ops must include a barrier between > operating on the 2 caches in order to prevent t

[PATCH 1/2] MIPS: Add barriers between dcache & icache flushes

2016-02-22 Thread Paul Burton
Index-based cache operations may be arbitrarily reordered by out of order CPUs. Thus code which writes back the dcache & then invalidates the icache using indexed cache ops must include a barrier between operating on the 2 caches in order to prevent the scenario in which: - icache invalidation o