Skip to content

Commit

Permalink
powerpc/mm/radix: Use firmware feature to enable Radix MMU
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aneesh Kumar K.V authored and Michael Ellerman committed May 11, 2016
1 parent ab62476 commit 17a3dd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 17a3dd2

Please sign in to comment.