summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/powernv/setup.c
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-04-24 07:15:57 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 13:43:45 +0300
commitcb3d6759a93c6d0aea1c10deb6d00e111c29c19c (patch)
tree7437d3e50f9ce967c0da85868121dee80f5afa3f /arch/powerpc/platforms/powernv/setup.c
parent815069ca57c142eb71d27439bc27f41a433a67b3 (diff)
downloadlinux-cb3d6759a93c6d0aea1c10deb6d00e111c29c19c.tar.xz
powerpc/64s: Enable barrier_nospec based on firmware settings
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>
Diffstat (limited to 'arch/powerpc/platforms/powernv/setup.c')
-rw-r--r--arch/powerpc/platforms/powernv/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/setup.c b/arch/powerpc/platforms/powernv/setup.c
index fa63d3fff14c..8d0958cc83a8 100644
--- a/arch/powerpc/platforms/powernv/setup.c
+++ b/arch/powerpc/platforms/powernv/setup.c
@@ -124,6 +124,7 @@ static void pnv_setup_rfi_flush(void)
security_ftr_enabled(SEC_FTR_L1D_FLUSH_HV));
setup_rfi_flush(type, enable);
+ setup_barrier_nospec();
}
static void __init pnv_setup_arch(void)