mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
powerpc/pseries: Support firmware disable of RFI flush
commit582605a429upstream. Some versions of firmware will have a setting that can be configured to disable the RFI flush, add support for it. Fixes:8989d56878("powerpc/pseries: Query hypervisor for RFI flush settings") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2245d95d9f
commit
dff1a7e6c3
@@ -482,7 +482,8 @@ static void pseries_setup_rfi_flush(void)
|
||||
if (types == L1D_FLUSH_NONE)
|
||||
types = L1D_FLUSH_FALLBACK;
|
||||
|
||||
if (!(result.behaviour & H_CPU_BEHAV_L1D_FLUSH_PR))
|
||||
if ((!(result.behaviour & H_CPU_BEHAV_L1D_FLUSH_PR)) ||
|
||||
(!(result.behaviour & H_CPU_BEHAV_FAVOUR_SECURITY)))
|
||||
enable = false;
|
||||
} else {
|
||||
/* Default to fallback if case hcall is not available */
|
||||
|
||||
Reference in New Issue
Block a user