summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-04-29 23:26:32 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-05-11 21:53:58 +1000
commit17a3dd2f5fc75fc12d0a2ebf05327cf965bdf84b (patch)
tree03f7f5ff2397c20a5456dda66b460834f436bcf9 /arch/powerpc/kernel/prom.c
parentab62476240d59a9d7d78ca5ff32499dd50db2069 (diff)
downloadlinux-17a3dd2f5fc75fc12d0a2ebf05327cf965bdf84b.tar.bz2
powerpc/mm/radix: Use firmware feature to enable Radix MMU
We use the existing "ibm,pa-features" device-tree property to enable Radix MMU mode. This means we default to hash mode unless firmware tells us it's OK to start using Radix mode. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r--arch/powerpc/kernel/prom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 1b082c729c29..d924cd60fc8e 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -166,6 +166,7 @@ static struct ibm_pa_feature {
* which is 0 if the kernel doesn't support TM.
*/
{CPU_FTR_TM_COMP, 0, 0, 22, 0, 0},
+ {0, MMU_FTR_RADIX, 0, 40, 0, 0},
};
static void __init scan_features(unsigned long node, const unsigned char *ftrs,