powerpc/mm/radix: Use firmware feature to enable Radix MMU
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 29 Apr 2016 13:26:32 +0000 (23:26 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:53:58 +0000 (21:53 +1000)
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>
arch/powerpc/kernel/prom.c

index 1b082c729c29b4a00715d65a70a5c5876750c209..d924cd60fc8eb085a323ee20ea1fc7d98f12afec 100644 (file)
@@ -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,