powerpc/mm: Add MMU_FTR_KERNEL_RO to possible feature mask
PATCH 1/1 powerpc/mm: Add MMU_FTR_KERNEL_RO to possible feature mask
Without this we will always find the feature disabled
Fixes 984d7a1ec6 ("powerpc/mm: Fixup kernel read only mapping")
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- arch/powerpc/include/asm/mmu.h | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/include/asm/mmu.h +1 -0
@@ -136,6 +136,7 @@ enum { MMU_FTR_NO_SLBIE_B | MMU_FTR_16M_PAGE | MMU_FTR_TLBIEL | MMU_FTR_LOCKLESS_TLBIE | MMU_FTR_CI_LARGE_PAGE | MMU_FTR_1T_SEGMENT | MMU_FTR_TLBIE_CROP_VA | + MMU_FTR_KERNEL_RO |#ifdef CONFIG_PPC_RADIX_MMU MMU_FTR_TYPE_RADIX |#endif
Signature · 1 line
2.7.4
Quoted 13 lines · Aneesh Kumar K.V
Without this we will always find the feature disabled
Fixes 984d7a1ec6 ("powerpc/mm: Fixup kernel read only mapping")Signed-off-by Aneesh Kumar K.V <[email protected]>--- arch/powerpc/include/asm/mmu.h | 1 + 1 file changed, 1 insertion(+)arch/powerpc/include/asm/mmu.h +0
-0
arch/powerpc/include/asm/mmu.h enum { · line 142
Quoted 7 lines
arch/powerpc/include/asm/mmu.h +1
-0@@ -136,6 +136,7 @@ enum { MMU_FTR_NO_SLBIE_B | MMU_FTR_16M_PAGE | MMU_FTR_TLBIEL | MMU_FTR_LOCKLESS_TLBIE | MMU_FTR_CI_LARGE_PAGE | MMU_FTR_1T_SEGMENT | MMU_FTR_TLBIE_CROP_VA | + MMU_FTR_KERNEL_RO |#ifdef CONFIG_PPC_RADIX_MMU MMU_FTR_TYPE_RADIX |#endif
Acked-by Balbir Singh <[email protected]>
Michael Ellerman
AppliedQuoted 5 lines · Aneesh Kumar K.V
Without this we will always find the feature disabled
Fixes 984d7a1ec6 ("powerpc/mm: Fixup kernel read only mapping")Signed-off-by Aneesh Kumar K.V <[email protected]>Acked-by Balbir Singh <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/a5ecdad4847897007399d7a14c9109
cheers