]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/mm/radix: Add dummy radix_enabled()
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 29 Apr 2016 13:25:53 +0000 (23:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 May 2016 08:32:54 +0000 (18:32 +1000)
In this patch we add the radix Kconfig and conditional check.
radix_enabled() is written to always return 0 here. Once we have all
needed radix changes added, we will update this to an mmu_feature check.

We need to add this early so that we can get it all build in the early
stage.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/mmu.h
arch/powerpc/platforms/Kconfig.cputype

index b86786f2521c53c7884667b3507f4bd679a9c009..593d9e3ce8e75fd962dbcfee00601bb4b671c684 100644 (file)
@@ -19,6 +19,8 @@ struct mmu_psize_def {
        unsigned long   sllp;   /* SLB L||LP (exact mask to use in slbmte) */
 };
 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
+
+#define radix_enabled() (0)
 #endif /* __ASSEMBLY__ */
 
 /* 64-bit classic hash table MMU */
index 5f55024f9522cd361d90ded96f2e9578df034571..decde4c4870dc85041b21ad278e5747e70bd5840 100644 (file)
@@ -204,6 +204,9 @@ static inline void assert_pte_locked(struct mm_struct *mm, unsigned long addr)
 #  include <asm/mmu-8xx.h>
 #endif
 
+#ifndef radix_enabled
+#define radix_enabled() (0)
+#endif
 
 #endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_MMU_H_ */
index 142dff5e96d6c1737bffd6bde6692dccdab8bfb2..8d2cfb8cd64ea76a1f1b3405be61f63c52a39798 100644 (file)
@@ -331,6 +331,15 @@ config PPC_STD_MMU_64
        def_bool y
        depends on PPC_STD_MMU && PPC64
 
+config PPC_RADIX_MMU
+       bool "Radix MMU Support"
+       depends on PPC_BOOK3S_64
+       default y
+       help
+         Enable support for the Power ISA 3.0 Radix style MMU. Currently this
+         is only implemented by IBM Power9 CPUs, if you don't have one of them
+         you can probably disable this.
+
 config PPC_MMU_NOHASH
        def_bool y
        depends on !PPC_STD_MMU