aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-17 12:58:32 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-17 12:58:32 -0500
commit2fe1e8a7b2f4dcac3fcb07ff06b0ae7396201fd6 (patch)
tree22a1a1f79e7289b75ed64cb38ea42234959798bc
parenta0d5ef457393a240869d837cda1ccb22bbbe3dc2 (diff)
parent3f91a89d424a79f8082525db5a375e438887bb3e (diff)
Merge tag 'powerpc-4.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fix from Michael Ellerman: "One fix from Paul: we can not use the radix MMU under a hypervisor for now. Although the code checked if the processor supports radix, that is not sufficient" * tag 'powerpc-4.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/64: Disable use of radix under a hypervisor
-rw-r--r--arch/powerpc/mm/init_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c
index 93abf8a9813d..8e1588021d1c 100644
--- a/arch/powerpc/mm/init_64.c
+++ b/arch/powerpc/mm/init_64.c
@@ -347,7 +347,8 @@ early_param("disable_radix", parse_disable_radix);
347void __init mmu_early_init_devtree(void) 347void __init mmu_early_init_devtree(void)
348{ 348{
349 /* Disable radix mode based on kernel command line. */ 349 /* Disable radix mode based on kernel command line. */
350 if (disable_radix) 350 /* We don't yet have the machinery to do radix as a guest. */
351 if (disable_radix || !(mfmsr() & MSR_HV))
351 cur_cpu_spec->mmu_features &= ~MMU_FTR_TYPE_RADIX; 352 cur_cpu_spec->mmu_features &= ~MMU_FTR_TYPE_RADIX;
352 353
353 if (early_radix_enabled()) 354 if (early_radix_enabled())