lkml.org 
[lkml]   [2018]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 035/496] powerpc/pseries: Support firmware disable of RFI flush
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Michael Ellerman <mpe@ellerman.id.au>

    commit 582605a429e20ae68fd0b041b2e840af296edd08 upstream.

    Some versions of firmware will have a setting that can be configured
    to disable the RFI flush, add support for it.

    Fixes: 8989d56878a7 ("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>
    ---
    arch/powerpc/platforms/pseries/setup.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/arch/powerpc/platforms/pseries/setup.c
    +++ b/arch/powerpc/platforms/pseries/setup.c
    @@ -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 */

    \
     
     \ /
      Last update: 2018-05-28 15:43    [W:4.021 / U:0.372 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site