[PATCH stable v4.14 13/32] powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E

Joakim Tjernlund Joakim.Tjernlund at infinera.com
Wed Apr 3 15:38:42 AEDT 2019


On Wed, 2019-04-03 at 11:53 +1100, Michael Ellerman wrote:
> 
> Joakim Tjernlund <Joakim.Tjernlund at infinera.com> writes:
> > On Tue, 2019-04-02 at 17:19 +1100, Michael Ellerman wrote:
> > > Joakim Tjernlund <Joakim.Tjernlund at infinera.com> writes:
> ...
> > > > Can I compile it away?
> > > 
> > > You can't actually, but you can disable it at runtime with
> > > "nospectre_v1" on the kernel command line.
> > > 
> > > We could make it a user selectable compile time option if you really
> > > want it to be.
> > 
> > I think yes. Considering that these patches are fairly untested and the impact
> > in the wild unknown. Requiring systems to change their boot config over night is
> > too fast.
> 
> OK. Just to be clear, you're actually using 4.14 on an NXP board and
> would actually use this option? I don't want to add another option just
> for a theoretical use case.

Correct, we use 4.14 on several custom boards using NXP CPUs and would appreciate
if I could control spectre with a build switch.

Thanks a lot!
               Jocke


More information about the Linuxppc-dev mailing list