]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/64s: Enable barrier_nospec based on firmware settings
authorMichal Suchanek <msuchanek@suse.de>
Fri, 29 Mar 2019 11:25:51 +0000 (22:25 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:25:12 +0000 (06:25 +0200)
commitae082ed4702e31ed833b7b40b1afe4ce11adb6b4
treebe40b55cc4d0464e76c24261abd94599d110de36
parent31c3a1e81171f03c7df48aac3efc1d417a18c708
powerpc/64s: Enable barrier_nospec based on firmware settings

commit cb3d6759a93c6d0aea1c10deb6d00e111c29c19c upstream.

Check what firmware told us and enable/disable the barrier_nospec as
appropriate.

We err on the side of enabling the barrier, as it's no-op on older
systems, see the comment for more detail.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/security.c
arch/powerpc/platforms/powernv/setup.c
arch/powerpc/platforms/pseries/setup.c