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>
This commit is contained in:
Michal Suchanek
2018-04-24 14:15:57 +10:00
committed by Michael Ellerman
parent 815069ca57
commit cb3d6759a9
4 changed files with 63 additions and 0 deletions

View File

@@ -534,6 +534,7 @@ void pseries_setup_rfi_flush(void)
security_ftr_enabled(SEC_FTR_L1D_FLUSH_PR);
setup_rfi_flush(types, enable);
setup_barrier_nospec();
}
#ifdef CONFIG_PCI_IOV