Skip to contentSkip to conversation

powerpc/mm: Add MMU_FTR_KERNEL_RO to possible feature mask

PATCH Applied Aneesh Kumar K.V 3 participants 3 messages Feb 6, 2017 – Feb 9, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

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")
---
 arch/powerpc/include/asm/mmu.h | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/include/asm/mmu.h +1 -0
index a34c764ca8dd..e5616bf83623 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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")
---
 arch/powerpc/include/asm/mmu.h | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/include/asm/mmu.h +0 -0
index a34c764ca8dd..e5616bf83623 100644

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