lkml.org 
[lkml]   [2020]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 382/453] powerpc/feature: Add CPU_FTR_NOEXECUTE to G2_LE
    Date
    From: Christophe Leroy <christophe.leroy@csgroup.eu>

    commit 197493af414ee22427be3343637ac290a791925a upstream.

    G2_LE has a 603 core, add CPU_FTR_NOEXECUTE.

    Fixes: 385e89d5b20f ("powerpc/mm: add exec protection on powerpc 603")
    Cc: stable@vger.kernel.org
    Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/39a530ee41d83f49747ab3af8e39c056450b9b4d.1602489653.git.christophe.leroy@csgroup.eu
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/powerpc/include/asm/cputable.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/powerpc/include/asm/cputable.h
    +++ b/arch/powerpc/include/asm/cputable.h
    @@ -367,7 +367,7 @@ static inline void cpu_feature_keys_init
    CPU_FTR_PPC_LE | CPU_FTR_NEED_PAIRED_STWCX)
    #define CPU_FTRS_82XX (CPU_FTR_COMMON | CPU_FTR_MAYBE_CAN_DOZE | CPU_FTR_NOEXECUTE)
    #define CPU_FTRS_G2_LE (CPU_FTR_COMMON | CPU_FTR_MAYBE_CAN_DOZE | \
    - CPU_FTR_MAYBE_CAN_NAP)
    + CPU_FTR_MAYBE_CAN_NAP | CPU_FTR_NOEXECUTE)
    #define CPU_FTRS_E300 (CPU_FTR_MAYBE_CAN_DOZE | \
    CPU_FTR_MAYBE_CAN_NAP | \
    CPU_FTR_COMMON | CPU_FTR_NOEXECUTE)

    \
     
     \ /
      Last update: 2020-12-28 14:55    [W:4.186 / U:0.280 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site